Chat icon

Chat

Interact with the Chat API

Actions253

Macro → Update

AI-generated

Summary

Update a macro for a selected account with new JSON payload.

Inputs

  • accountId (required) — Select the account to use.
  • macroId (required) — Macro ID.
  • payload (required) — Request body JSON as expected by the API.

Output shape

the updated macro object

Returns the updated macro on success; errors return an error envelope.

Examples

Example 1: Update macro title and body for account 123

accountId: 123, macroId: 5, payload: {"title":"New Title","body":"Updated content"}

Example 2: Replace payload of macro 2 in default account

accountId: (default), macroId: 2, payload: {"content":"New JSON"}

Example 3: Force update of macro 7 using custom JSON

accountId: 987, macroId: 7, payload: {"fields":{"key":"value"}}

Links

Discussion