Skip to content

Assign Space Admin

POST
/space/admins

Assigns a user as Admin of the current Space. Only the Owner can assign admins. Idempotent — if the user is already an admin, this is a no-op. The Space must be active (not deleted).

X-Space-Id
required
string format: uuid

UUID of the target Space (tenant boundary). Validated against user access.

object
userId
required

User ID from the IdP

string
<= 128 characters //^[\x21-\x7E]+$//
Example
usr_abc123
object
id
required

Assignment ID

string format: uuid
Example
770e8400-e29b-41d4-a716-446655440000

Unauthorized — missing or invalid JWT

Forbidden — insufficient permissions

Resource not found

Conflict — resource already exists or constraint violated