Form

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

Endpoints that require the FORM_READ permission:

  • GET index

  • GET item

  • GET getFormForTicket

Endpoints that require the FORM_CUD permission:

  • POST index

  • PUT item

  • DELETE item

Additionally, PUT saveFormFields requires the FORM_SAVE permission.

index

get

Returns all of the existing forms.

Authorizations
apiKeystringRequired
Query parameters
querystring · min: 1OptionalDefault: ""Pattern: ^[0-9a-zA-Z ]+$
itemStartnumberOptionalDefault: 0
itemLimitnumber · max: 9999OptionalDefault: 15
Responses
200Success

No content

get
/api/v2/form
200Success

No content

index

post

Creates a new form for this brand.

Authorizations
apiKeystringRequired
Body
brand_idnumberRequired
titlestring · min: 2RequiredPattern: ^[a-zA-Z0-9 ]+$
Responses
200Success

No content

post
/api/v2/form
200Success

No content

item

get

Returns this form by its ID.

Optionally, you can send a ticket ID with it to get the form values for that ticket.

Authorizations
apiKeystringRequired
Path parameters
idnumberRequired
Query parameters
ticketIDnumberOptional
Responses
200Success

No content

get
/api/v2/form/{id}
200Success

No content

item

put

Updates this form by its ID.

Authorizations
apiKeystringRequired
Path parameters
idnumberRequired
Body
brand_idnumberRequired
titlestring · min: 2RequiredPattern: ^[a-zA-Z0-9 ]+$
Responses
200Success

No content

put
/api/v2/form/{id}
200Success

No content

item

delete

Permanently deletes this form by its ID.

Authorizations
apiKeystringRequired
Path parameters
idnumberRequired
Body
descriptionstringOptional

Optional parameter if you want to send a description for deletion.

Responses
200Success

No content

delete
/api/v2/form/{id}
200Success

No content

getFormForTicket

get

Returns the form(s) for this ticket.

Authorizations
apiKeystringRequired
Query parameters
ticketIDnumberRequired
Responses
200Success

No content

get
/api/v2/form/getFormForTicket
200Success

No content

saveFormFields

put

Saves the values of the form fields of this ticket.

Authorizations
apiKeystringRequired
Body
ticketIDnumberRequired
Responses
200Success

No content

put
/api/v2/form/saveFormFields
200Success

No content

Last updated