Update a user account
const url = 'https://example.com/user/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"language":"example","physicianCountry":"example","phone":"example","email":"hello@example.com","shouldNotify":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/user/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "language": "example", "physicianCountry": "example", "phone": "example", "email": "hello@example.com", "shouldNotify": true }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Examplegenerated
{ "language": "example", "physicianCountry": "example", "phone": "example", "email": "hello@example.com", "shouldNotify": true}Responses
Section titled “Responses”User updated.
The Abi record representing a person who can use a configured service.
object
The unique identifier Abi assigns to the user account.
An optional identifier from the partner system.
The user’s first name.
The user’s surname.
The user’s email address.
The user’s mobile number including international dialing code (E.164).
The user’s date of birth.
The user’s gender where supplied.
The language used to communicate with Abi.
The user’s nationality or country code.
The country where the user lives or is currently located.
The country in which the user was born.
The country in which responding healthcare professionals are licensed.
The partner company recorded in Abi.
The permitted number of associated accounts for an enabled group-account policy.
The user’s current access status.
Example
{ "id": "abi1234", "uniqueId": "123abc789xyz", "firstName": "Jane", "lastName": "Doe", "email": "janedoe@example.com", "phone": "+441234567890", "dateOfBirth": "1994-10-07", "gender": "male", "language": "en", "country": "it", "location": "es", "origin": "gb", "physicianCountry": "es", "partnerName": "Abi", "associatedAccounts": 5, "userStatus": "activeUser"}