Skip to main content
Weavr API
Setup

Update a user

PATCH/users/{user_id}

Updates the user identified by the user_id path parameter. Only the fields you send are changed; everything else is left as it was.

If you change the mobile number, enroll the new number as an authentication factor afterwards, or one-time passwords keep going to the old one.

Request

Available on
SandboxProduction

Path parameters

Header parameters

Request body

*
application/json
{}
objectobject · 9 fields

Responses

200OK

Success

Headers
Body
application/json
{}
UserUser · object · 13 fields
Response example
{  "id": "987654321",  "identity": {    "type": "CONSUMER",    "id": "123456789"  },  "name": "Alex",  "surname": "Smith",  "email": "[email protected]",  "mobile": {    "countryCode": "+44",    "number": "7700900123"  },  "active": true,  "dateOfBirth": {    "year": 1990,    "month": 1,    "day": 1  },  "tag": "customer-123",  "countryOfResidence": "GB",  "locale": "en-GB",  "brand": "Acme",  "roles": [    "CARD_ASSIGNEE"  ]}