Skip to main content
POST
/
v1
/
{workspace}
/
preference_category
/
translation
/
content
/
{locale}
Add Translation
curl -X POST "https://management-api.suprsend.com/v1/{workspace}/preference_category/translation/content/{locale}/" \
  --header "Authorization: ServiceToken {token}" \
  --header "Content-Type: application/json" \
  --data '{
    "sections": {
      "account-updates": {
        "name": "Actualizaciones de Cuenta",
        "description": "Notificaciones importantes relacionadas con la cuenta"
      }
    },
    "categories": {
      "password-reset": {
        "name": "Restablecimiento de Contraseña",
        "description": "Notificaciones cuando se restablece la contraseña"
      }
    }
  }'
{
  "sections": {
    "new-5": {
      "name": null,
      "description": null
    },
    "nik-section-for-transactional": {
      "name": null,
      "description": null
    }
  },
  "categories": {
    "nik-sub-category": {
      "name": null,
      "description": null
    },
    "amount-refunded": {
      "name": null,
      "description": null
    }
  }
}

Authorizations

ServiceToken <token>
string
header
required

You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.

Path Parameters

workspace
string
required

Workspace slug (staging, production, etc.)

locale
string
required

Locale code (e.g., es, fr, de, ja)

Body

application/json
sections
object

Translations for sections, keyed by section slug

categories
object

Translations for categories, keyed by category slug

Response

Successfully added or updated translation

sections
object

Translations for sections, keyed by section slug

categories
object

Translations for categories, keyed by category slug