API → Orgs → Update a member of your org
Parameters
Name
Type
Req.
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalObject Properties
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.
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"
}