Skip to main content
POST
/
orgs
/
{org_id}
/
members
Add Member
curl --request POST \
  --url https://api.example.com/orgs/{org_id}/members \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": "<string>",
  "role": "editor"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Headers

authorization
string | null

Path Parameters

org_id
string
required

Body

application/json

Request model for adding a member to organization.

user_id
string
required

User ID to add

role
enum<string>
default:editor

Member role

Available options:
owner,
editor,
viewer

Response

Successful Response