Update the details of a user identified by the user_id in the the path parameter.
Only the fields that are specified in the request body will be updated. All other fields will remain unchanged.
When patching a mobile number, the new mobile number should be enrolled for Authentication Factors.
The tag field is a custom field that can be used to search and filter.
BCP47 locale code (e.g. en, en-US). The locale determines which email and SMS user notification templates are used.
Brand identifier used to determine the set of email and SMS user notification templates. Must be alphanumeric, up to 25 characters, and contain no spaces.
Optional roles to assign to the user. This uses overwrite behaviour - roles included in this list will be assigned, and roles not included will be unassigned. Users cannot update their own roles. For a full description of the permissions associated to each role, see our product documentation.
- Weavr Sandbox Environmenthttps://sandbox.weavr.io/multi/users/{user_id}
- Mock serverhttps://api.weavr.io/_mock/products/multi/openapi/users/{user_id}
curl -i -X PATCH \
'https://sandbox.weavr.io/multi/users/{user_id}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-H 'api-key: YOUR_API_KEY_HERE' \
-H 'idempotency-ref: string' \
-d '{
"name": "string",
"surname": "string",
"email": "user@example.com",
"mobile": {
"countryCode": "stri",
"number": "string"
},
"dateOfBirth": {
"year": 1900,
"month": 1,
"day": 1
},
"tag": "string",
"locale": "en-GB",
"brand": "string",
"roles": [
"CARD_ASSIGNEE"
]
}'Success
The state of the user. If the active attribute is false, then the user will not be able to log in.
The tag field is a custom field that can be used to search and filter.
BCP47 locale code (e.g. en, en-US). The locale determines which email and SMS user notification templates are used.
Brand identifier used to determine the set of email and SMS user notification templates. Must be alphanumeric, up to 25 characters, and contain no spaces.
{ "id": "string", "identity": { "type": "CONSUMER", "id": "string" }, "name": "string", "surname": "string", "email": "user@example.com", "mobile": { "countryCode": "stri", "number": "string" }, "active": true, "dateOfBirth": { "year": 1900, "month": 1, "day": 1 }, "tag": "string", "countryOfResidence": "st", "locale": "en-GB", "brand": "string", "roles": [ "CARD_ASSIGNEE" ] }