| POST | /v4/collections/settings |
|---|
namespace CollectionsAPI.Contracts.DTOs
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<DataContract>]
[<AllowNullLiteral>]
type V4BaseResponse() =
[<DataMember(Name="status")>]
member val ResponseStatus:ResponseStatus = null with get,set
[<DataContract>]
[<AllowNullLiteral>]
type PostCollectionSettingsResponse() =
inherit V4BaseResponse()
[<DataContract>]
[<AllowNullLiteral>]
type V4BaseRequest() =
class end
type SignatureAppearance =
| None = 0
| Text = 1
| Upload = 2
[<DataContract>]
[<AllowNullLiteral>]
type CollectionSettingsBaseRequest() =
inherit V4BaseRequest()
[<DataMember(Name="profileImageId")>]
member val ProfileImageId:String = null with get,set
[<DataMember(Name="signatureImageId")>]
member val SignatureImageId:String = null with get,set
[<DataMember(Name="signatureText")>]
member val SignatureText:String = null with get,set
[<DataMember(Name="signatureFont")>]
member val SignatureFont:String = null with get,set
[<DataMember(Name="signatureAppearance")>]
member val SignatureAppearance:SignatureAppearance = new SignatureAppearance() with get,set
[<DataContract>]
[<AllowNullLiteral>]
type PostCollectionSettingsRequest() =
inherit CollectionSettingsBaseRequest()
F# PostCollectionSettingsRequest 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.
POST /v4/collections/settings HTTP/1.1
Host: collections-api-zane.dev.platform.georiot.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
profileImageId: String,
signatureImageId: String,
signatureText: String,
signatureFont: String,
signatureAppearance: none
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
status:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}