Automations

Update an Automation

Changed on

Den schedules Automations and keeps durable run history. A Desktop Automation runs on any of the owner's connected desktops (one pinned to a workspace, on a desktop that has it); a Cloud Automation runs in OpenWork Cloud. If no desktop runner is connected when a desktop occurrence is due, that occurrence is recorded as missed. Creation makes an Automation active immediately and uses the owner's current OpenWork Connect integrations. Deactivation stops future runs but does not cancel a run already in progress. Every behavior-changing edit creates an immutable revision and applies it to future runs immediately. Set executionTarget to move the Automation between the owner's desktops and OpenWork Cloud; agents may move it to the cloud only.

patch/v1/automations/{id}

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

id, string required

Request body

object required
maximumRuntimeMs, integer

Maximum Cloud agent run time in milliseconds, from 10 seconds to 60 minutes. Requires automationHourRuntime. Omitting it preserves the saved limit.

name, string
instructions, string
schedule, union
model, object
action, union
executionTarget, 'desktop' | 'cloud'
workspaceId, string nullable

Response

Automation updated.

AutomationDetail required
automation, Automation required
revision, AutomationRevision required
latestRun, AutomationRun nullable required

Changes

    • breaking

      added subschema #6 to the revision/schedule response property oneOf list for the response status

    • info

      added subschema #6 to the schedule request property oneOf list

    • info

      added the new optional request property maximumRuntimeMs