Add workspace member
Add a new member to the workspace with specified roles.
This creates role bindings for the specified principal with the given roles.
By default, this endpoint waits for the roles to propagate before returning.
Use `wait_role_propagation=false` to skip waiting (useful for bulk operations).
Example:
```
POST /apis/entities/v2/workspaces/ml-team/members
{
"principal": "user@example.com",
"roles": ["Editor"]
}
```
Path parameters
workspace
Query parameters
wait_role_propagation
If true, wait for roles to propagate before returning (default: true). Set to false for bulk operations.
Request
This endpoint expects an object.
principal
The principal identifier (email, user ID, or group ID)
roles
List of roles to grant to the principal
Response
Successful Response
principal
The principal identifier
roles
List of roles granted to the principal
granted_at
Earliest date when a role was granted to this principal
granted_by
Who granted the earliest role
Errors
422
Unprocessable Entity Error