PATCH
/
v1
/
communications
/
templates
/
{id}
curl --request PATCH \
  --url https://api.rootly.com/v1/communications/templates/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "communications-templates",
    "attributes": {
      "name": "<string>",
      "description": "<string>",
      "communication_type_id": "<string>",
      "position": 123,
      "communication_template_stages_attributes": [
        {
          "id": "<string>",
          "communication_stage_id": "<string>",
          "sms_content": "<string>",
          "email_subject": "<string>",
          "email_body": "<string>",
          "slack_content": "<string>"
        }
      ]
    }
  }
}'
{
  "data": {
    "id": "23dc202f-ac12-4be9-8858-f4d72b705911",
    "type": "communications-templates",
    "attributes": {
      "name": "Updated Template Name",
      "slug": "bt422",
      "description": "Updated description",
      "position": 1,
      "communication_type_id": "de2ce8f5-8060-4470-8f1e-8e372d706875",
      "created_at": "2025-06-18T17:29:27.269-07:00",
      "updated_at": "2025-06-18T17:29:30.215-07:00",
      "communication_type": {
        "data": {
          "id": "de2ce8f5-8060-4470-8f1e-8e372d706875",
          "type": "communications_types",
          "attributes": {
            "name": "76g5q",
            "slug": "76g5q",
            "description": "A in distinctio et.",
            "color": "#D7F5E1",
            "position": 1,
            "created_at": "2025-06-18T17:29:27.259-07:00",
            "updated_at": "2025-06-18T17:29:27.259-07:00",
            "communication_groups": [],
            "communication_templates": [
              {
                "id": "23dc202f-ac12-4be9-8858-f4d72b705911",
                "name": "Updated Template Name"
              },
              {
                "id": "e1da7d9f-cde8-424e-ab5f-bec994c863ed",
                "name": "t0fhw"
              },
              {
                "id": "8456b92a-0e3c-4683-9e30-6c88c6120c55",
                "name": "ap6u2"
              },
              {
                "id": "f84ea958-4968-4e99-ab05-3fb431173922",
                "name": "7t79i"
              },
              {
                "id": "5b6d069e-1418-4b4a-9be0-7ba0cbf08f98",
                "name": "7fjuy"
              },
              {
                "id": "dd96b088-75cd-4246-9b0f-b27052ac5b62",
                "name": "evgvr"
              },
              {
                "id": "1b8a28a4-bc84-49bc-811b-dbb9534649c2",
                "name": "c8emq"
              },
              {
                "id": "c50c3c0c-8789-4578-8f36-11e2f98a8ddd",
                "name": "koz8z"
              },
              {
                "id": "5bc1da1d-b849-40ca-81d7-e0858d0c6e8d",
                "name": "qgvaq"
              },
              {
                "id": "af8fa449-20bd-4d9a-8a1f-31859650fc1e",
                "name": "5c7av"
              }
            ]
          }
        }
      },
      "communication_template_stages": [
        {
          "data": {
            "id": "8b907815-99b2-4891-b529-ab171aeb925c",
            "type": "communications-template_stages",
            "attributes": {
              "email_body": "Qui veniam ipsa ut.",
              "email_subject": "e4nzx274qg",
              "slack_content": "Ipsa ea voluptates quam.",
              "sms_content": "Iure et culpa sit.",
              "created_at": "2025-06-18T17:29:27.279-07:00",
              "updated_at": "2025-06-18T17:29:27.279-07:00",
              "communication_stage": {
                "id": "88a91b79-85a3-43c2-bf7a-1c866f428e77",
                "name": "r8ukk"
              },
              "communication_template": {
                "id": "23dc202f-ac12-4be9-8858-f4d72b705911",
                "name": "Updated Template Name"
              }
            }
          }
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Communications Template ID

Body

application/vnd.api+json

Response

200
application/vnd.api+json

communications template updated

The response is of type object.