Assign or unassign branches to a supervisor
PATCH/api/v1/supervisor/branches
Replaces the supervisor branch assignments with the provided list. Branches included in the request are assigned to the supervisor and granted the required permissions. Branches previously assigned but omitted from the request are unassigned and their permissions are removed.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Invalid body
Unauthorized
Forbidden access
Supervisor not found
Branch already assigned
Internal server error