createRoleBinding
POST/api/v1/role-bindings
createRoleBinding
Request
Responses
- 201
- 404
- 409
- 422
Created; approver, admin and secret-admin bindings are pending until a second admin confirms them, except the local admin's before the first OIDC admin binding and the sole admin's (docs/architecture.md §10)
object.not_found: no such user or team
role_binding.exists: the same subject, role and scope are bound
role_binding.scope: admin and secret-admin are hub-wide only; request.invalid: neither or both of user and group