Skip to content

Create Schema

POST
/v1/schemas
curl --request POST \
--url https://api.deskew.dev/v1/schemas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example", "json_schema": {} }'
Media typeapplication/json
SchemaBody
object
name
required
Name
string
>= 1 characters <= 80 characters /^[a-zA-Z0-9_\-]+$/
json_schema
required
Json Schema
object
key
additional properties
any

Example generated

{
"name": "example",
"json_schema": {}
}

Successful Response

Media typeapplication/json
Response Create Schema V1 Schemas Post
object
key
additional properties
any

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}