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": "I0dy5q1OudKoy1Ev4DaGOO",
  "created_at": "2024-09-19T16:12:06.061Z",
  "discord": "zcbFWuk7GFCkL5EWxJLHGjZa0",
  "email": "SR8l@L5.com",
  "email_verified": "2024-09-19T16:12:06.061Z",
  "first_name": "9hynP2VbVanE7XSs7Np",
  "github": "UPr54Mihqu3Kuxp",
  "id": "e12f91dc-22f1-4091-9826-0f5446f40913",
  "image": "https://YlY36Ev.6.com/ivo/o7sbBmve2N",
  "last_name": "PxQpaMnC7NzSSFdsN7N2z6VK",
  "name": "gHSavqkcqXeOtVWDsdXrEHu",
  "phone": "+1-537-142-6609",
  "role": "service_account",
  "updated_at": "2024-09-19T16:12:06.061Z"
}