| Requires any of the roles: | Agent, Administrator, Agent, Administrator, Agent, Administrator |
| GET | /v1/SupportEdit/{TicketId} | ||
|---|---|---|---|
| POST,DELETE,OPTIONS | /v1/SupportEdit |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class SupportRequest
{
open var Support:ArrayList<Support> = ArrayList<Support>()
open var AgentId:Int? = null
open var TicketId:Int? = null
}
open class Support
{
open var SupportId:Int? = null
open var TicketId:Int? = null
open var AgentId:Int? = null
}
open class SupportResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Support:ArrayList<SupportExtended> = ArrayList<SupportExtended>()
}
open class SupportExtended : Support()
{
open var AgentName:String? = null
}
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 /v1/SupportEdit HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Support:
[
{
SupportId: 0,
TicketId: 0,
AgentId: 0
}
],
AgentId: 0,
TicketId: 0
}
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
}
},
Support:
[
{
AgentName: String,
SupportId: 0,
TicketId: 0,
AgentId: 0
}
]
}