| POST | /{Workspace}/Integration |
|---|
import Foundation
import ServiceStack
/**
* Represents a set or rules what the system reads to take a particular set of actions. These dtos allow transfer of that data from the client to the server and vice versa.
*/
public class FlexibleDataObject : Codable
{
public var workspace:String
public var data:[String:String] = [:]
public var requestData:String
public var requestStream:Data
public var isXml:Bool
required public init(){}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /{Workspace}/Integration HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"Workspace":"String","Data":{"String":"String"},"IsXml":false}