Skip to content

Add Member

POST
/api/organizations/{organization_id}/members
curl --request POST \
--url https://example.com/api/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/members \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "email": "example", "role": "admin" }'

Add an already-registered user to the organization.

BUG-377: the granted role may not rank above the caller’s own role (ORG_ROLE_RANK puts ADMIN above OWNER, so an OWNER can no longer hand out ‘admin’). To bring in someone without an account, use POST …/invite.

organization_id
required
Organization Id
string format: uuid
Media type application/json
OrganizationMemberCreate

Add member to organization

object
email
required
Email
string
role
UserRole

User roles

string
default: member
Allowed values: admin owner member viewer

Successful Response

Media type application/json
OrganizationMemberResponse

Organization member response

object
created_at
required
Created At
string format: date-time
id
required
Id
string format: uuid
organization_id
required
Organization Id
string format: uuid
role
required
UserRole

User roles

string
Allowed values: admin owner member viewer
user_email
Any of:
string
user_id
required
User Id
string format: uuid
user_name
Any of:
string
Example
{
"role": "admin"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}