External ID Remove

post

/users/external_ids/remove

Use this endpoint to remove your users’ old deprecated external IDs. This endpoint completely removes the deprecated ID and cannot be undone.

You can send up to 50 external IDs per request.

You will need to create a new API key with permissions for this endpoint.

Request Body

1
2
Content-Type: application/json
Authorization: Bearer YOUR_REST_API_KEY
1
2
3
{
  "external_ids" : (required, array of external IDs to remove)
}

Request Example

1
2
3
4
5
6
7
8
9
10
curl --location --request POST 'https://rest.iad-01.braze.com/users/external_ids/remove' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_REST_API_KEY' \
--data-raw '{
  "external_ids" : 
    [
      "your_existing_deprecated_external_id_string",
      ...
    ]
}'

Response Body

The response will confirm all successful removals, as well as unsuccessful removals with the associated errors. Error messages in the removal_errors field will reference the index in the array of the original request.

1
2
3
4
5
6
7
{

  "message" : (string) status message,
  "removed_ids" : (array of successful Remove Operations),
  "removal_errors": (array of any <minor error message>)

}

The message field will return success for any valid request. More specific errors are captured in the removal_errors array. The message field returns an error in the case of:

  • Invalid API key
  • Empty external_ids array
  • external_ids array with more than 50 items
  • Rate limit hit (>1,000 requests/minute)
WAS THIS PAGE HELPFUL?
New Stuff!