v1

latestOpenAPI 3.1.02026-07-261620662.2 KB

Editar modelos

O método permite editar modelos em lote.

patch/api/v4/chats/templates

Request body

Response

200

_total_itemsinteger

Example response

{
  "_total_items": 1,
  "_embedded": {
    "chat_templates": [
      {
        "id": 7351,
        "account_id": 29420107,
        "name": "Promoção",
        "content": "Você está interessado em mochilas escolares?",
        "created_at": 1640362536,
        "updated_at": 1640363257,
        "buttons": [
          {
            "type": "inline",
            "text": "Sim"
          }
        ],
        "attachment": {
          "id": "c2b77f70-d0d6-484a-8f6e-583f70a08cce",
          "name": "Imagem de mochilas escolares",
          "type": "picture"
        },
        "is_editable": true,
        "external_id": "my_external_id_for_hello",
        "type": "amocrm",
        "_links": {
          "self": {
            "href": "https://example.kommo.com/api/v4/chats/templates/7351"
          }
        }
      }
    ]
  }
}