POST
/v1/private/promptsCreate promptCreate prompt
Request body
application/json
objectPrompt_Write
change_descriptionstringdescriptionstringidstring · uuidmetadataobjectnamestringrequiredproject_idstring · uuidProject ID. Takes precedence over project_name when both are provided.
project_namestringFor project scope, specify either project_id or project_name. If project_name is provided and the project does not exist, it will be created. Ignored when project_id is provided. If neither is provided, the prompt is created at workspace level.
tagsarray of stringShow child attributes
templatestringtemplate_structurestringTemplate structure type: 'text' or 'chat'. Immutable after creation.
typestring{
"change_description": "string",
"description": "string",
"id": "00000000-0000-0000-0000-000000000000",
"metadata": {},
"name": "string",
"project_id": "00000000-0000-0000-0000-000000000000",
"project_name": "string",
"tags": [
"string"
],
"template": "string",
"template_structure": "text",
"type": "jinja2"
}Responses
Headers
LocationobjectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}