Save draft (upsert)
Save draft (upsert)
Creates or updates a prompt draft and uploads the body to storage. Requires org admin.
Authentication
X-API-Keystring
API key supplied via the X-API-Key header. Takes precedence over bearerApiKey when both are present.
OR
AuthorizationBearer
Same organization API key supplied as a Bearer token in the Authorization header (Authorization: Bearer <key>). Compatible with OpenAI-SDK-standard clients. Accepted by all authenticated endpoints; if both X-API-Key and Authorization: Bearer are present, X-API-Key wins.
Request
This endpoint expects an object.
registryRef
promptName
artifactType
Allowed values:
draftVersion
body
frontmatter
previousPromptName
Response
OK
OR
