Skip to main content
POST

Authorizations

x-api-key
string
header
required

API key used to authenticate and authorise every request. Include it in the x-api-key header.

Headers

Accept
enum<string>
required

Defines the response type.

Available options:
application/vnd.Creative Force.v2.3+json,
application/vnd.Creative Force.v2.3+xml
x-api-language
enum<string>[]

Defines the languages included in the response. If non are provided, the account default language is returned.

Value all overrides any other values present.

You can request multiple languages using a comma-separated string of languages.

The selected language must be supported by your account or a 400 error is returned.

Available options:
all,
ar_AR,
bg_BG,
bn_IN,
ca_ES,
cs_CZ,
cy_GB,
da_DK,
de_DE,
en_GB,
en_US,
el_GR,
es_NN,
es_LA,
et_EE,
fa_NN,
fi_FI,
fr_FR,
fr_CA,
he_IL,
hi_IN,
hr_HR,
hu_HU,
hy_AM,
it_IT,
ja_JP,
ko_KR,
lt_LT,
ms_MY,
nl_NL,
nb_NO,
pl_PL,
pt_BR,
ro_RO,
ru_RU,
sk_SK,
sl_SI,
sq_AL,
sr_RS,
sv_SE,
sw_NN,
th_TH,
tr_TR,
uk_UA,
vi_VN,
zh_CN,
zh_HK

Body

application/json

Category creation payload.

season
string
required

Slug of the season.

status
enum<string>
required

Active or inactive state of the category.

Available options:
active,
inactive
translated
object
required

Translated category field values keyed by field name.

chapters
string[]

Array of chapter slugs.

Each chapter must belong to the same season as season.

divisions
integer

Number of divisions.

Required range: x >= 1
entrant_max_entries
integer | null

Maximum number of entries per entrant.

Required range: x >= 1
fill_entry_name
boolean

Specifies whether to prefill the entry name when the category is selected.

max_image_width
integer

Maximum image width.

form
string

Slug of the form.

The form must be valid for season.

parent
string

Slug of the parent category.

The parent category must belong to the same season as season.

promoted
enum<integer> | null

Promotion state of the category.

1 when promoted, 0 when not, and null when no preference has been set.

Available options:
0,
1,
null
pdf_packing_slip
boolean

Specifies whether to generate a PDF packing slip.

Required when translated.packing_slip_instructions is provided.

Response

Category created.

Competition category that entries are submitted to.

Includes the entry form used for submissions, its translated name and description, the season it belongs to, and the rules that govern entries within it. Categories can be nested under a parent category and made available across one or more chapters.

created
string<date-time>

Date and time when the category was created.

description
object

Description shown to entrants on the category, as an HTML fragment.

Map keyed by locale code (for example, en_GB or fr_FR). Keys are drawn from the languages enabled on the account. Values are the translated string.

divisions
integer

Number of divisions configured for the category. Always at least 1.

Required range: x >= 1
form
object

Entry form attached to the category.

name
object

Display name of the category.

Map keyed by locale code (for example, en_GB or fr_FR). Keys are drawn from the languages enabled on the account. Values are the translated string.

parent
object | null

Parent category this category sits under.

null for a top-level category.

promoted
enum<integer> | null

Promotion state of the category.

1 when promoted, 0 when not, and null when no preference has been set.

Available options:
0,
1,
null
season
object

Season the category belongs to.

shortcode
object

Short code used to reference the category.

Map keyed by locale code (for example, en_GB or fr_FR). Keys are drawn from the languages enabled on the account. Values are the translated string.

slug
string

Short URL-safe identifier for the category.

status
enum<string>

Current state of the category.

Available options:
active,
inactive
updated
string<date-time>

Date and time when the category was last updated.

chapters
object[]

Chapters the category is available in.

entrant_max_entries
integer | null

Maximum number of entries a single entrant may submit to this category.

null when the number of entries is not capped.

entry_name_label
object

Custom label for the entry-name field shown to entrants.

Map keyed by locale code (for example, en_GB or fr_FR). Keys are drawn from the languages enabled on the account. Values are the translated string.

fill_entry_name
boolean

Specifies whether entrants are asked to name their entry when submitting to this category.

image_heading
object

Heading shown above the category images.

Map keyed by locale code (for example, en_GB or fr_FR). Keys are drawn from the languages enabled on the account. Values are the translated string.

images
object[]

Images attached to the category.

max_image_width
integer

Maximum display width for the category images, in pixels.

packing_slip_instructions
object

Instructions shown on the packing slip for the category.

Map keyed by locale code (for example, en_GB or fr_FR). Keys are drawn from the languages enabled on the account. Values are the translated string.

pdf_packing_slip
boolean

Specifies whether a PDF packing slip is enabled for the category.