prompt_template (template metadata) and prompt_version (the version content).
prompt_template| Field | Type | Required | Description |
|---|---|---|---|
prompt_name | string | Yes | The unique prompt name within the workspace. 1–512 characters. |
tags | string[] | No | Tags to attach to the prompt registry entry. |
folder_id | integer | No | The ID of the folder to publish the prompt template into. If omitted, the prompt is created at the workspace root. Use Resolve Folder ID by Path to look up an ID from a path, or Create Folder to make one. |
workspace_id | integer | No | Optional workspace override; defaults to the workspace associated with the API key. |
prompt_versionprompt_template, commit_message, metadata, provider_id, etc.) is documented in the schema below.
Successful Response
The ID of the prompt template.
The name of the prompt template.
The ID of the created prompt version.
The version number of the prompt template.
Metadata associated with the prompt blueprint. Supports additional custom fields beyond the model field.