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 .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
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/jsv Content-Length: length { TrackingCode: String, ClientId: String, ClientSecret: String, SelectedAccount: String, TrackedDomain: String, SelectedProfileId: String }