| GET,POST,OPTIONS | /v1/AgentStateLicense/{AgentRegistrationTempId} |
|---|
import Foundation
import ServiceStack
public class AgentStateLicenseRequest : Codable
{
public var agentStateLicense:[AgentStateLicense] = []
public var agentRegistrationTempId:Int
required public init(){}
}
public class AgentStateLicense : Codable
{
public var agentRegistrationTempId:Int
public var state:String
public var licenseNum:String
required public init(){}
}
public class AgentStateLicenseResponse : Codable
{
public var responseStatus:ResponseStatus
public var agentStateLicense:[AgentStateLicense] = []
required public init(){}
}
Swift AgentStateLicenseRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/AgentStateLicense/{AgentRegistrationTempId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"AgentStateLicense":[{"AgentRegistrationTempId":0,"State":"String","LicenseNum":"String"}],"AgentRegistrationTempId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AgentStateLicense":[{"AgentRegistrationTempId":0,"State":"String","LicenseNum":"String"}]}