Skip to main content
POST
/
schemas
Create a schema
curl --request POST \
  --url https://api.example.com/schemas \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "My Schema",
  "schema": {
    "foo": "bar"
  }
}
'
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "My Schema",
  "schema": {
    "foo": "bar"
  }
}

Body

application/json
name
string
required

The name of the schema

Example:

"My Schema"

schema
object
required

The schema

Example:
{ "foo": "bar" }

Response

Schema created successfully

id
string
required

The id of the schema

Example:

"123e4567-e89b-12d3-a456-426614174000"

name
string
required

The name of the schema

Example:

"My Schema"

schema
object
required

The schema

Example:
{ "foo": "bar" }