Change a template block

Change a block's fields; only those sent change. A rename answers 409 while any step still cites the old name.

PATCHhttps://app.trygtm.com/api/v1/blocks/{block}
Scope
write
MCP tool
update_block

Path parameters

blockstringrequired
The block, by id or exact name (case-insensitive).

Headers

Idempotency-Keystringoptional
A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.

Body

namestringoptional
The block's name. Steps cite it as [[name]], so keep it readable.
modestringoptional
ai: the drafter writes this part per recipient from the prompt. static: the same text for everyone.aistatic
promptstringoptional
For an ai block, what to write. May reference the listed source fields.
bodystringoptional
For a static block, the exact words.
source_refsstring[]optional
The typed fields an ai block's prompt may draw on. The drafter refuses any other.Account: NameAccount: DomainAccount: NotesRecipient: First NameRecipient: TitleRecipient: Notes

Request

curl -X PATCH https://app.trygtm.com/api/v1/blocks/%E2%80%A6 \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Q4 logistics leaders",
    "body": "Tuesday at 10 works. I'll send an invite."
  }'

Response

{
  "data": {
    "detail": "Block “Milestone opener” saved.",
    "block": {
      "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d"
    }
  }
}

Was this page helpful?