Skip to content
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

Leftover deploy - May 2, 2024 #7299

Merged
merged 54 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
36b8ee2
Matching iOS documentation line
lowip Apr 4, 2024
7d7c039
BD-3011: Translation API EA
lydia-xie Apr 18, 2024
c6ee785
examples and some minor fixes
lydia-xie Apr 18, 2024
9ccdb01
restructure edits
lydia-xie Apr 24, 2024
e55df56
path parameters for put
lydia-xie Apr 25, 2024
f05c94f
eng feedback
lydia-xie Apr 25, 2024
253e674
fix endpoints
lydia-xie Apr 26, 2024
5c40bfa
BD-2971
lydia-xie Apr 30, 2024
d3a56a3
styling and reorder
lydia-xie Apr 30, 2024
5610233
BD-3048: Fix incorrect link for android pn priority
internetisaiah Apr 30, 2024
47d8ab8
Merge pull request #7282 from braze-inc/BD-3048
lydia-xie Apr 30, 2024
761b933
img resize
lydia-xie Apr 30, 2024
3dc3f79
BD-3014
lydia-xie May 1, 2024
23dd19a
BD-3057 Update link in CDI segments
rachel-feinberg May 1, 2024
6d67abf
Merge pull request #7283 from braze-inc/BD-3014
rachel-feinberg May 1, 2024
10ad252
BD-3061: Update important alert
lydia-xie May 1, 2024
bf94d02
Merge pull request #7284 from braze-inc/bd-3057
lydia-xie May 1, 2024
45b0b1c
Update _docs/_user_guide/engagement_tools/campaigns/managing_campaign…
rachel-feinberg May 1, 2024
43b95a8
Merge pull request #7281 from braze-inc/BD-2971
bre-fitzgerald May 1, 2024
c4135c9
Merge pull request #7285 from braze-inc/lydia-xie-patch-3
rachel-feinberg May 1, 2024
eea3268
Minor edits to Canvas approval
lydia-xie May 1, 2024
ee99846
Merge pull request #7286 from braze-inc/lx/smalledit
internetisaiah May 1, 2024
9db0d54
Fix EA notes
rachel-feinberg May 1, 2024
29a9f94
Apply suggestions from code review
lydia-xie May 1, 2024
51c96c2
Merge pull request #7287 from braze-inc/rf/updatenotes
lydia-xie May 1, 2024
49460bb
BD-3016: Add links for geofences
lydia-xie May 1, 2024
ade150d
Apply suggestions from code review
lydia-xie May 1, 2024
8dd2555
Merge pull request #7288 from braze-inc/BD-3016
internetisaiah May 1, 2024
024726a
BD-3040 Update capture form to sign-up form
rachel-feinberg May 1, 2024
43b26d5
Update screenshot
rachel-feinberg May 1, 2024
26c31ed
Update screenshot
rachel-feinberg May 1, 2024
141e11d
Update with Lizzy's feedback
rachel-feinberg May 1, 2024
cfc7940
Update email capture title
rachel-feinberg May 1, 2024
2a016f1
BD-3039
lydia-xie May 1, 2024
6f558be
Apply suggestions from code review
lydia-xie May 1, 2024
c240879
Apply suggestions from code review
lydia-xie May 1, 2024
d8e4390
Update _docs/_user_guide/message_building_by_channel/in-app_messages/…
rachel-feinberg May 1, 2024
5f875ed
Update _docs/_user_guide/message_building_by_channel/in-app_messages/…
rachel-feinberg May 1, 2024
734258d
Update _docs/_user_guide/message_building_by_channel/in-app_messages/…
rachel-feinberg May 1, 2024
cd51f84
Merge pull request #7289 from braze-inc/bd-3040
rachel-feinberg May 1, 2024
02f845e
Adding missing period at end of sentence
internetisaiah May 1, 2024
75317d8
Merge pull request #7291 from braze-inc/BD-3039
internetisaiah May 1, 2024
d091e5c
eng feedback and adding placeholder icons
lydia-xie May 1, 2024
f79b511
minor edits for language
lydia-xie May 1, 2024
2bf66e6
Merge pull request #7167 from braze-inc/SDK-4637-ios-iam-display-acti…
josh-mccrowell-braze May 2, 2024
261b8c1
BD-3062 Remove beta from Event Streaming in Amplitude Audiences
rachel-feinberg May 2, 2024
08f478c
Merge pull request #7294 from braze-inc/bd-3062
lydia-xie May 2, 2024
a96d6d1
Update _docs/_api/endpoints/translations/put_update_translation_canva…
lydia-xie May 2, 2024
465d826
Merge pull request #7231 from braze-inc/BD-3011
lydia-xie May 2, 2024
a7e1e06
Minor clarification to Email Bounces article
bre-fitzgerald May 2, 2024
f66d9c1
Merge pull request #7296 from braze-inc/bre-fitzgerald-patch-1
lydia-xie May 2, 2024
c546afc
Remove stray tags
jacob-braze May 2, 2024
7062bda
Fix start formatting
josh-mccrowell-braze May 2, 2024
51ad1be
Merge pull request #7297 from braze-inc/notix-stray-tags
josh-mccrowell-braze May 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions _docs/_api/endpoints/translations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
nav_title: Translations
article_title: Translation Endpoints
search_tag: Endpoint
page_order: 9
layout: dev_guide

