---
title: "Update User"
method: PATCH
path: "/api/v1/users/:userReference/attached-profile"
tags: ["Users"]
---

# Update User

`PATCH /api/v1/users/:userReference/attached-profile`

## Request

- Base URL: `https://merchant-api.accruesavings.com`
- URL: `https://merchant-api.accruesavings.com/api/v1/users/:userReference/attached-profile`
- Auth: none declared. Required headers: `Client-ID`, `Authorization`
- TypeScript: <https://skmtc.dev/byaccrue/apis/accrue-merchant-api/docs/api/v1/users/:userReference/attached-profile/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `userReference` string, required: `User ID` or `Attached User Profile Reference ID`

## Headers

- `Client-ID` string, uuid, required: The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
- `Authorization` string, uuid, required: Secure secret to access privileged endpoints.

## Request body

- AttachedProfile: AttachedProfile patch object
  - `id` string, uuid, required: Unique identifier for the object.
  - `type` 'AttachedProfile', required
  - `attributes` object, required
    - `referenceId` string: Deprecated. Use stableReferenceId instead. Legacy merchant-scoped user identifier. Immutable once set.
    - `stableReferenceId` string: Stable merchant-scoped user identifier. Required for all new integrations; immutable once set. Cannot be changed after initial assignment. Optional in the API only while legacy merchants transition from referenceId.
    - `email` string
    - `phoneNumber` string

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `409`: Conflict
- `500`: Internal Server Error

---

[API](https://skmtc.dev/byaccrue/apis/accrue-merchant-api.md) - [All operations](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/llms.txt) - [OpenAPI document](https://skmtc.dev/byaccrue/apis/accrue-merchant-api/revisions/3e2d97ef2e6e?raw)
