v1
latestOpenAPI 3.1.02026-08-0413468163.9 KBv1-policies
Update Assignment Endpoint
Update an existing assignment's run-order priority for one scope.
The CLI calls this when settings set branch_sql --order changes the run order of a hook that already exists (the policy PATCH only touches config). Scope is named in the body via (scope_type, scope_id) so a policy assigned to several scopes stays individually addressable.
patch/v1/policies/{policy_id}/assignments
Path parameters
policy_idstring required
Response
Successful Response
{"stackTrail":"paths:/v1/policies/{policy_id}/assignments:patch:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}