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
description
string
types
object[]
required

Response

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