Update the user
How to update an existing user via API
Request
Arguments
Body Parameter
Type
Required
Example
curl -g -X PATCH \
'https://provisioning.commercelayer.io/api/user' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer {{your_access_token}}' \
-H 'Content-Type: application/vnd.api+json' \
-d '{
"data": {
"type": "users",
"attributes": {
"reference": "ANY-EXTERNAL-REFEFERNCE"
}
}
}'{
"data": {
"id": "xYZkjABcde",
"type": "users",
"attributes": {
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"time_zone": "UTC",
"otp_required_for_login": false,
"created_at": "2018-01-01T12:00:00.000Z",
"updated_at": "2018-01-01T12:00:00.000Z",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
}
}
}Last updated