Skip to main content
POST
Create code-set-values

Authorizations

Authorization
string
header
required

Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.

Headers

Idempotency-Key
string

Reuse this key for retries of the same write. Scoped to this API key; retained until key deletion. Different requests with the same key return 409.

Required string length: 1 - 128
Pattern: ^[!-~]+$

Body

application/json
code
string
required

Internal identifier for this value

Maximum string length: 100
code_set
integer
required

The code set this value belongs to

labels
Labels · object

Localized labels keyed by locale code

sort_order
integer

Display order within the code set

is_active
boolean

Whether this value is currently active and selectable

Response

Created

code
string
required

Internal identifier for this value

Maximum string length: 100
labels
any
required

Localized labels keyed by locale code

sort_order
integer
required

Display order within the code set

is_active
boolean
required

Whether this value is currently active and selectable

code_set
integer
required

The code set this value belongs to

id
integer
required