Form
All the endpoints that can be called on the Form controller.
Endpoints that require the FORM_READ permission:
GETindexGETitemGETgetFormForTicket
Endpoints that require the FORM_CUD permission:
POSTindexPUTitemDELETEitem
Additionally, PUT saveFormFields requires the FORM_SAVE permission.
Creates a new form for this brand.
type: number
type: ^[a-zA-Z0-9 ]+$
Successful response
POST /api/v2/form HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 34
{
"brand_id": "text",
"title": "text"
}Successful response
Returns this form by its ID.
Optionally, you can send a ticket ID with it to get the form values for that ticket.
Successful response
GET /api/v2/form/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Updates this form by its ID.
type: number
type: ^[a-zA-Z0-9 ]+$
Successful response
PUT /api/v2/form/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 34
"brand_id='text'&title='text'"Successful response
Permanently deletes this form by its ID.
Successful response
DELETE /api/v2/form/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Saves the values of the form fields of this ticket.
type: number
type: number
type: string = ' '
Can be a text value, or the ID of a form field option to be selected.
Successful response
PUT /api/v2/form/saveFormFields HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 86
"ticketID='text'&fields[0][formFieldID]='text'&fields[0][formFieldValue]='text'"Successful response
Last updated