-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update user alias endpoint documentation #4751
Changes from 2 commits
a9929fe
d55680c
c0789e2
19882e6
b2a5658
3e2bbb7
e574102
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
nav_title: "POST: Update User Alias" | ||
article_title: "POST: Update User Alias" | ||
search_tag: Endpoint | ||
page_order: 4 | ||
layout: api_page | ||
page_type: reference | ||
description: "This article outlines details about the Update User Aliases Braze endpoint." | ||
|
||
--- | ||
{% api %} | ||
# Update user alias | ||
{% apimethod post %} | ||
/users/alias/update | ||
{% endapimethod %} | ||
|
||
Use this endpoint to update existing user aliases. | ||
|
||
{% alert note %} | ||
You can update up to 50 user aliases per request. | ||
{% endalert %} | ||
|
||
Updating a user alias requires `alias_label`, `old_alias_name`, and `new_alias_name` to be included in the upda te user alias object. If there is no user alias associated with the `alias_label` and `old_alias_name`, no alias will be updated. If the given `alias_label` and `old_alias_name` is found, then the `old_alias_name` will be updated to the `new_alias_name`. | ||
|
||
## Rate limit | ||
|
||
{% multi_lang_include rate_limits.md endpoint='users alias update' %} | ||
|
||
## Request body | ||
|
||
``` | ||
Content-Type: application/json | ||
Authorization: Bearer YOUR-REST-API-KEY | ||
``` | ||
|
||
```json | ||
{ | ||
"alias_updates" : (required, array of update user alias object) | ||
} | ||
``` | ||
|
||
### Request parameters | ||
|
||
| Parameter | Required | Data Type | Description | | ||
| --------- | ---------| --------- | ----------- | | ||
| `alias_updates` | Required | Array of update user alias objects | See [user alias object]({{site.baseurl}}/api/objects_filters/user_alias_object/).<br><br> For more information on `old_alias_name`, `new_alias_name`, and `alias_label`, refer to [User aliases]({{site.baseurl}}/user_guide/data_and_analytics/user_data_collection/user_profile_lifecycle/#user-aliases).| | ||
{: .reset-td-br-1 .reset-td-br-2 .reset-td-br-3 .reset-td-br-4} | ||
|
||
### Endpoint request body with update user alias object specification | ||
|
||
```json | ||
{ | ||
"alias_label" : (required, string), | ||
"old_alias_name" : (required, string), | ||
"new_alias_name" : (required, string) | ||
} | ||
``` | ||
|
||
## Example request | ||
``` | ||
curl --location --request POST 'https://rest.iad-01.braze.com/users/alias/update' \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'Authorization: Bearer YOUR-API-KEY-HERE' \ | ||
--data-raw '{ | ||
"alias_updates" :[ | ||
{ | ||
"alias_label": "example_alias_label", | ||
"old_alias_name" : "example_old_alias_name", | ||
"new_alias_name" : "example_new_alias_name" | ||
} | ||
] | ||
}' | ||
``` | ||
|
||
{% endapi %} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,11 @@ For customers who onboarded with Braze on or after September 16, 2021, we apply | |
{% elsif include.endpoint == "users alias new" %} | ||
For customers who onboarded with Braze on or after September 16, 2021, we apply a shared rate limit of 20,000 requests per minute to this endpoint. This rate limit is shared with the `/users/delete`, `/users/identify`, and `/users/merge` endpoints, as documented in [API rate limits]({{site.baseurl}}/api/api_limits/). | ||
|
||
<!---/users/alias/update--> | ||
|
||
{% elsif include.endpoint == "users alias update" %} | ||
For customers who onboarded with Braze on or after September 16, 2021, we apply a shared rate limit of 20,000 requests per minute to this endpoint. This rate limit is shared with the `/users/delete`, `/users/identify`, and `/users/merge` endpoints, as documented in [API rate limits]({{site.baseurl}}/api/api_limits/). | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to update all of these to include all of the endpoints, so in this section we need to add There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That makes sense, will update these to match. Not sure what's the best way to render a list and exclude the current endpoint in markdown. Maybe in the future we should just put a link that points to a list of endpoints that have 20000 rate limit? |
||
<!---/users/identify--> | ||
|
||
{% elsif include.endpoint == "users identify" %} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like these URLs all changed at some point (they used to live under
/docs/developer_guide/rest_api/user_data/
). It appears that there are redirects in place from the old URLs to these new ones, but maybe we should go into platform and update the URLs there? At least we should check to make sure the new one we just added will get redirected properly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea from the look of it I think the links in braze-doc are correct. We should update the URLs in platform. I can make a card for it if that sounds okay to you. Currently the links point to the page that lists all the users data endpoints so it's kinda okay I think?