description: "This landing page lists the Braze translation endpoints."
page_type: landing

guide_top_header: "Translation Endpoints"
guide_top_text: "Use the Braze translation endpoints to manage and update translations in your campaigns and Canvases."

guide_featured_title: ""
guide_featured_list:
- name: "GET: Translate Multiple Campaigns"
link: /docs/api/endpoints/translations/get_bulk_translations_campaigns/
fa_icon: fas fa-list-ul
- name: "GET: Translate Multiple Canvases"
link: /docs/api/endpoints/translations/get_bulk_translations_canvases/
fa_icon: fas fa-list-ul
- name: "GET: Translate A Campaign"
link: /docs/api/endpoints/translations/get_translation_campaign/
fa_icon: fas fa-list-ul
- name: "GET: Translate A Canvas"
link: /docs/api/endpoints/translations/get_translation_canvas/
fa_icon: fas fa-list-ul
- name: "PUT: Update Translation in a Campaign"
link: /docs/api/endpoints/translations/update_translation_campaign/
fa_icon: fas fa-user
- name: "PUT: Update Translation in a Canvas"
link: /docs/api/endpoints/translations/update_translations_canvas/
fa_icon: fas fa-user
---

{% alert important %}
The Braze translation endpoints are currently in early access. Contact your Braze account manager if you're interested in participating in the early access.
{% endalert %}
104 changes: 104 additions & 0 deletions _docs/_api/endpoints/translations/get_bulk_translations_campaigns.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
nav_title: "GET: View Translations for a Campaign"
article_title: "GET: View Translations for a Campaign"
search_tag: Endpoint
page_order: 1

layout: api_page
page_type: reference
description: "This article outlines details about the View translations for a campaign endpoint."
---

{% api %}
# View translations for a campaign
{% apimethod get %}
/campaigns/translations
{% endapimethod %}

> Use this endpoint to view all the translations for each message variant in a campaign.

{% alert important %}
Viewing translations for campaign messages via API is currently in early access. Contact your Braze account manager if you're interested in participating in the early access.
{% endalert %}

## Prerequisites

To use this endpoint, you'll need an [API key]({{site.baseurl}}/api/basics#rest-api-key/) with the `campaigns.translations.get` permission.

## Rate limit

This endpoint has a rate limit of 250,000 requests per hour.

## Path parameters

| Parameter | Required | Data Type | Description |
| --------- | ---------| --------- | ----------- |
|`campaign_id`| Required for translating a campaign | String | The ID of your campaign. |
{: .reset-td-br-1 .reset-td-br-2 .reset-td-br-3 .reset-td-br-4}

