Skip to content

Set Default Review Playbook

POST /review-playbooks/{playbook_id}/set-default

Promote it, demoting whatever held the flag at the same scope.

One default per scope is three partial unique indexes in the schema, so the demotion is not a courtesy — without it the promotion is an IntegrityError.

NameInTypeNotes
playbook_idpathstring (uuid)required—
StatusDescriptionBody
200Successful ResponseReviewPlaybookView
422Validation ErrorHTTPValidationError
Terminal window
curl -X POST https://your-deployment.example.com/review-playbooks/{playbook_id}/set-default \
-H "Authorization: Bearer $COBRE_TOKEN"
FieldTypeNotes
idstring (uuid)required—
slugstringrequired—
namestringrequired—
descriptionstring | nullrequired, nullable—
scopeworkspace | organization | platformrequired—
is_defaultbooleanrequired—
is_activebooleanrequired—
active_revision_idstring (uuid) | nullrequired, nullable—
revision_numberintegerrequired—
templatesobjectrequired—
organization_idstring (uuid) | nullrequired, nullable—
workspace_idstring (uuid) | nullrequired, nullable—
created_atstring (date-time)required—
updated_atstring (date-time)required—