scope-membership

Grant a scope membership inside your own org (idempotent)

Grant a team:/project: scope to a user in your organization. The org comes from the token. Idempotent: replaying an existing grant returns 200, and a different role on replay updates the stored role. The grant applies from that user's next request.

post/me/scope-memberships

Request

Request body

user_idstring required

Application user ID

scope_idstring required

Canonical scope id "<kind>:<value>" (kinds: user/team/org/project)

rolestring

Role within the scope

Response

Successful Response

createdboolean required

False when the grant already existed (idempotent add)

notestring

Propagation caveat

Changes

No recorded changes to this operation across all 1 revision of this API.