Endpoint URL: {identityDomain} /config/{appId} /flows/{flow} /translations
Description
Updates existing translations. This endpoint does not delete data. See the video demo in Postman here.
Respects the API Client Allow List: No
API Client Permissions
The following table indicates the API clients that can (and the API clients that can't) be used to call this endpoint:
owner | access_issuer | direct_access | direct_read_access | login_client |
Yes | No | Yes | No | No |
Authentication
This endpoint supports Basic authentication.
How to Create an Authentication String
Base URL
The base URL for this endpoint is your Configuration API domain followed by /config/ followed by your application ID. For example, if you are in the US region and your application ID is htb8fuhxnf8e38jrzub3c7pfrr, then your base URL would be:
https://v1.api.us.janrain.com/config/htb8fuhxnf8e38jrzub3c7pfrr
Allowed regions are:
- us
- eu
- au
- sa
- cn
- sg
Request Example (application/json)
[
{
"key": "a8670648-f9f7-4c0b-92cd-e477fe67b617",
"values": {
"en-US": "See ya!"
}
}
]
Request Example (text/csv)
a8670648-f9f7-4c0b-92cd-e477fe67b617,See ya!
Sample Request (curl)
This command updates the values assigned to the documentation flow translation key afeba216c561f421e6e19e6cfed3acd8.
curl -X PATCH \ https://v1.api.us.janrain.com/config/htb8fuhxnf8e38jrzub3c7pfrr/flows/documentation/translations \ -H 'Authorization: Basic
c2dueXZ1czZwYzRqbTdraHIybmVxNWdzODlnYnIyZXE6d3Q0YzN1bjl3a2tjZnZ5a25xeDQ0eW5jNDc2YWZzNjg=' \ -H 'Content-Type: application/json' \ -d '[ { "key": "afeba216c561f421e6e19e6cfed3acd8", "values": { "it-IT": "Nome utente o password errati. Per favore riprova.", "en-US": "Incorrect username or password. Please try again.", "fr-FR": "Identifiant ou mot de passe incorrect. Veuillez réessayer." } } ]'
Running this command in Postman
Responses
204 No Content
Successfully updated the translations.
404 Not Found
Flow could not be found. Please check the value and try again.
Response Example (application/json)
{
"errors": "Flow not found."
}