## Example request

```
curl --location --request GET 'https://rest.iad-03.braze.com/campaign/translations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'
```

## Response

There are four status code responses for this endpoint: `200`, `400`, `404`, and `429`.

## Example success response

The status code `200` could return the following response header and body.

```json
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
"translations": [
{
"locale": {
"name": "zh-HK",
"country": "Hong Kong",
"language": "Chinese (Traditional)",
},
"translation_map": {
"id_0": "Hello",
"id_1": "My name is Jacky",
"id_2": "Where is the library?"
}
}
]
}
```

## Example error response

The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
"errors": [
{
"message": "This message does not support multi-language."
}
]
}
```

## Troubleshooting

The following table lists possible returned errors and their associated troubleshooting steps.

| Error message | Troubleshooting |
|-----------------------------------------|------------------------------------------------------------------------------------|
| `INVALID_CAMPAIGN_ID` | Confirm the campaign ID matches the campaign you're translating. |
| `INVALID_MESSAGE_VARIATION_ID` | Confirm your message ID is correct. |
| `MESSAGE_NOT_FOUND` | Check that the message to be translated. |
| `MULTI_LANGUAGE_NOT_ENABLED` | Multi-language settings aren't turned on for your workspace. |
| `MULTI_LANGUAGE_NOT_ENABLED_ON_MESSAGE` | Only email campaigns or Canvas messages with emails can be translated. |
| `UNSUPPORTED_CHANNEL` | Only messages in email campaigns or Canvas messages with emails can be translated. |
{: .reset-td-br-1 .reset-td-br-2}

{% endapi %}
105 changes: 105 additions & 0 deletions _docs/_api/endpoints/translations/get_bulk_translations_canvases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
---
nav_title: "GET: View Translations for a Canvas"
article_title: "GET: View Translations for a Canvas"
search_tag: Endpoint
page_order: 1

layout: api_page
page_type: reference
description: "This article outlines details about the List translations for a Canvas endpoint."
---

{% api %}
# List translations for a Canvas
{% apimethod get %}
/canvases/translations
{% endapimethod %}

> Use this endpoint to view all the translations for a Canvas.

{% alert important %}
Viewing translations for a Canvas via API is currently in early access. Contact your Braze account manager if you're interested in participating in the early access.
{% endalert %}

## Prerequisites

To use this endpoint, you'll need an [API key]({{site.baseurl}}/api/basics#rest-api-key/) with the `canvas.translations.get` permission.

## Rate limit

This endpoint has a rate limit of 250,000 requests per hour.

## Path parameters

| Parameter | Required | Data Type | Description |
| --------- | ---------| --------- | ----------- |
|`canvas_id`| Required | String | The ID of your Canvas. |
|`step_id`| Required | String | The ID of your Canvas step. |
{: .reset-td-br-1 .reset-td-br-2 .reset-td-br-3 .reset-td-br-4}

## Example request

```
curl --location --request GET 'https://rest.iad-03.braze.com/canvas/translations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'
```

## Response

There are four status code responses for this endpoint: `200`, `400`, `404`, and `429`.

## Example success response

The status code `200` could return the following response header and body.

```json
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
"translations": [
{
"locale": {
"name": "zh-HK",
"country": "Hong Kong",
"language": "Chinese (Traditional)",
},
"translation_map": {
"id_0": "Hello",
"id_1": "My name is Jacky",
"id_2": "Where is the library?"
}
}
]
}
```

## Example error response

The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
"errors": [
{
"message": "This message does not support multi-language."
}
]
}
```

## Troubleshooting

The following table lists possible returned errors and their associated troubleshooting steps.

