GeniuslinkAPI

<back to all web services

PostAutopilotOptionsRequest

Requires Authentication
The following routes are available for this service:
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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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: application/json
Content-Type: application/json
Content-Length: length

{"frequency":"Daily","level":"ShortLink","enabled":false,"identifier":"String","choicePageOptions":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
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}