Automations

Update a translation of an automation message

Changed on

Update the contents of a language variant of an automation action, including the body of the messages and HTTP requests.

NOTE: You can't manage content made with Design Studio with this endpoint. Use the Design Studio APIs instead.

put/v1/campaigns/{campaign_id}/actions/{action_id}/language/{language}

Request

  • Base URL
    https://api.customer.io
  • URL
    https://api.customer.io/v1/campaigns/{campaign_id}/actions/{action_id}/language/{language}
  • Auth
    HTTP bearer

Request body

OR
OR
OR

Example request

{
  "id": 96,
  "broadcast_id": 2,
  "deduplicate_id": "15:1492548073",
  "name": "Opening Message",
  "created": 1552341937,
  "updated": 1552341937,
  "language": "fr",
  "from": "sentFrom@example.com",
  "from_id": 1,
  "reply_to": "replyto@example.com",
  "reply_to_id": 38,
  "recipient": "{{customer.email}}",
  "subject": "Did you get that thing I sent you?",
  "campaign_id": 5,
  "parent_action_id": 1
}

Response

Returns the updated automation action.

Example response

{
  "action": {
    "id": 96,
    "broadcast_id": 2,
    "deduplicate_id": "15:1492548073",
    "name": "Opening Message",
    "created": 1552341937,
    "updated": 1552341937,
    "language": "fr",
    "from": "sentFrom@example.com",
    "from_id": 1,
    "reply_to": "replyto@example.com",
    "reply_to_id": 38,
    "recipient": "{{customer.email}}",
    "subject": "Did you get that thing I sent you?",
    "campaign_id": 5,
    "parent_action_id": 1,
    "multi_language_branch_action_id": 23,
    "headers": "[{\"name\":\"X-Mailgun-Tag\",\"value\":\"my-cool-tag\"},{\"name\":\"X-Custom-Header\",\"value\":\"custom-value\"}]"
  }
}

Changes

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property //// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the media type application/json for the response with the status