Input fields
List all input fields
- GET /fast-events/v1/admin/events/(integer: id)/input_fields
List all input fields of the selected event.
Optional query parameters
- _fields
A comma separated string of fields included in the response. For example
name,type
.
Example request
$ curl \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.get(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
[ { "id": "v0f446", "name": "Country", "type": "text", "value": "", "is_required": false, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields" } ] } }, { "id": "v19e73", "name": "Public transport", "type": "select", "value": "Yes,No", "is_required": true, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields/v19e73" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields" } ] } } ]
Changelog
Version
Description
1.0
Introduced.
List input field
- GET /fast-events/v1/admin/events/(integer: id)/input_fields/(input_field)
Retrieve details of a single input field.
Query parameters
- _fields
A comma separated string of fields included in the response. For example
name,type
.
Example request
$ curl \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.get(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
{ "id": "v0f446", "name": "Country", "type": "text", "value": "", "is_required": false, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields" } ] } }
Changelog
Version
Description
1.0
Introduced.
Update input field
- PATCH /fast-events/v1/admin/events/(integer: id)/input_fields/(input_field)
Update a input field.
Example request
$ curl \ -X PATCH \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ -d '{"value": "Netherlands"}' \ https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH"); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ "value" => "Netherlands", ])); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') JSON = {'value': 'Netherlands'} response = requests.patch(URL, headers=HEADERS, auth=AUTH, json=JSON) print(response.json())
Example response
{ "name": "Country", "type": "text", "value": "Netherlands", "is_required": false, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields" } ] } }
Changelog
Version
Description
1.0
Introduced.
Delete input field
- DELETE /fast-events/v1/admin/events/(integer: id)/input_fields/(input_field)
Delete a single input field.
Example request
$ curl \ -X DELETE \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields/v0f446' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') response = requests.delete(URL, headers=HEADERS, auth=AUTH) print(response.json())
Example response
{ "deleted": true, "previous": { "name": "Country", "type": "text", "value": "Netherlands", "is_required": false } }
Changelog
Version
Description
1.0
Introduced.
Create input field
- POST /fast-events/v1/admin/events/(integer: id)/input_fields
Create a new input field.
Example request
$ curl \ -X PATCH \ -H "X-FE-API-KEY: 3zo58AUYP9zOE6YT" \ -H "Content-Type: application/json" \ -u "test:4ZAN O5OY OAvZ FZb2 Lslv JnJG" \ -d '{"name":"Country"}' \ https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields
<?php $ch = curl_init(); $url = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields'; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH"); curl_setopt($ch, CURLOPT_USERPWD, 'test:4ZAN O5OY OAvZ FZb2 Lslv JnJG'); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', 'X-FE-API-KEY: 3zo58AUYP9zOE6YT') ); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ "name" => "Country", ])); $result = curl_exec($ch); echo $result;
import requests from requests.auth import HTTPBasicAuth URL = 'https://exampledomain.com/wp-json/fast-events/v1/admin/events/54/input_fields' HEADERS = {'X-FE-API-KEY':'3zo58AUYP9zOE6YT'} AUTH = HTTPBasicAuth('test', '4ZAN O5OY OAvZ FZb2 Lslv JnJG') JSON = {'name': 'Country'} response = requests.patch(URL, headers=HEADERS, auth=AUTH, json=JSON) print(response.json())
Example response
{ "id": "v3f5e6", "name": "Country", "type": "text", "value": "", "is_required": true, "_links": { "self": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields/v3f5e6" } ], "collection": [ { "href": "https://vinyl-openair.com/wp-json/fast-events/v1/admin/events/54/input_fields" } ] } }
Changelog
Version
Description
1.0
Introduced.