PUT
/
customers
/
self
curl --request PUT \
  --url https://api.fabric.inc/v3/customers/self \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": {
    "title": "Dr.",
    "firstName": "Pat",
    "middleName": "E",
    "lastName": "Kake",
    "suffix": "Jr."
  },
  "emailAddress": "test@example.com",
  "phone": {
    "number": 15555551234,
    "type": "MOBILE"
  },
  "additionalAttributes": {
    "middleName": "user"
  }
}'
{
  "id": "61df41892bf06d00092d0d8a",
  "name": {
    "title": "Dr.",
    "firstName": "Pat",
    "middleName": "E",
    "lastName": "Doe",
    "suffix": "Jr."
  },
  "status": "ACTIVE",
  "emailAddress": "test@example.com",
  "phone": {
    "number": 15555551234,
    "type": "MOBILE"
  },
  "externalId": "1231012312-312-31231asda",
  "additionalAttributes": {
    "middleName": "user"
  },
  "isDeleted": false,
  "deletedAt": "2023-08-30T23:20:42.822Z",
  "createdAt": "2023-08-30T23:20:42.822Z",
  "updatedAt": "2023-08-30T23:20:42.822Z",
  "defaultAddress": [
    {
      "id": "61604a30fdfacd0009816e44",
      "address": {
        "addressLine1": "123 Main St.",
        "addressLine2": "Suite 100",
        "addressLine3": "Seventh floor",
        "addressLine4": "Attention: Pat E. Doe",
        "city": "Seattle",
        "region": "WA",
        "postalCode": 98121,
        "county": "King County",
        "country": "US",
        "type": "BILLING",
        "latitude": 47.6205,
        "longitude": -122.3493
      },
      "additionalAttributes": {
        "landmark": "Beach"
      },
      "isDeleted": false,
      "isDefault": false,
      "deletedAt": "2023-08-30T23:20:42.822Z",
      "createdAt": "2023-08-30T23:20:42.822Z",
      "updatedAt": "2023-08-30T23:20:42.822Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token.

Headers

x-fabric-tenant-id
string

A header used by fabric to identify the tenant making the request. You must include tenant id in the authentication header for an API request to access any of fabric’s endpoints. You can retrieve the tenant id , which is also called account id, from Copilot. This header is required.

Example:

"517fa9dfd42d8b00g1o3k312"

x-fabric-request-id
string

Unique request ID

Body

application/json
A sample request to update customer's details.

The body is of type object.

Response

200
application/json
OK

The response is of type object.