Docs: Tool reference
audit toolset

undo_action

Undo an action. Reverses one action, given any of its audit events (list_audit_events marks undoable ones): post edits, status changes, owners, ETAs, tags, moves, merges, deletes, moderation, bulk updates (all posts at once), customer votes and company links. If anything changed since, it refuses and says what. Emails already sent stay sent. You undo your own actions; managers and owners undo anyone's.

Toolset
audit
Who can call it
OwnersManagersContributorsAPI keys
REST
POST /api/v1/w/{workspace}/audit-events/{event}/undo
Behavior
changes data

Input

FieldTypeDescription
eventrequiredstringAn audit event of the action to undo.

Output

FieldTypeDescription
undone_event_idrequiredstringID with prefix "aud_"
capability_idrequiredstring
events_undonerequiredinteger
admin_urlrequiredstring (uri)

Calling it

// MCP: tools/call
{ "name": "undo_action", "arguments": {"event":"<string>"} }

// Typed client
await carechannel.undo_action({"event":"<string>"});