| POST | /v4/autopilot-options | ||
|---|---|---|---|
| POST | /v3.5/autopilot-options |
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using GeniuslinkAPI.ServiceModel.V4.Autopilot.Requests;
using GeniuslinkAPI.ServiceModel.V4.Autopilot.Models;
using GeniuslinkAPI.ServiceModel.V4.Autopilot.Responses;
namespace GeniuslinkAPI.ServiceModel.V4.Autopilot.Models
{
public enum AutopilotFrequency
{
Daily,
Hourly,
Once,
}
public enum AutopilotLevel
{
ShortLink,
Group,
Account,
}
}
namespace GeniuslinkAPI.ServiceModel.V4.Autopilot.Requests
{
[DataContract]
public partial class PostAutopilotOptionsRequest
{
[DataMember(Name="frequency")]
public virtual AutopilotFrequency? Frequency { get; set; }
[DataMember(Name="level")]
public virtual AutopilotLevel? Level { get; set; }
[DataMember(Name="enabled")]
public virtual bool Enabled { get; set; }
[DataMember(Name="identifier")]
public virtual string Identifier { get; set; }
[DataMember(Name="choicePageOptions")]
public virtual Dictionary<string, string> ChoicePageOptions { get; set; }
}
}
namespace GeniuslinkAPI.ServiceModel.V4.Autopilot.Responses
{
[DataContract]
public partial class PostAutopilotOptionsResponse
{
[DataMember(Name="responseStatus")]
public virtual ResponseStatus ResponseStatus { get; set; }
[DataMember(Name="success")]
public virtual bool Success { get; set; }
}
}
C# 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
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}