Preview promoting a variant branch
GEThttps://platform.docana.com/api/v1/agents/:agentId/branches/:branchId/promote/
Previews what promoting this variant would do: whether it is stale (the published pointer moved since the branch was forked, so promoting would make main’s draft skip the work main gained in the meantime) and, if so, the semantic changes between the fork base and what is currently published. Promoting itself does not publish — this preview is about what the resulting draft lineage would miss, not about production.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The promotion preview
The request body, query, or path failed validation. See validationErrors.
The API key or session is missing, expired, or malformed.
The caller is authenticated but not allowed to perform this operation.
Branch not found, not owned by this agent, or no access to its application
Unexpected server error.