curl --request PATCH \
--url https://{customerDomain}.fabric.zone/api-commerceIdentity/auth/password \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-site-context: <x-site-context>' \
--data '{
"userId": "6169b2d892a5f30009d76480",
"resetToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxZjIyMTU4...",
"newPassword": "ABC123"
}'
{
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"expiryDate": "2020-04-15T10:08:04.246Z",
"roles": "customer",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": [
{
"number": "555-123-4567",
"countryCode": "+91",
"extenstion": "x-6789",
"kind": "Mobile"
}
],
"email": "test@mail.com",
"extra": {},
"registrationSite": "XXX",
"account": "xxxxxcxxxxxxxxxxxxxx",
"userId": "6169b2d892a5f30009d76480",
"address": [
{
"attention": "Account Manager",
"address1": "1234 Main St.",
"address2": "Suite 710",
"address3": "Floor 7",
"city": "Houston",
"state": "TX",
"country": "USA",
"zipCode": 77035,
"company": "Acme Inc.",
"kind": "Business",
"phone": {
"number": "555-123-4567",
"kind": "Mobile"
},
"name": {
"first": "Pat",
"last": "Kake"
},
"email": "test@mail.com",
"isValidated": true,
"isDefault": true
}
],
"provider": [
{
"id": "6228f647a257734d91dbb49f",
"name": "LOCAL",
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"lastLoginDate": "2020-04-15T10:08:04.246Z"
}
],
"createdAt": "2020-04-15T10:08:04.246Z",
"updatedAt": "2020-04-15T10:08:04.246Z"
}
Update user password
Note: This endpoint is called internally by the “change password” endpoint
curl --request PATCH \
--url https://{customerDomain}.fabric.zone/api-commerceIdentity/auth/password \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-site-context: <x-site-context>' \
--data '{
"userId": "6169b2d892a5f30009d76480",
"resetToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYxZjIyMTU4...",
"newPassword": "ABC123"
}'
{
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"expiryDate": "2020-04-15T10:08:04.246Z",
"roles": "customer",
"name": {
"first": "Pat",
"middle": "E",
"last": "Kake"
},
"phone": [
{
"number": "555-123-4567",
"countryCode": "+91",
"extenstion": "x-6789",
"kind": "Mobile"
}
],
"email": "test@mail.com",
"extra": {},
"registrationSite": "XXX",
"account": "xxxxxcxxxxxxxxxxxxxx",
"userId": "6169b2d892a5f30009d76480",
"address": [
{
"attention": "Account Manager",
"address1": "1234 Main St.",
"address2": "Suite 710",
"address3": "Floor 7",
"city": "Houston",
"state": "TX",
"country": "USA",
"zipCode": 77035,
"company": "Acme Inc.",
"kind": "Business",
"phone": {
"number": "555-123-4567",
"kind": "Mobile"
},
"name": {
"first": "Pat",
"last": "Kake"
},
"email": "test@mail.com",
"isValidated": true,
"isDefault": true
}
],
"provider": [
{
"id": "6228f647a257734d91dbb49f",
"name": "LOCAL",
"isActive": true,
"registrationDate": "2020-04-15T10:08:04.246Z",
"lastLoginDate": "2020-04-15T10:08:04.246Z"
}
],
"createdAt": "2020-04-15T10:08:04.246Z",
"updatedAt": "2020-04-15T10:08:04.246Z"
}
The x-site-context
header is a JSON object that contains information about the source you wish to pull from. The mandatory account
is the 24 character identifier found in Copilot. The channel
(Sales channel ID), stage
(environment name), and date
attributes can be used to further narrow the scope of your data source.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
OK
User User details
Was this page helpful?