Change a macro, including whether it still fires by itself
Change a macro's name, description, actions, enabled flag or trigger.
/v1/macros/{macro_id}Editor- Operation id
- patch_macro
- Access
- A viewer is refused.
/v1/macros/{macro_id}Change a macro's name, description, actions, enabled flag or trigger.
Sending "trigger": null removes the trigger and returns the macro to
manual-only; omitting the key leaves the trigger unchanged. A disabled macro
never fires by trigger and cannot be applied by hand.
Tenancy: the request is scoped to one workspace, and the credential presented is what selects it. A caller with no membership in that workspace is refused with 404, which is indistinguishable from a workspace that does not exist.
Authorisation: editor, admin or owner. A viewer receives 403 insufficient_role.
Access: Authorization: Bearer carrying either a realm access token or an API key. A key must hold the helpdesk-ops:write scope, and the workspace role of the person who owns it must meet the floor above.
A realm-issued access token, presented as Authorization: Bearer <token>. It acts as the person who signed in, and every operation resolves their workspace role live from the membership record.
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/macros/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{}'{}