Skip to main content
PATCH
/
v1
/
communications
/
templates
/
{id}
Updates a communications template
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>",
          "sms_content": "<string>",
          "email_subject": "<string>",
          "email_body": "<string>",
          "slack_content": "<string>"
        }
      ]
    }
  }
}
'
{
  "data": {
    "id": "41d0e04a-ef2c-4026-bfab-6383bad79aa0",
    "type": "communications_templates",
    "attributes": {
      "name": "Updated Template Name",
      "slug": "vyk29",
      "description": "Updated description",
      "position": 1,
      "created_at": "2026-01-28T05:25:26.611-08:00",
      "updated_at": "2026-01-28T05:25:29.338-08:00",
      "communication_type_id": "788330b5-06d0-4f6d-a2e5-f2f339574552",
      "communication_type": {
        "data": {
          "id": "788330b5-06d0-4f6d-a2e5-f2f339574552",
          "type": "communications_types",
          "attributes": {
            "name": "kf9p4",
            "slug": "kf9p4",
            "description": "Nihil fugit et non.",
            "color": "#D7F5E1",
            "position": 1,
            "created_at": "2026-01-28T05:25:26.598-08:00",
            "updated_at": "2026-01-28T05:25:26.598-08:00",
            "communication_groups": [],
            "communication_templates": [
              {
                "id": "41d0e04a-ef2c-4026-bfab-6383bad79aa0",
                "name": "Updated Template Name"
              },
              {
                "id": "3f7ebd4b-6d88-48aa-9d8c-1a5c6848e97a",
                "name": "6gcmh"
              },
              {
                "id": "8f73202b-2920-4f89-ab8c-8f548ac3fa74",
                "name": "o8o43"
              },
              {
                "id": "d1ff8e56-a293-43cf-bf35-0806266b7378",
                "name": "14qc0"
              },
              {
                "id": "536de5b3-c8d8-48b8-b853-aacdb7abe329",
                "name": "o8f88"
              },
              {
                "id": "e0779885-843b-495d-a88a-4a1baa840940",
                "name": "p4f7q"
              },
              {
                "id": "e21c81bd-ba44-48d9-9f14-f7921a0e9dde",
                "name": "g3sj6"
              },
              {
                "id": "4729272a-28f3-4839-8d0f-d12da7b94922",
                "name": "76kz8"
              },
              {
                "id": "c987c3f5-544d-46d9-96ba-54643c006ba6",
                "name": "ga64s"
              },
              {
                "id": "b9890623-e073-40a5-8ac5-005a3f5cfbb5",
                "name": "bq700"
              }
            ]
          }
        }
      },
      "communication_template_stages": [
        {
          "data": {
            "id": "a7093c17-46ad-4e09-a861-cc0256abd656",
            "type": "communications_template_stages",
            "attributes": {
              "email_body": "Quas dolore aspernatur eligendi.",
              "email_subject": "k1v0ikh5jg",
              "slack_content": "Possimus quidem modi soluta.",
              "sms_content": "Minima quidem et similique.",
              "created_at": "2026-01-28T05:25:26.625-08:00",
              "updated_at": "2026-01-28T05:25:26.625-08:00",
              "communication_stage": {
                "id": "9ae15646-93ef-49af-9d90-a911fe53e5f7",
                "name": "w2pxm"
              },
              "communication_template": {
                "id": "41d0e04a-ef2c-4026-bfab-6383bad79aa0",
                "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
data
object
required

Response

communications template updated

data
object
required