Scopes
Create Scope
Create a new scope with optional inline memberships
POST
Request Body
Optional client-provided ID. Format:
scope_{uuidv7}The scope type ID
Display name for the scope
External identifier for the scope
Optional metadata to associate with the scope
Optional parent scope ID. If provided, automatically creates a scope hierarchy edge.
Optional array of inline memberships to create with the scope. Each membership has:
subjectId(required): The subject to add to this scoperoleIds(optional): Array of role IDs to assign to the membership
Response
Returns the created scope object.You can create a scope with its parent relationship and initial memberships in a single request using
parentScopeId and memberships.