Update an existing user.
cURL
curl --request PUT \ --url https://public.api.serval.com/v2/users/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "email": "<string>", "firstName": "<string>", "lastName": "<string>", "role": "USER_ROLE_UNSPECIFIED", "avatarUrl": "<string>" } '
{ "data": { "id": "<string>", "email": "<string>", "firstName": "<string>", "lastName": "<string>", "name": "<string>", "role": "USER_ROLE_UNSPECIFIED", "avatarUrl": "<string>", "createdAt": "2023-11-07T05:31:56Z", "deactivatedAt": "2023-11-07T05:31:56Z", "timezone": "<string>" } }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
USER_ROLE_UNSPECIFIED
USER_ROLE_ORG_MEMBER
USER_ROLE_ORG_ADMIN
USER_ROLE_ORG_GUEST
Success
Show child attributes
Was this page helpful?