Skip to content
KismetKismetDevelopers
llms.txt

POST import plan

View .md

POST /v1/developer/collections/{collection}/content/imports/plan

Operation ID: planContentImport

Typed custom-page content with draft isolation and exact reviewed publication. Production promotion requires an independent grant and the exact staged release. Privileged operations require independent grants. Content channel is separate from booking TEST/LIVE.

Field Value
Maturity preview
Required capability content.write
Freshness class authenticated-state
Quota cost 1

All operations require a Kismet Developer Bearer credential. Collection and resource authority is resolved from the credential’s installation grants; identifiers in the URL never grant access.

Name In Type Required Description
collection path string yes

The request body is JSON. The canonical schema is:

{
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,79}$"
},
"expectedRevision": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0
},
{
"type": "null"
}
]
},
"document": {
"type": "object",
"properties": {
"contentType": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,79}$"
},
"version": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
},
"template": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,79}$"
},
"version": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
},
"path": {
"type": "string",
"maxLength": 255,
"pattern": "^\\/[a-z0-9]+(?:[-/][a-z0-9]+)*$"
},
"fields": {
"type": "object",
"additionalProperties": {}
},
"seo": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"type": "string",
"maxLength": 500
}
},
"required": [
"title",
"description"
],
"additionalProperties": false
},
"source": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"imported"
]
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"capturedAt": {
"type": "string",
"format": "date-time"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"kind",
"url",
"capturedAt",
"sha256"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"authored"
]
}
},
"required": [
"kind"
],
"additionalProperties": false
}
]
}
},
"required": [
"contentType",
"template",
"path",
"fields",
"seo",
"source"
],
"additionalProperties": false
}
},
"required": [
"key",
"expectedRevision",
"document"
],
"additionalProperties": false
}

Minimal example:

{
"key": "our-story",
"expectedRevision": null,
"document": {
"contentType": {
"id": "story",
"version": 1
},
"template": {
"id": "story-layout",
"version": 1
},
"path": "/our-story",
"fields": {
"heading": "Our story",
"body": [
{
"type": "paragraph",
"text": "Welcome to our community."
}
]
},
"seo": {
"title": "Our story",
"description": "Meet the people behind your stay."
},
"source": {
"kind": "imported",
"url": "https://example.com/our-story",
"capturedAt": "2026-09-26T12:00:00Z",
"sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
}
}
}

Set KISMET_API_ORIGIN=https://api.ksmt.app and configure KISMET_DEVELOPER_API_KEY in your environment. Run server-credential requests from your backend, not browser code.

Terminal window
curl --request POST \
"$KISMET_API_ORIGIN/v1/developer/collections/example-collection/content/imports/plan" \
--header "Authorization: Bearer $KISMET_DEVELOPER_API_KEY" \
--header "Accept: application/json" \
--header "Content-Type: application/json" \
--data '{"key":"our-story","expectedRevision":null,"document":{"contentType":{"id":"story","version":1},"template":{"id":"story-layout","version":1},"path":"/our-story","fields":{"heading":"Our story","body":[{"type":"paragraph","text":"Welcome to our community."}]},"seo":{"title":"Our story","description":"Meet the people behind your stay."},"source":{"kind":"imported","url":"https://example.com/our-story","capturedAt":"2026-09-26T12:00:00Z","sha256":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}}}'
Status Meaning
200 Success.
400 Invalid request parameters or body.
401 Missing, invalid, expired, or inappropriate credential/session.
403 Credential lacks the required grant/capability, or an origin/CSRF check failed.
404 The authorized resource was not found.
409 Request conflicts with the installation environment or current state.
429 Rate limit or quota exceeded; inspect response metadata before retrying.
503 A required Kismet dependency is temporarily unavailable.

Content type: application/json. Required fields, nullable values, and nested structures are defined below.

View complete response schema
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"create",
"update"
]
},
"planDigest": {
"type": "string"
},
"input": {
"type": "object",
"properties": {
"key": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,79}$"
},
"expectedRevision": {
"anyOf": [
{
"type": "integer",
"exclusiveMinimum": 0
},
{
"type": "null"
}
]
},
"document": {
"type": "object",
"properties": {
"contentType": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,79}$"
},
"version": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
},
"template": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,79}$"
},
"version": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
},
"path": {
"type": "string",
"maxLength": 255,
"pattern": "^\\/[a-z0-9]+(?:[-/][a-z0-9]+)*$"
},
"fields": {
"type": "object",
"additionalProperties": {}
},
"seo": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 200
},
"description": {
"type": "string",
"maxLength": 500
}
},
"required": [
"title",
"description"
],
"additionalProperties": false
},
"source": {
"anyOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"imported"
]
},
"url": {
"type": "string",
"format": "uri",
"maxLength": 2048
},
"capturedAt": {
"type": "string",
"format": "date-time"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"kind",
"url",
"capturedAt",
"sha256"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"authored"
]
}
},
"required": [
"kind"
],
"additionalProperties": false
}
]
}
},
"required": [
"contentType",
"template",
"path",
"fields",
"seo",
"source"
],
"additionalProperties": false
}
},
"required": [
"key",
"expectedRevision",
"document"
],
"additionalProperties": false
},
"changes": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"action",
"planDigest",
"input",
"changes"
],
"additionalProperties": false
}