Save draft (upsert)

View as Markdown
Creates or updates a prompt draft and uploads the body to storage. Requires org admin.

Authentication

X-API-Keystring
API key for programmatic access

Request

This endpoint expects an object.
registryRefstringRequired
promptNamestringRequiredformat: "^[a-zA-Z0-9._-]+$">=1 character
artifactTypeenumRequired
Allowed values:
draftVersionstringRequiredformat: "^\d+\.\d+\.\d+$">=1 character
bodystringRequired
frontmattermap from strings to anyOptional
previousPromptNamestringOptional

Response

OK
any
OR
any