POST
/
content
/
schemas
curl --request POST \
  --url https://api.pxyz.dev/api/v0/content/schemas \
  --header 'Content-Type: application/json' \
  --data '{
  "tenantId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "types": [
    {
      "type": "url",
      "name": "<string>",
      "title": "<string>",
      "hidden": true,
      "readOnly": true,
      "description": "<string>",
      "initialValue": "<string>"
    }
  ]
}'
{
  "id": "<string>",
  "tenantId": "<string>",
  "name": "<string>",
  "description": "<string>",
  "types": "<any>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
tenantId
string
required
name
string
required
types
object[]
required
description
string

Response

200
application/json
Successful response
id
string
required
tenantId
string
required
name
string
required
description
string | null
required
createdAt
string
required
updatedAt
string
required
types
any