Update a checkout form element
POSThttps://api.tickettailor.com/v1/checkout_forms/:checkout_form_id/elements/:checkout_form_element_id
Updates an existing checkout form element
Request
Path Parameters
The unique identifier for the checkout form
The unique identifier for the checkout form element
- application/x-www-form-urlencoded
Body
The list of answers for the checkout form element
The question for the checkout form element
Whether the checkout form element is asked globally or per ticket
true
Whether the checkout form element is required to answer
true
The type of the checkout form element
Possible values: [multiCheckbox
, radio
, select
]
Responses
- 200
- default
Successfully updated the checkout form element
- application/json
- Schema
- Example (auto)
Schema
A unique identifier for the checkout form element
A unique identifier for the checkout form
List of possible answers for the element
Whether the checkout form element is asked globally or per ticket
Possible values: [true
, false
]
The question to be answered
Indicates whether the question is required to answer
Possible values: [true
, false
]
The type of the checkout form element
Possible values: [multiCheckbox
, radio
, select
]
{
"object": "checkout_form_element",
"id": "ce_123",
"checkout_form_id": "cf_123",
"options": [
"Yes",
"No"
],
"per_ticket": "true",
"question": "Do you have any dietary requirements?",
"required": "true",
"type": "radio"
}
Error schema
- application/json
- Schema
- Example (auto)
Schema
Http status code
Readable error code
Detailed error message
errors object[]
{
"status": 0,
"error_code": "string",
"message": "string",
"errors": [
{
"field": "string",
"messages": [
"string"
]
}
]
}
Authorization: http
name: BasicAuthtype: httpdescription: Use base64 encoded api key created in Ticket Tailor dashboard. scheme: basic
- curl
- php
- ruby
- python
- nodejs
- go
- CURL
curl -L -X POST 'https://api.tickettailor.com/v1/checkout_forms/:checkout_form_id/elements/:checkout_form_element_id' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Accept: application/json' \
-H 'Authorization: Basic PHVzZXJuYW1lPjo8cGFzc3dvcmQ+'