Edit an agent automation

update_agent_automation

Changes the name, instruction or schedule of one agent automation, once the person has agreed to the preview.

Scopeconfig:writeMakes changes

Only the person who set the automation up can change it, because its reports go to them. Only the fields you send change. Sending schedule replaces the whole schedule, including its Timezone, so a schedule sent without one moves the automation to UTC. A new schedule recomputes the next run, and runs cannot be closer together than 5 minutes. A run already going keeps the old instruction. See Agents.

Call it first with confirm set to false, which returns the automation as it would be and changes nothing. Show that to the person, and call again with confirm set to true only after they agree. It is refused while the site is locked, and when Modulify switched the automation off.

Inputs

Input Type Required Description
projectId string Yes The site id.
automationId string Yes The automation id from list_agent_automations.
name string No A new name, up to 64 characters. It cannot be empty.
instruction string No A new instruction, up to 2,000 characters. It replaces the old one completely and cannot be empty.
schedule object No A new schedule, in the same shape as for create_agent_automation.
confirm boolean No false by default, which returns the preview. true saves the changes.