Translation

Translations.batch_create_or_update

Creates or updates Translation records in one request: an item with an id updates that record, an item without one creates a new record.

post/entities/Translations/batch-modify

Request

Query parameters

validation-levelinteger

Bit mask that relaxes validation on this write. 0 (the default) validates everything. Bits: 2 skip unchanged fields, 4 skip admin-defined validations, 8 allow read-only fields, 16 skip relation checks, 32 skip value checks, 64 skip invalid recalculations, 128 skip step-checklist gates, 256 add conditional field requirements, 512 skip uniqueness checks. Add bits together (20 = 4 + 16); member names and comma lists such as 4,16 work too. A value with an internal-only bit is refused with HTTP 400, code 117.

rollback-method0 | 1

0, the default: one failed item fails the whole batch (HTTP 422, or 404 for an unknown id) and nothing is written. 1: the valid items are written and the call answers 200 with success false and one result per item, an id or an error, in input order. Check every item.

Request body

account_type_idstring uuid

Id of the account type whose form this translation applies to. Set only when label_type is FormField or FormDescription.

appointment_type_idstring uuid

Id of the appointment type whose form this translation applies to. Set only when label_type is FormField or FormDescription.

contact_type_idstring uuid

Id of the contact type whose form this translation applies to. Set only when label_type is FormField or FormDescription.

data_idstring uuid

Id of the translated data option.

de_destring

Translated text in German.

en_usstring

Translated text in US English.

es_esstring

Translated text in Spanish.

field_idstring uuid

Id of the translated field.

form_type0 | 1

Form of the record type the translation applies to: the edit form, or the lost form of a lead or opportunity type. Required when label_type is FormField or FormDescription.

Integer enum value: 0 - Edit, 1 - Lost

label_type0 | 1 | 2 | 3

Kind of text the row translates: a field name (Field), a dropdown or radio option (Data), or the label or description of a field on the form of one record type (FormField, FormDescription).

Integer enum value: 0 - Field, 1 - Data, 2 - FormField, 3 - FormDescription

lead_type_idstring uuid

Id of the lead type whose form this translation applies to. Set only when label_type is FormField or FormDescription.

oppty_product_relation_type_idstring uuid

Id of the opportunity product relation type.

oppty_type_idstring uuid

Id of the opportunity type.

product_type_idstring uuid

Id of the product type whose form this translation applies to. Set only when label_type is FormField or FormDescription.

project_type_idstring uuid

Id of the project type whose form this translation applies to. Set only when label_type is FormField or FormDescription.

pt_brstring

Translated text in Brazilian Portuguese.

task_type_idstring uuid

Id of the task type whose form this translation applies to. Set only when label_type is FormField or FormDescription.

revisioninteger

Revision when entity was lastly changed.

idstring uuid

ID of object to update.

Example request

[
  {
    "account_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "appointment_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "contact_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "data_id": "01234567-abcd-dcba-ffff-000000000000",
    "de_de": "string",
    "en_us": "string",
    "es_es": "string",
    "field_id": "01234567-abcd-dcba-ffff-000000000000",
    "lead_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "oppty_product_relation_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "oppty_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "product_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "project_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "pt_br": "string",
    "task_type_id": "01234567-abcd-dcba-ffff-000000000000",
    "revision": 1
  }
]

Response

Result per item, in request order: the id of the created or updated record, or the error.

successboolean

True when the request succeeded; false on error.

Example response

{
  "success": true,
  "data": [
    {
      "http_status": 400,
      "code": 117,
      "name": "ERROR_PARAMETER_INVALID"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.