| POST | /v4/autopilot-options | ||
|---|---|---|---|
| POST | /v3.5/autopilot-options |
// @DataContract
export class PostAutopilotOptionsResponse
{
// @DataMember(Name="responseStatus")
public responseStatus: ResponseStatus;
// @DataMember(Name="success")
public success: boolean;
public constructor(init?: Partial<PostAutopilotOptionsResponse>) { (Object as any).assign(this, init); }
}
export enum AutopilotFrequency
{
Daily = 'Daily',
Hourly = 'Hourly',
Once = 'Once',
}
export enum AutopilotLevel
{
ShortLink = 'ShortLink',
Group = 'Group',
Account = 'Account',
}
// @DataContract
export class PostAutopilotOptionsRequest
{
// @DataMember(Name="frequency")
public frequency?: AutopilotFrequency;
// @DataMember(Name="level")
public level?: AutopilotLevel;
// @DataMember(Name="enabled")
public enabled: boolean;
// @DataMember(Name="identifier")
public identifier: string;
// @DataMember(Name="choicePageOptions")
public choicePageOptions: { [index:string]: string; };
public constructor(init?: Partial<PostAutopilotOptionsRequest>) { (Object as any).assign(this, init); }
}
TypeScript PostAutopilotOptionsRequest 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 /v4/autopilot-options HTTP/1.1
Host: geniuslink-api-zane.dev.platform.georiot.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
frequency: Daily,
level: ShortLink,
enabled: False,
identifier: String,
choicePageOptions:
{
String: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
},
success: False
}