update_action
Modify an existing per-map post template by changing its name, emoji, fields, duration, or border color; supply the required version number and optionally auto-publish the revision.
Instructions
Update an existing per-map action (post template). You should always update the newest/latest version of an action. Use get_action_versions to find the latest version number first if needed. NOTE: the three global quick post templates (Note / Photo / Question) are read-only system fixtures and cannot be updated through this API; trying to update them returns 403/404. To prevent quick templates from showing on a particular map, use update_map and set areQuickActionsDisabled: true instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"actionId": "<actionId>",
"version": "<version>",
"fields": "<fields>"
},
"name": "update_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New name of the action/post template (1-50 characters) | |
| emoji | No | New emoji that represents this action. Use the get_emoji_shortnames tool to find available emoji codes. | |
| fields | Yes | Define the structure and fields for posts created with this action. Only 3 fields can be featured. Only 2 fields can be featured if there is a featured media field. Featured fields should be placed at the first positions on field list | |
| version | Yes | Version number to update (should be the latest version). Get this from get_action_versions if needed. | |
| actionId | Yes | ID of the action to update | |
| duration | No | How long posts created with this action remain active | |
| autoPublish | No | Whether to automatically publish the updated version (default: false) | |
| borderColor | No | New hex color for the action border (7 characters, e.g., '#FF5733') |