Skip to main content
POST
/
components
/
{component_id}
/
configs
Create Config Version
curl --request POST \
  --url https://api.example.com/components/{component_id}/configs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": {},
  "version": 123,
  "label": "<string>",
  "stage": "draft",
  "notes": "<string>",
  "links": [
    {}
  ],
  "set_current": true
}
'
{
  "component_id": "<string>",
  "version": 123,
  "stage": "<string>",
  "config": {},
  "created_at": 123,
  "label": "<string>",
  "notes": "<string>",
  "updated_at": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

component_id
string
required

Component ID

Body

application/json

Config data

config
Config · object
required

The configuration data

version
integer | null

Optional version number

label
string | null

Optional label (e.g., 'stable')

stage
string
default:draft

Stage: 'draft' or 'published'

notes
string | null

Optional notes

Optional links to child components

set_current
boolean
default:true

Set as current version

Response

Successful Response

component_id
string
required
version
integer
required
stage
string
required
config
Config · object
required
created_at
integer
required
label
string | null
notes
string | null
updated_at
integer | null