All Verbs | /RestApi/Sitefinity/Analytics/SaveConfiguration |
---|
export class SaveConfigurationMessage
{
public AccountName: string;
public AccountId: string;
public TrackedDomain: string;
public ProfileId: string;
public SiteId: string;
public WebPropertyId: string;
public ClientId: string;
public ClientSecret: string;
public UseEquals: boolean;
public PrependHost: boolean;
public constructor(init?: Partial<SaveConfigurationMessage>) { (Object as any).assign(this, init); }
}
export class SaveConfigurationData
{
public TrackingCode: string;
public ClientId: string;
public ClientSecret: string;
public SelectedAccount: string;
public TrackedDomain: string;
public SelectedProfileId: string;
public constructor(init?: Partial<SaveConfigurationData>) { (Object as any).assign(this, init); }
}
TypeScript SaveConfigurationMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<SaveConfigurationMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.ServiceStackServices.Model">
<AccountId>String</AccountId>
<AccountName>String</AccountName>
<ClientId>String</ClientId>
<ClientSecret>String</ClientSecret>
<PrependHost>false</PrependHost>
<ProfileId>String</ProfileId>
<SiteId>00000000-0000-0000-0000-000000000000</SiteId>
<TrackedDomain>String</TrackedDomain>
<UseEquals>false</UseEquals>
<WebPropertyId>String</WebPropertyId>
</SaveConfigurationMessage>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SaveConfigurationData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.ServiceStackServices.Model"> <ClientId>String</ClientId> <ClientSecret>String</ClientSecret> <SelectedAccount>String</SelectedAccount> <SelectedProfileId>String</SelectedProfileId> <TrackedDomain>String</TrackedDomain> <TrackingCode>String</TrackingCode> </SaveConfigurationData>