AffiliationAPI

<back to all web services

PostLinkAffiliationOptionsRequest

Requires Authentication
The following routes are available for this service:
POST/v4/link-affiliation-options
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;

public class dtos
{

    @DataContract
    public static class PostLinkAffiliationOptionsRequest implements IPostLinkAffiliationOptionsRequest
    {
        @DataMember(Name="linkId", IsRequired=true)
        @SerializedName("linkId")
        public String linkId = null;

        @DataMember(Name="affiliationDisabled")
        @SerializedName("affiliationDisabled")
        public Boolean affiliationDisabled = null;
        
        public String getLinkId() { return linkId; }
        public PostLinkAffiliationOptionsRequest setLinkId(String value) { this.linkId = value; return this; }
        public Boolean isAffiliationDisabled() { return affiliationDisabled; }
        public PostLinkAffiliationOptionsRequest setAffiliationDisabled(Boolean value) { this.affiliationDisabled = value; return this; }
    }

    public static class PostLinkAffiliationOptionsResponse implements IPostLinkAffiliationOptionsResponse
    {
        @DataMember
        public String id = null;

        public ResponseStatus responseStatus = null;
        
        public String getId() { return id; }
        public PostLinkAffiliationOptionsResponse setId(String value) { this.id = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public PostLinkAffiliationOptionsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java PostLinkAffiliationOptionsRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v4/link-affiliation-options HTTP/1.1 
Host: affiliation-api-zane.dev.platform.georiot.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"linkId":"String","affiliationDisabled":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}