| GET,OPTIONS | /v1/records/settings |
|---|
import Foundation
import ServiceStack
public class RecordsSettingsRequest : Codable
{
required public init(){}
}
public class RecordsSettingsResponse : Codable
{
public var responseStatus:ResponseStatus
public var settings:RecordsSettingsDto
required public init(){}
}
public class RecordsSettingsDto : Codable
{
public var thresholdsJson:String
public var vendorsJson:String
public var archivalJson:String
public var policiesJson:String
public var visibilityJson:String
public var wfBindings:[WfBindingDto] = []
required public init(){}
}
public class WfBindingDto : Codable
{
public var sourceKey:String
public var workflowId:Int
public var name:String
public var paused:Bool
public var runs30:Int
public var summary:String
required public init(){}
}
Swift RecordsSettingsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/records/settings HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Settings:
{
ThresholdsJson: String,
VendorsJson: String,
ArchivalJson: String,
PoliciesJson: String,
VisibilityJson: String,
WfBindings:
[
{
SourceKey: String,
WorkflowId: 0,
Name: String,
Paused: False,
Runs30: 0,
Summary: String
}
]
}
}