Phrases
Create or update phrases
Upserts one phrase or an array of phrases. Emits phrase.created for rows that did not exist and phrase.updated for rows that did — one event per row, not per request. Requires the phrases:write scope. Send Idempotency-Key to make retries safe for 24 hours.
post/api/v1/phrases
Request
- Base URL: https://api.multilocale.com
- URL: https://api.multilocale.com/api/v1/phrases
- Auth: one of:
- HTTP basic
- API key in header Authorization
- OAuth 2 (authorization code, authorization URL https://app.multilocale.com/oauth/authorize, token URL https://api.authrice.com/api/oauth/token, scopes: phrases:write)
Headers
Idempotency-Keystring
Unique retry key retained for 24 hours (maximum 255 characters)
Request body
Example request
{
"key": "welcome_message",
"value": "Welcome",
"language": "en"
}Response
The upserted phrase, or the array of upserted phrases
Example response
{
"key": "welcome_message",
"value": "Welcome",
"language": "en"
}Changes
No recorded changes to this operation across all 1 revision of this API.