curl --request PATCH \
--url https://api.royalti.io/user/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'firstName=<string>' \
--form 'lastName=<string>' \
--form 'ipi=<string>' \
--form 'role=<string>' \
--form 'nickName=<string>' \
--form 'userType=<string>' \
--form 'phone=<string>' \
--form 'country=<string>' \
--form file='@example-file'{}/user/
curl --request PATCH \
--url https://api.royalti.io/user/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'firstName=<string>' \
--form 'lastName=<string>' \
--form 'ipi=<string>' \
--form 'role=<string>' \
--form 'nickName=<string>' \
--form 'userType=<string>' \
--form 'phone=<string>' \
--form 'country=<string>' \
--form file='@example-file'{}/user/{userId} endpoint allows updating the details of a specific user identified by their unique userId.
Method:PATCH
Request Payload:
| Parameter | Type | Description |
|---|---|---|
| firstName | string | The updated first name of the user. |
| lastName | string | The updated last name of the user. |
| ipi | string | The updated IPI (Interested Parties Information) of the user. |
| role | string | The updated role of the user. |
| nickName | string | The updated nickname of the user. |
| userType | string | The updated type of user. |
| phone (Optional) | string | The updated phone number of the user. |
| country (Optional) | string | The updated country of the user. |
const response = await fetch('https://api.royalti.io/user/example-id', {
method: 'PATCH',
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
User ID
The updated first name of the user
The updated last name of the user
The updated IPI (Interested Parties Information) of the user
The updated role of the user
The updated nickname of the user
The updated type of user
The updated phone number of the user
The updated country of the user
Profile image file
success
The response is of type object.