<back to all web services

SaveConfigurationMessage

The following routes are available for this service:
All Verbs/RestApi/Sitefinity/Analytics/SaveConfiguration
"use strict";
export class SaveConfigurationMessage {
    /** @param {{AccountName?:string,AccountId?:string,TrackedDomain?:string,ProfileId?:string,SiteId?:string,WebPropertyId?:string,ClientId?:string,ClientSecret?:string,UseEquals?:boolean,PrependHost?:boolean}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    AccountName;
    /** @type {string} */
    AccountId;
    /** @type {string} */
    TrackedDomain;
    /** @type {string} */
    ProfileId;
    /** @type {string} */
    SiteId;
    /** @type {string} */
    WebPropertyId;
    /** @type {string} */
    ClientId;
    /** @type {string} */
    ClientSecret;
    /** @type {boolean} */
    UseEquals;
    /** @type {boolean} */
    PrependHost;
}
export class SaveConfigurationData {
    /** @param {{TrackingCode?:string,ClientId?:string,ClientSecret?:string,SelectedAccount?:string,TrackedDomain?:string,SelectedProfileId?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    TrackingCode;
    /** @type {string} */
    ClientId;
    /** @type {string} */
    ClientSecret;
    /** @type {string} */
    SelectedAccount;
    /** @type {string} */
    TrackedDomain;
    /** @type {string} */
    SelectedProfileId;
}

JavaScript SaveConfigurationMessage DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RestApi/Sitefinity/Analytics/SaveConfiguration HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"AccountName":"String","AccountId":"String","TrackedDomain":"String","ProfileId":"String","WebPropertyId":"String","ClientId":"String","ClientSecret":"String","UseEquals":false,"PrependHost":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"TrackingCode":"String","ClientId":"String","ClientSecret":"String","SelectedAccount":"String","TrackedDomain":"String","SelectedProfileId":"String"}