For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create a schema type

Creates a schema type for a content type.

content_type and schema are required. Only one schema type may exist per content type; a duplicate is rejected with a validation error on content_type.

post
/schema_types/
Authorizations
AuthorizationstringRequired

Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.

Body

The body of a schema-type create request.

content_typeintegerRequired

The identifier of the content type (model) this schema describes. Unique across all schema types.

schemaobjectRequired

The JSON-schema document describing the model's structured attribute data.

Responses
201

The created schema type.

application/json

A schema type — a JSON-schema definition bound to a model (content type).

pkintegerRead-onlyOptional

The unique identifier of the record.

content_typeintegerOptional

The identifier of the Django content type (model) this schema describes. Set on create; unique across all schema types.

schemaobjectOptional

The JSON-schema document describing the model's structured attribute data.

modelstringRead-onlyOptional

The model name of the content type (e.g. product).

created_datestring · date-timeRead-onlyOptional

When the record was created.

modified_datestring · date-timeRead-onlyOptional

When the record was last modified.

post/schema_types/
POST /api/v1/remote/1/schema_types/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 90

{
  "content_type": 17,
  "schema": {
    "type": "object",
    "properties": {
      "material": {
        "type": "string"
      }
    }
  }
}
{
  "pk": 3,
  "content_type": 17,
  "schema": {
    "type": "object",
    "properties": {
      "material": {
        "type": "string"
      }
    }
  },
  "model": "product",
  "created_date": "2026-06-01T10:00:00Z",
  "modified_date": "2026-06-01T10:00:00Z"
}

Last updated

Was this helpful?