--- title: "Update Identifiers" slug: "update-identifiers-api" description: "Insider One's Update Identifiers API reference: PATCH endpoint to change a user's email, phone, UUID, or custom identifier, 2,000 requests per minute." tags: ["update identifiers api", "update user identifiers", "change user identifiers", "change identifier value", "user api"] updated: 2026-09-11T08:50:49Z published: 2026-09-11T08:50:49Z canonical: "academy.insiderone.com/update-identifiers-api" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # Update Identifiers The Update Identifiers API, also known as changing a customer's email or phone number on file without losing their history, is a PATCH endpoint for updating an identifier already associated with a user profile. Use it when a user changes their email address, phone number, UUID, or custom identifier in your system; the endpoint updates the value in Insider One without creating a duplicate profile or losing any associated behavioral data or attributes. **Example:** A user updates their email from sample@insiderone.com to sample1@insiderone.com. This endpoint updates the identifier on their existing Insider profile, preserving all associated behavioral data and attributes. > [!NOTE] > Prerequisites: > > Identifiers must be configured in your [Identity Resolution Management (IRM) Settings](/v1/docs/identity-resolution-management-settings) before they can be used in this endpoint. If an identifier type is not enabled in IRM Settings, requests using that identifier will return a 400 error. > [!NOTE] > Read [How Identifiers Work in Insider One](/v1/docs/how-identifiers-work-in-insider-one) before your API call, which explains identifiers vs. attributes and prevents most identity-related errors. ## Endpoint and Headers > **PATCH** https://unification.useinsider.com/api/user/v1/identity [](https://developers.insiderone.com/#43eaeac1-1a9b-4a9c-aedf-5c8b56c90050) | Header | Sample Value | Description | | --- | --- | --- | | X-PARTNER-NAME | mybrand | This is your partner name. It should be in lowercase. Navigate to **Inone Settings** > [**Account Settings**](https://academy.insiderone.com/docs/inone-account-settings) to copy your partner name. | | X-REQUEST-TOKEN | 1a2b3c4e5d6f | This key is required to authorize your request. Refer to [API Authentication Tokens](https://academy.insiderone.com/docs/api-authentication-tokens#generate-api-key) to generate your token. | | Content-Type | application/json | This header specifies the media type of the resource. | ## Body Parameters Each PATCH request must have an identifier type, old value, and new value specified in it. You can use either one of the default identifiers, which are **uuid**, **email**, and **phone_number**, or any of the custom identifiers you use. | Parameter | Description | Data Type | Required | | --- | --- | --- | --- | | old_identifier | The user's current identifier value. Must contain exactly one identifier field. | Object | Yes | | new_identifier | The replacement identifier value. Must contain exactly one identifier field of the same type as **old_identifier**. | Object | Yes | | custom | User’s custom identifier information | Object | No | | email | User's email address | String | No | | phone_number | User's phone number in **E.164 format** (e.g. +6598765432) | String | No | | uuid | User's unique user identifier | String | No | > [!NOTE] > Same-type rule: > > The identifier field in **old_identifier** and **new_identifier** must be of the same type. For example, you cannot update an email identifier with a phone number value. Requests with mismatched types will return a 400 error. ## Sample Requests ### Update a default identifier This request updates a user's email address from the old value to a new one. ```bash curl --location --request PATCH 'https://unification.useinsider.com/api/user/v1/identity' \ --header 'X-PARTNER-NAME: mybrand' \ --header 'X-REQUEST-TOKEN: 1a2b3c4e5d6f' \ --header 'Content-Type: application/json' \ --data-raw '{    "old_identifier": {        "email": "sample@insiderone.com"    },    "new_identifier": {        "email": "sample1@insiderone.com"    } }' ``` ### Update a custom identifier Custom identifiers must be nested inside the **custom** object in both **old_identifier** and **new_identifier**. ```bash curl --location --request PATCH 'https://unification.useinsider.com/api/user/v1/identity' \ --header 'X-PARTNER-NAME: mybrand' \ --header 'X-REQUEST-TOKEN: 1a2b3c4e5d6f' \ --header 'Content-Type: application/json' \ --data-raw '{    "old_identifier": {        "custom": {            "user_loyalty_id": "xyz123"        }    },    "new_identifier": {        "custom": {            "user_loyalty_id": "xyz456"        }    } }' ``` ## Sample Responses #### 200 OK A successful update returns an empty object. The identifier is updated on the user's profile immediately. The user's existing behavioral data and attributes are preserved. ```json {} ``` #### 400 Bad Request Returned when the **old_identifier** and **new_identifier** contain the same value. The new value must be different from the current value. ```json {  "error": "identifier values are the same: bad request" } ``` #### 400 Bad Request Returned when either **old_identifier** or **new_identifier** is missing from the request body. Both fields are required and must each contain exactly one identifier. ```json {  "error": "there must be exactly 1 entry for both new and old identifiers: bad request" } ``` #### 400 Bad Request Returned when the **new_identifier** value is already associated with a different user in your account. Identifier values must be unique across all profiles. To resolve this, remove the identifier from the existing user using the [Delete Identifiers API](/v1/docs/api-reference-delete-identifiers), then retry this request. ```json {  "error": "new identifier already has a user assigned to it: bad request" } ``` #### 400 Bad Request Returned when the identifier type in the request is not enabled in your [Identity Resolution Management Settings](/v1/docs/identity-resolution-management-settings). To resolve this, verify that the identifier type you are using is enabled in IRM Settings for your panel. For example, if **phone_number** is not configured as an identifier for your panel, requests using it will return this error. ```json {  "error": "no valid identifier: bad request" } ``` #### 429 Too Many Requests Returned when the request rate exceeds 2,000 requests per minute. Wait before retrying. To request a higher limit, contact the Insider One team via the Help Center or refer to [API Rate Limits](/v1/docs/api-rate-limits). ```json {    "error": "rejected: too many requests" } ``` ## Error reference Use this table to identify and resolve the errors this endpoint returns. Each row shows the status code, the response body you receive, what causes it, and how to fix it. | Status | JSON response | Cause | Fix | | --- | --- | --- | --- | | **400 Bad Request** | {"error": "identifier values are the same: bad request"} | **old_identifier** and **new_identifier** contain the same value. | Send a new value that differs from the current one. If the values are already equal, no update is needed. | | **400 Bad Request** | {"error": "there must be exactly 1 entry for both new and old identifiers: bad request"} | **old_identifier** or **new_identifier** is missing, empty, or contains more than one identifier. | Send both fields, each containing exactly one identifier. To change several identifiers, send one request per identifier. | | **400 Bad Request** | {"error": "new identifier already has a user assigned to it: bad request"} | The **new_identifier** value is already assigned to a different profile. Identifier values must be unique across all profiles. | Remove the identifier from the existing profile with the [Delete Identifiers API](/v1/docs/api-reference-delete-identifiers), then retry this request. | | **400 Bad Request** | {"error": "no valid identifier: bad request"} | The identifier value failed validation, for example, a malformed email address or a phone number that is not in E.164 format. | Send a well-formed value; phone numbers must be in E.164 format. | | **429 Too Many Requests** | {"error": "rejected: too many requests"} | You exceeded the rate limit of 2,000 requests per minute. | Wait, then retry with exponential backoff. To request a higher limit, contact the Insider One team. | ## Limitations - All requests must use HTTPS PATCH. - The **X-REQUEST-TOKEN** header must contain a valid token. An invalid or missing token returns a **403 error**. - The **X-PARTNER-NAME** header value must be **lowercase**. - A single request updates **exactly one** user. Batch updates are not supported. - The **old_identifier** and **new_identifier** fields must use the same identifier type. - Identifier values must be unique across all user profiles in your account. - The entire request body must not exceed **5 MB**. - The rate limit is **2,000 requests per minute**. This limit is specific to this endpoint and is separate from the shared rate limit used by the User Upsert and Delete User Attribute APIs. > The default limit shown here is a standard baseline. If your use case requires higher capacity, feel free to reach out to the Insider One team. We can adjust it to fit your needs. ## Related - [API Authentication Tokens](/api-authentication-tokens.md) - [API Rate Limits](/api-rate-limits.md) - [API Status and Error Codes](/api-status-and-error-codes.md) - [Insider One APIs in Postman](/insider-apis-in-postman.md)