{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scale-ai/json-schema/scale-ai-put-checkpoint-request-schema.json",
  "title": "PutCheckpointRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scale-ai-checkpoints-api-openapi.yml#/components/schemas/PutCheckpointRequest",
  "properties": {
    "thread_id": {
      "type": "string",
      "title": "Thread ID"
    },
    "checkpoint_ns": {
      "type": "string",
      "title": "Checkpoint namespace",
      "default": ""
    },
    "checkpoint_id": {
      "type": "string",
      "title": "Checkpoint ID"
    },
    "parent_checkpoint_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Parent checkpoint ID"
    },
    "checkpoint": {
      "additionalProperties": true,
      "type": "object",
      "title": "Checkpoint JSONB payload"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Checkpoint metadata"
    },
    "blobs": {
      "items": {
        "$ref": "#/$defs/BlobData"
      },
      "type": "array",
      "title": "Channel blob data"
    }
  },
  "type": "object",
  "required": [
    "thread_id",
    "checkpoint_id",
    "checkpoint"
  ],
  "$defs": {
    "BlobData": {
      "properties": {
        "channel": {
          "type": "string",
          "title": "Channel name"
        },
        "version": {
          "type": "string",
          "title": "Channel version"
        },
        "type": {
          "type": "string",
          "title": "Serialization type tag"
        },
        "blob": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Base64-encoded binary data"
        }
      },
      "type": "object",
      "required": [
        "channel",
        "version",
        "type"
      ],
      "title": "BlobData"
    }
  }
}