Trendsic Platform Service

<back to all web services

TicketTypeSubscriptionRequest

Requires Authentication
Requires any of the roles:Agent, Administrator, Agent, Administrator, Agent, Administrator
The following routes are available for this service:
GET/v1/TicketTypeSubscription/{TicketTypeId}
POST,DELETE,OPTIONS/v1/TicketTypeSubscription
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class TicketTypeSubscriptionRequest
    {
        public ArrayList<TicketTypeSubscription> TicketTypeSubscription = new ArrayList<TicketTypeSubscription>();
        public Integer TicketTypeId = null;
        
        public ArrayList<TicketTypeSubscription> getTicketTypeSubscription() { return TicketTypeSubscription; }
        public TicketTypeSubscriptionRequest setTicketTypeSubscription(ArrayList<TicketTypeSubscription> value) { this.TicketTypeSubscription = value; return this; }
        public Integer getTicketTypeId() { return TicketTypeId; }
        public TicketTypeSubscriptionRequest setTicketTypeId(Integer value) { this.TicketTypeId = value; return this; }
    }

    public static class TicketTypeSubscription
    {
        public Integer TicketTypeSubscriptionId = null;
        public Integer TicketTypeId = null;
        public Integer AgentId = null;
        
        public Integer getTicketTypeSubscriptionId() { return TicketTypeSubscriptionId; }
        public TicketTypeSubscription setTicketTypeSubscriptionId(Integer value) { this.TicketTypeSubscriptionId = value; return this; }
        public Integer getTicketTypeId() { return TicketTypeId; }
        public TicketTypeSubscription setTicketTypeId(Integer value) { this.TicketTypeId = value; return this; }
        public Integer getAgentId() { return AgentId; }
        public TicketTypeSubscription setAgentId(Integer value) { this.AgentId = value; return this; }
    }

    public static class TicketTypeSubscriptionResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<TicketTypeSubscriptionExtended> TicketTypeSubscription = new ArrayList<TicketTypeSubscriptionExtended>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public TicketTypeSubscriptionResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<TicketTypeSubscriptionExtended> getTicketTypeSubscription() { return TicketTypeSubscription; }
        public TicketTypeSubscriptionResponse setTicketTypeSubscription(ArrayList<TicketTypeSubscriptionExtended> value) { this.TicketTypeSubscription = value; return this; }
    }

    public static class TicketTypeSubscriptionExtended extends TicketTypeSubscription
    {
        public String AgentName = null;
        public String TicketType = null;
        
        public String getAgentName() { return AgentName; }
        public TicketTypeSubscriptionExtended setAgentName(String value) { this.AgentName = value; return this; }
        public String getTicketType() { return TicketType; }
        public TicketTypeSubscriptionExtended setTicketType(String value) { this.TicketType = value; return this; }
    }

}

Java TicketTypeSubscriptionRequest DTOs

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

HTTP + CSV

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

POST /v1/TicketTypeSubscription HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"TicketTypeSubscription":[{"TicketTypeSubscriptionId":0,"TicketTypeId":0,"AgentId":0}],"TicketTypeId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"TicketTypeSubscription":[{"AgentName":"String","TicketType":"String","TicketTypeSubscriptionId":0,"TicketTypeId":0,"AgentId":0}]}