| Error message | Troubleshooting |
|-----------------------------------------|------------------------------------------------------------------------------------|
| `INVALID_CAMPAIGN_ID` | Confirm the campaign ID matches the campaign you're translating. |
| `INVALID_MESSAGE_VARIATION_ID` | Confirm your message ID is correct. |
| `MESSAGE_NOT_FOUND` | Check that the message to be translated. |
| `MULTI_LANGUAGE_NOT_ENABLED` | Multi-language settings aren't turned on for your workspace. |
| `MULTI_LANGUAGE_NOT_ENABLED_ON_MESSAGE` | Only email campaigns or Canvas messages with emails can be translated. |
| `UNSUPPORTED_CHANNEL` | Only messages in email campaigns or Canvas messages with emails can be translated. |
{: .reset-td-br-1 .reset-td-br-2}

{% endapi %}
109 changes: 109 additions & 0 deletions _docs/_api/endpoints/translations/get_translation_campaign.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
---
nav_title: "GET: View Translation for a Campaign"
article_title: "GET: View Translation for a Campaign"
search_tag: Endpoint
page_order: 1

layout: api_page
page_type: reference
description: "This article outlines details about the View Translation for a campaign endpoint."
---

{% api %}
# View translation for a campaign
{% apimethod get %}
/campaign/translations/?locale_id={locale_id}
{% endapimethod %}

> Use this endpoint to view a translated campaign message to see what this message looks like for a user.

{% alert important %}
Viewing a translated campaign message via API is currently in early access. Contact your Braze account manager if you're interested in participating in the early access.
{% endalert %}

## Prerequisites

To use this endpoint, you'll need an [API key]({{site.baseurl}}/api/basics#rest-api-key/) with the `campaigns.translations.get` permission.

## Rate limit

This endpoint has a rate limit of 250,000 requests per hour.

## Path parameters

| Parameter | Required | Data Type | Description |
| --------- | ---------| --------- | ----------- |
|`campaign_id`| Required | String | The ID of your campaign. |
|`message_variation_id`| Required | String | The ID for your message variation. |
|`locale_id`| Required | String | The ID of the locale. |
{: .reset-td-br-1 .reset-td-br-2 .reset-td-br-3 .reset-td-br-4}


## Example request

```
curl --location --request GET 'https://rest.iad-03.braze.com/campaign/translations/?locale_id={locale_id}' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR-REST-API-KEY'
```

## Response

There are four status code responses for this endpoint: `200`, `400`, `404`, and `429`.

## Example success response

The status code `200` could return the following response header and body.

```json
Content-Type: application/json
Authorization: Bearer YOUR-REST-API-KEY
{
"translations": [
{
"locale": {
"name": "es-MX",
"country": "Mexico",
"language": "Spanish",
},
"translation_map": {
"id_0": "Hello",
"id_1": "My name is Jacky",
"id_2": "Where is the library?"
}
}
]
}
```

### Example error response

The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
"errors": [
{
"message": "Invalid locale ID"
}
]
}
```

## Troubleshooting

The following table lists possible returned errors and their associated troubleshooting steps.

| Error message | Troubleshooting |
|-----------------------------------------|------------------------------------------------------------------------------------|
| `INVALID_CAMPAIGN_ID` | Confirm the campaign ID matches the campaign you're translating. |
| `INVALID_LOCALE_ID` | Confirm your locale ID exists in your message translation. |
| `INVALID_MESSAGE_VARIATION_ID` | Confirm your message ID is correct. |
| `MESSAGE_NOT_FOUND` | Check that the message to be translated. |
| `LOCALE_NOT_FOUND` | Confirm the locale exists in your multi-language settings. |
| `MULTI_LANGUAGE_NOT_ENABLED` | Multi-language settings aren't turned on for your workspace. |
| `MULTI_LANGUAGE_NOT_ENABLED_ON_MESSAGE` | Only email campaigns or Canvas messages with emails can be translated. |
| `UNSUPPORTED_CHANNEL` | Only messages in email campaigns or Canvas messages with emails can be translated. |
{: .reset-td-br-1 .reset-td-br-2}

{% endapi %}
Loading