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

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

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

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

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

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.