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": "df6ee1ad-a87a-4176-b0ab-a4a2b1002695",
    "type": "communications_templates",
    "attributes": {
      "name": "Updated Template Name",
      "slug": "bd5s0",
      "description": "Updated description",
      "position": 1,
      "created_at": "2026-01-07T21:13:21.924-08:00",
      "updated_at": "2026-01-07T21:13:23.816-08:00",
      "communication_type_id": "9ed1fd65-980f-4c94-bdab-d286dabda7d5",
      "communication_type": {
        "data": {
          "id": "9ed1fd65-980f-4c94-bdab-d286dabda7d5",
          "type": "communications_types",
          "attributes": {
            "name": "el45i",
            "slug": "el45i",
            "description": "Rerum fugit consectetur doloribus.",
            "color": "#F5D9C4",
            "position": 1,
            "created_at": "2026-01-07T21:13:21.879-08:00",
            "updated_at": "2026-01-07T21:13:21.879-08:00",
            "communication_groups": [],
            "communication_templates": [
              {
                "id": "df6ee1ad-a87a-4176-b0ab-a4a2b1002695",
                "name": "Updated Template Name"
              },
              {
                "id": "59a239ba-941e-4368-9a82-367832fd756f",
                "name": "jaux2"
              },
              {
                "id": "bf7378ca-6795-4768-ab9d-ef947a3839d4",
                "name": "084jy"
              },
              {
                "id": "8b6e2547-0c18-43b3-b1ce-ab9dfecc381d",
                "name": "mfv68"
              },
              {
                "id": "b22a3384-77ce-4b89-818e-1b4272d53059",
                "name": "15m0n"
              },
              {
                "id": "aef02b5b-5876-417a-8a8e-2907b70659a6",
                "name": "vdv6i"
              },
              {
                "id": "135acd9e-9c88-4444-b528-a7459e957a8a",
                "name": "7db6q"
              },
              {
                "id": "f2a1b2bf-a9c8-4f10-851e-f8b9ef154623",
                "name": "z2diy"
              },
              {
                "id": "00e87cdc-fcd3-4fc9-a510-c3e84c0c77ed",
                "name": "3xbzp"
              },
              {
                "id": "2923d6e5-e2ac-4407-8f6b-35a081ee4e30",
                "name": "btajt"
              }
            ]
          }
        }
      },
      "communication_template_stages": [
        {
          "data": {
            "id": "6744327f-c8c7-4c24-9f99-16032f2d3dca",
            "type": "communications-template_stages",
            "attributes": {
              "email_body": "Repellat corrupti sapiente modi.",
              "email_subject": "sbm6fp9ozy",
              "slack_content": "Cumque non rerum a.",
              "sms_content": "Sed placeat et voluptatem.",
              "created_at": "2026-01-07T21:13:21.934-08:00",
              "updated_at": "2026-01-07T21:13:21.934-08:00",
              "communication_stage": {
                "id": "4cff72e5-9a3f-42fe-a23b-3d08f9624d3b",
                "name": "ug4kx"
              },
              "communication_template": {
                "id": "df6ee1ad-a87a-4176-b0ab-a4a2b1002695",
                "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