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": "HOJjBcfSUqsBq6hrV",
  "created_at": "2024-04-18T22:04:36.664Z",
  "discord": "o",
  "email": "1TdMFOnE@egrphhw4SP.com",
  "email_verified": "2024-04-18T22:04:36.664Z",
  "first_name": "j78y2EFKY3iuouu2zTOgy6WR1XUYm",
  "github": "x0gWtvqKJfRrYgpUPsVy1MrKDP",
  "id": "4682573e-a7ec-4474-a124-cd8967cc1c90",
  "image": "https://u4S2.TpVwsDtz0d.com/RiMzQsIfxFA/Uhm4yNJQGo82",
  "last_name": "qv6EAZMcUryOkAK86ZmA45zbw0R",
  "name": "",
  "phone": "+1-885-969-4420",
  "role": "admin",
  "updated_at": "2024-04-18T22:04:36.664Z"
}