Skip to main content
PUT
/
api
/
prompts
/
{id}
Update PromptMetadata
curl --request PUT \
  --url https://platform.kodexa.ai/api/prompts/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "changeSequence": 123,
  "createdOn": "2023-11-07T05:31:56Z",
  "deprecated": true,
  "extensionPackRef": "<string>",
  "id": "<string>",
  "metadata": "aSDinaTvuI8gbWludGxpZnk=",
  "name": "<string>",
  "publicAccess": true,
  "slug": "<string>",
  "template": true,
  "updatedOn": "2023-11-07T05:31:56Z",
  "uuid": "<string>",
  "version": "<string>"
}
'
{
  "changeSequence": 123,
  "createdOn": "2023-11-07T05:31:56Z",
  "deprecated": true,
  "extensionPackRef": "<string>",
  "id": "<string>",
  "metadata": "aSDinaTvuI8gbWludGxpZnk=",
  "name": "<string>",
  "publicAccess": true,
  "slug": "<string>",
  "template": true,
  "updatedOn": "2023-11-07T05:31:56Z",
  "uuid": "<string>",
  "version": "<string>"
}

Authorizations

x-api-key
string
header
required

API key for authentication. Create one from the Kodexa platform UI under Settings > Access Tokens.

Path Parameters

id
string<uuid>
required

Unique identifier (UUID) of the resource.

Body

application/json

Prompt metadata defines a prompt template used by AI assistants for document processing.

changeSequence
integer<int32>

Optimistic locking version number.

createdOn
string<date-time>

Timestamp when the prompt was created.

deprecated
boolean

Whether this prompt is deprecated.

extensionPackRef
string

Reference to the extension pack.

id
string

Unique identifier (UUID) for the prompt.

metadata
string<byte>
name
string

Display name of the prompt.

publicAccess
boolean

Whether the prompt is publicly accessible.

slug
string

URL-friendly identifier for the prompt.

template
boolean

Whether this prompt is a template.

updatedOn
string<date-time>

Timestamp when the prompt was last updated.

uuid
string

Secondary UUID identifier.

version
string

Semantic version string.

Response

Updated PromptMetadata

Prompt metadata defines a prompt template used by AI assistants for document processing.

changeSequence
integer<int32>

Optimistic locking version number.

createdOn
string<date-time>

Timestamp when the prompt was created.

deprecated
boolean

Whether this prompt is deprecated.

extensionPackRef
string

Reference to the extension pack.

id
string

Unique identifier (UUID) for the prompt.

metadata
string<byte>
name
string

Display name of the prompt.

publicAccess
boolean

Whether the prompt is publicly accessible.

slug
string

URL-friendly identifier for the prompt.

template
boolean

Whether this prompt is a template.

updatedOn
string<date-time>

Timestamp when the prompt was last updated.

uuid
string

Secondary UUID identifier.

version
string

Semantic version string.