POST
/
v1
/
components
/
{id}
/
versions
curl --request POST \
  --url https://api.edgee.app/v1/components/{id}/versions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "version": "<string>",
  "wit_world_version": "<string>",
  "wasm_url": "<string>",
  "dynamic_fields": [
    {
      "name": "<string>",
      "title": "<string>",
      "type": "string",
      "required": true,
      "description": "<string>"
    }
  ],
  "changelog": "<string>"
}'
{
  "object": "component_version_item",
  "version": "<string>",
  "wit_world_version": "<string>",
  "wasm_url": "<string>",
  "dynamic_fields": [
    {
      "name": "<string>",
      "title": "<string>",
      "type": "string",
      "required": true,
      "description": "<string>"
    }
  ],
  "changelog": "<string>",
  "created_at": "2022-03-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required

Body

application/json
version
string
required

Version of the component

wit_world_version
string
required

Wit world version of the component

wasm_url
string
required

URL of the component

dynamic_fields
object[]

List of configuration fields

changelog
string

Changelog of the component version

Response

200
application/json
The created Component Version

Version of a component

object
string

String representing the object's type. Objects of the same type share the same value

Example:

"component_version_item"

version
string

Version of the component

wit_world_version
string

Wit world version of the component

wasm_url
string

URL of the component

dynamic_fields
object[]

List of configuration fields

changelog
string

Changelog of the component version

created_at
string

Time at which the component version item was created

Example:

"2022-03-01T00:00:00Z"