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

Partially update a schema type

Updates the schema of a schema type. content_type cannot be changed. schema must be included in the body.

patch
/schema_types/{content_type__model}/
Authorizations
AuthorizationstringRequired

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

Path parameters
content_type__modelstringRequired

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

Example: product
Body

The body of a schema-type update request. Only schema is writable; content_type cannot be changed. schema must be supplied — a request that omits it fails.

schemaobjectRequired

The JSON-schema document describing the model's structured attribute data. Must be supplied on update.

Responses
200

The updated 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.

patch/schema_types/{content_type__model}/
PATCH /api/v1/remote/1/schema_types/{content_type__model}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 99

{
  "schema": {
    "type": "object",
    "properties": {
      "material": {
        "type": "string"
      },
      "weight": {
        "type": "number"
      }
    }
  }
}
{
  "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?