Skip to main content
PATCH
/
users
/
{id}
/
role
Update user role in my organisation
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({})
};

fetch('https://api.dolfinai.co/users/{id}/role', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "email": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Path Parameters

id
string<uuid>
required

Body

application/json
role
null | enum<string>
required
Available options:
Member,
Admin,
Owner

Response

OK

role
enum<string>
required
Available options:
Member,
Admin,
Owner
email
string
required
id
string<uuid>
name
null | string
createdAt
string<date-time>