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": "tE7goIftOHt3JqiLLnJtS9cuoQKU",
"created_at": "2024-05-28T14:40:56.252Z",
"discord": "dHRT3npI3GSujpj6awyAR3L29Vrq2",
"email": "s@xOsplkg2m.com",
"email_verified": "2024-05-28T14:40:56.252Z",
"first_name": "OWsc4JCVyGXDi6yNYrUG77de",
"github": "i57rZUsHh1L1HrEuPadoNCKDQPgps2",
"id": "cee507ac-d4fc-4ba5-861a-f50be009947e",
"image": "https://Q4.0xu98Wf1.com/eHOQ/AqnQtnhiI",
"last_name": "2BVvJ4p55Pe2bv",
"name": "Frt74Wqz1cg",
"phone": "+1-374-345-4449",
"role": "admin",
"updated_at": "2024-05-28T14:40:56.252Z"
}