POST /projects/{projectId}/prompts/{promptId}/environments/{environment}/promote
POST /api/v1/projects/{projectId}/prompts/{promptId}/environments/{environment}/promote on the Caveman Cloud control plane. Requires the prompt:write scope. Not exposed to autonomous agents: Changes the prompt that production traffic and SDK callers run. A person promotes; an agent proposes a version.
post/projects/{projectId}/prompts/{promptId}/environments/{environment}/promote
Request
- Base URLhttps://api.caveman.so/api/v1
- URLhttps://api.caveman.so/api/v1/projects/{projectId}/prompts/{promptId}/environments/{environment}/promote
- Auth
- OAuth 2Authorization code: /api/v1/oauth/authorizeToken URL: /api/v1/oauth/token scopes: prompt:write
- or HTTP bearer
- or API key in cookie cave_access
- or API key in cookie __Secure-cave_identity.session_token
Request body
Response
Successful response. Exact status depends on synchronous or durable delivery outcome.
Changes
No recorded changes to this operation across all 1 revision of this API.