| PUT,OPTIONS | /v1/coverage/self/availability |
|---|
import Foundation
import ServiceStack
public class CoverageSelfAvailPutRequest : Codable
{
public var days:[CoverageSelfAvailDay] = []
required public init(){}
}
public class CoverageSelfAvailDay : Codable
{
public var day:String
public var open:Bool
public var windows:[CoverageSelfAvailWindow] = []
required public init(){}
}
public class CoverageSelfAvailWindow : Codable
{
public var start:String
public var end:String
required public init(){}
}
public class CoverageSelfAvailResponse : Codable
{
public var responseStatus:ResponseStatus
public var days:[CoverageSelfAvailDay] = []
required public init(){}
}
Swift CoverageSelfAvailPutRequest 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.
PUT /v1/coverage/self/availability HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Days":[{"Day":"String","Open":false,"Windows":[{"Start":"String","End":"String"}]}]}
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"}},"Days":[{"Day":"String","Open":false,"Windows":[{"Start":"String","End":"String"}]}]}