| Requires any of the roles: | Agent, Administrator |
| DELETE,OPTIONS | /v1/customercheckins/{Id}/notes/{NoteId} |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class CustomerNoteDeleteRequest
{
open var Id:UUID? = null
open var NoteId:Int? = null
}
open class CustomerNoteResponse
{
open var ResponseStatus:ResponseStatus? = null
open var Notes:ArrayList<CustomerNote> = ArrayList<CustomerNote>()
open var Carry:ArrayList<CustomerNote> = ArrayList<CustomerNote>()
open var CanPriority:Boolean? = null
open var Note:CustomerNote? = null
}
open class CustomerNote
{
open var NoteId:Int? = null
open var Scope:String? = null
open var Text:String? = null
open var IsPriority:Boolean? = null
open var CreatedByUserId:UUID? = null
open var CreatedByName:String? = null
open var CreatedAt:Date? = null
open var DoneAt:Date? = null
open var IsCarry:Boolean? = null
open var ShownAt:Date? = null
}
Kotlin CustomerNoteDeleteRequest 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.
DELETE /v1/customercheckins/{Id}/notes/{NoteId} 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
}
},
Notes:
[
{
NoteId: 0,
Scope: String,
Text: String,
IsPriority: False,
CreatedByUserId: 00000000000000000000000000000000,
CreatedByName: String,
CreatedAt: 0001-01-01,
DoneAt: 0001-01-01,
IsCarry: False,
ShownAt: 0001-01-01
}
],
Carry:
[
{
NoteId: 0,
Scope: String,
Text: String,
IsPriority: False,
CreatedByUserId: 00000000000000000000000000000000,
CreatedByName: String,
CreatedAt: 0001-01-01,
DoneAt: 0001-01-01,
IsCarry: False,
ShownAt: 0001-01-01
}
],
CanPriority: False,
Note:
{
NoteId: 0,
Scope: String,
Text: String,
IsPriority: False,
CreatedByUserId: 00000000000000000000000000000000,
CreatedByName: String,
CreatedAt: 0001-01-01,
DoneAt: 0001-01-01,
IsCarry: False,
ShownAt: 0001-01-01
}
}