---
title: "Update a customer profile subprofile"
method: PATCH
path: "/{customer_profile_id}/subprofiles/{subprofile_id}"
---

# Update a customer profile subprofile

`PATCH /{customer_profile_id}/subprofiles/{subprofile_id}`

## Request

- Base URL: `https://api-sandbox.straitsx.com/v1/customer_profile`
- URL: `https://api-sandbox.straitsx.com/v1/customer_profile/{customer_profile_id}/subprofiles/{subprofile_id}`
- Auth: none required

[Available in Sandbox/Production environment] Update a subprofile.

## Path parameters

- `customer_profile_id` string, required
- `subprofile_id` string, required

## Headers

- `X-XFERS-APP-API-KEY` string, required
- `X-PUBLIC-KEY-ID` string
- `X-TIMESTAMP` string
- `X-NONCE` string
- `X-SIGNATURE` string

## Request body

- object
  - `data` object, required
    - `type` 'subprofile', required: Resource type. Must be `subprofile`.
    - `id` string, required: Subprofile ID to update.
    - `attributes` object, required: Only `tradingName` and `address` fields are updatable. All fields are optional - only provided fields will be updated.
      - `tradingName` string: Updated display name for the subprofile.<br>Regex: `/^\s*.{1,191}\s*$/`
      - `address` object: Updated address. Partial updates supported - only provided fields will be changed.
        - `street` string: Street address.
        - `city` string: City.
        - `state` string: State or province.
        - `postalCode` string: Postal code.
        - `country` string: ISO 3166-1 alpha-2 country code.

## Response `200`

200

- object
  - `data` object
    - `type` string
    - `id` string: Unique subprofile ID.
    - `attributes` object
      - `referenceId` string: Merchant-provided unique reference for this subprofile.
      - `tradingName` string: Display name of the subprofile.
      - `address` object
        - `street` string: Street address.
        - `city` string: City.
        - `state` string: State or province.
        - `postalCode` string: Postal code.
        - `country` string: ISO 3166-1 alpha-2 country code.
      - `status` 'pending' | 'active' | 'disabled': Subprofile status.
      - `createdAt` string: Timestamp when the subprofile was created.
      - `updatedAt` string: Timestamp when the subprofile was last updated.

## Other responses

- `400`: 400 - Validation error
- `404`: 404 - Not found

---

[API](https://skmtc.dev/straitsx/apis/sandbox-customer-profile-api-sandbox-prod.md) - [All operations](https://skmtc.dev/straitsx/apis/sandbox-customer-profile-api-sandbox-prod/llms.txt) - [OpenAPI document](https://skmtc.dev/straitsx/apis/sandbox-customer-profile-api-sandbox-prod/revisions/fba039809316?raw)
