API → OrgsUpdate a member of your org

Parameters

Name

Type

Req.

  • user_id

    string / UUID
    required
  • bodyapplication/json

    object
    optional
    Object Properties
    • role

      string
      optional
      Possible values
      • admin:  Admins can do anything in the org.
      • member:  Members of an org can not modify an org, but they belong in the org.

Returns

  • 200 OK

    successful operation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • company

      string
      optional
    • created_at

      string / ISO-8601
      optional
    • discord

      string
      optional
    • email

      string / Email Address
      optional
    • email_verified

      string / ISO-8601
      optional
    • first_name

      string
      optional
    • github

      string
      optional
    • id

      string / UUID
      optional
    • image

      string / URL
      optional
    • last_name

      string
      optional
    • name

      string
      optional
    • phone

      string / Phone Number
      optional
    • role

      string
      optional
      Possible values
      • admin:  Admins can do anything in the org.
      • member:  Members of an org can not modify an org, but they belong in the org.
      • service_account:  A service account role.
    • updated_at

      string / ISO-8601
      optional
put
/org/members/{user_id}
$ curl -X PUT "https://api.zoo.dev/org/members/{user_id}" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "role": "admin"
}'
200 OK
Response
{
  "company": "ZbTSQDsbiQLVhwFXT",
  "created_at": "2024-12-06T17:02:47.395Z",
  "discord": "QYTaHvwdjHwsrU4eME",
  "email": "H@arOtFZuE.com",
  "email_verified": "2024-12-06T17:02:47.395Z",
  "first_name": "yeKkJl9KTP1",
  "github": "lhLfHHit0kg",
  "id": "0e71426b-4079-4e80-921c-241436719d85",
  "image": "https://7D.KcuWqeR.com/I0q4/R099bU",
  "last_name": "FT8lzyhJJHFutoMm",
  "name": "U8fuMBQQBQhJcHKdZj8Z2YlyfQ",
  "phone": "+1-649-364-4316",
  "role": "admin",
  "updated_at": "2024-12-06T17:02:47.395Z"
}