| PUT | /v1/account |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
@DataContract
open class PutAccountRequest
{
@DataMember(Name="emailAddress")
@SerializedName("emailAddress")
open var emailAddress:String? = null
@DataMember(Name="fullName")
@SerializedName("fullName")
open var fullName:String? = null
@DataMember(Name="profileImageId")
@SerializedName("profileImageId")
open var profileImageId:String? = null
@DataMember(Name="signatureImageId")
@SerializedName("signatureImageId")
open var signatureImageId:String? = null
@DataMember(Name="signatureFont")
@SerializedName("signatureFont")
open var signatureFont:String? = null
@DataMember(Name="signatureAppearance")
@SerializedName("signatureAppearance")
open var signatureAppearance:SignatureAppearance? = null
}
enum class SignatureAppearance
{
None,
Text,
Upload,
}
@DataContract
open class PutAccountResponse : V2BaseResponse()
{
@DataMember(Name="data")
@SerializedName("data")
open var Data:PutAccountResponseData? = null
}
@DataContract
open class V2BaseResponse
{
@DataMember(Name="responseStatus")
@SerializedName("responseStatus")
open var responseStatus:ResponseStatus? = null
}
@DataContract
open class PutAccountResponseData
{
@DataMember(Name="oneTimeToken")
@SerializedName("oneTimeToken")
open var oneTimeToken:String? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/account HTTP/1.1
Host: api.booklinker.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"newEmail":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"success":false,"oneTimeToken":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}