Ticket

All the endpoints that can be called on the Ticket controller.

Endpoints that require the TICKET_READ permission:

  • GET index

  • GET item

Endpoints that require the TICKET_CREATE permission:

  • POST index

Endpoints that require the TICKET_UPDATE permission:

  • PUT item

  • POST setPriority

Endpoints that require the TICKET_DELETE permission:

  • DELETE item

  • DELETE multi

Endpoints that require the SET_STATUS permission:

  • POST setStatus

  • PUT solveUnfinishedTickets

Endpoints that require the TICKET_BATCH permission:

  • POST batch

index

get

Returns all tickets with optional filters such as search queries, views and result limits.

Authorizations
HTTPRequired
Responses
200

Successful response

application/json
get
/api/v2/ticket
200

Successful response

index

post

Creates a new empty ticket.

Data can be added directly, but also through other /ticket endpoints.

Authorizations
HTTPRequired
Body
brandIDstringOptional

type: number

channelIDstringOptional

type: number

directionstringOptional

type: ^inbound|outbound$

fromstringOptional

type: string

fromNamestringOptional

type: string = ' '

tostringOptional

type: string

titlestringOptional

type: string

assignedGroupIDstringOptional

type: number = 0

formIDstringOptional

type: number = null

Responses
200

Successful response

application/json
post
/api/v2/ticket
200

Successful response

item

get

Returns all the data of this ticket.

Authorizations
HTTPRequired
Path parameters
ticketIDstringRequired
Responses
200

Successful response

application/json
get
/api/v2/ticket/{ticketID}
200

Successful response

item

put

Updates the fields of this ticket.

Authorizations
HTTPRequired
Path parameters
ticketIDstringRequired
Body
externalPrimaryIDstringOptional

type: string = null

The external primary ID of the customer this ticket belongs to.

titlestringOptional

type: string = null

statusstringOptional

type: ^(solved|closed)$ = null

Responses
200

Successful response

application/json
put
/api/v2/ticket/{ticketID}
200

Successful response

item

delete

Deletes all the data of this ticket.

Authorizations
HTTPRequired
Path parameters
ticketIDstringRequired
Responses
200

Successful response

application/json
delete
/api/v2/ticket/{ticketID}
200

Successful response

multi

delete

Deletes multiple tickets given in an array.

Authorizations
HTTPRequired
Responses
200

Successful response

application/json
delete
/api/v2/ticket/multi
200

Successful response

setStatus

post

Sets the status of the tickets given in an array.

Authorizations
HTTPRequired
Body
statusstringOptional

type: ^(new|open|pending|holding|solved|closed)$

ticketIDs[]stringOptional

type: number

Responses
200

Successful response

application/json
post
/api/v2/ticket/setStatus
200

Successful response

setPriority

post

Sets the priority of the tickets given in an array.

Authorizations
HTTPRequired
Body
prioritystringOptional

type: ^(low|medium|high|urgent)$

ticketIDs[]stringOptional

type: number

Responses
200

Successful response

application/json
post
/api/v2/ticket/setPriority
200

Successful response

unlinkCustomerFromTicket

post

Unlinks the customer from the ticket provided.

Authorizations
HTTPRequired
Body
ticketIDstringOptional

type: number

Responses
200

Successful response

application/json
post
/api/v2/ticket/unlinkCustomerFromTicket
200

Successful response

batch

post

Performs miscellaneous actions on tickets given in an array.

Authorizations
HTTPRequired
Body
TicketIDsstringOptional

type: ^[0-9, ]+$

Can be multiple ID's comma-separated (space allowed).

actions[0][actionType]stringOptional

type: string

Needs to be an action type.

actions[0][value]stringOptional

type: string

Needs to be the value the action would use.

Responses
200

Successful response

application/json
post
/api/v2/ticket/batch
200

Successful response

Last updated