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": "f5I6tEjBoW",
"created_at": "2024-10-29T16:17:17.982Z",
"discord": "neO4fmOIGrjpYjlMq9ifq9p0z6Z",
"email": "RD491p@22.com",
"email_verified": "2024-10-29T16:17:17.982Z",
"first_name": "Dx0JfQHk0UrgG",
"github": "JbzMJWYiMW3i71Tc2ht",
"id": "caa80ba3-273e-4b1a-9b26-8db0aa6529b4",
"image": "https://h.SS8Osg.com/No/PdWIbBU",
"last_name": "jLFj66LKY4",
"name": "XEcxZD7xm",
"phone": "+1-341-549-1902",
"role": "admin",
"updated_at": "2024-10-29T16:17:17.982Z"
}