{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Creates a new workflow or updates an existing workflow definition.","properties":{"path":{"type":"object","properties":{"workflow_name":{"type":"string","maxLength":64,"minLength":1,"pattern":"^[a-zA-Z0-9_][a-zA-Z0-9-_]*$"},"account_id":{"type":"string"}},"required":["workflow_name","account_id"],"additionalProperties":false},"body":{"type":"object","properties":{"class_name":{"type":"string","maxLength":255,"minLength":1},"concurrency":{"type":"object","properties":{"limit":{"description":"Maximum number of instances of this workflow that can run concurrently. Additional instances are queued and started as running instances complete. Must not exceed the account concurrency limit.","type":"integer","maximum":9007199254740991,"minimum":1}}},"default_retention":{"description":"Default retention applied to instances of this version when they do not set their own retention.","type":"object","properties":{"error_retention":{"description":"Specifies the duration in milliseconds or as a string like '5 minutes'.","anyOf":[{"description":"Specifies the duration in milliseconds.","type":"integer"},{"pattern":"^(\\d+)\\s+(second|minute|hour|day|week|month|year)s?$","type":"string","examples":["5 minutes"]}]},"success_retention":{"description":"Specifies the duration in milliseconds or as a string like '5 minutes'.","anyOf":[{"description":"Specifies the duration in milliseconds.","type":"integer"},{"pattern":"^(\\d+)\\s+(second|minute|hour|day|week|month|year)s?$","type":"string","examples":["5 minutes"]}]}}},"jurisdiction":{"description":"Jurisdiction where instances of this workflow run and store data. Can only be set when the workflow is created and cannot be changed afterwards; omit it to keep the existing jurisdiction.","type":"string","enum":["eu","fedramp","us"]},"limits":{"type":"object","properties":{"steps":{"type":"integer","maximum":9007199254740991,"minimum":1}}},"schedules":{"type":"array","items":{"properties":{"cron":{"type":"string","maxLength":256,"minLength":1}},"required":["cron"],"type":"object"},"maxItems":200},"script_name":{"type":"string","maxLength":255,"minLength":1}},"required":["script_name","class_name"]}},"required":["path","body"],"additionalProperties":false},"name":"Create/modify Workflow","id":"cloudflare.wor-create-or-modify-workflow","example":{"path":{"workflow_name":"example","account_id":"example"},"body":{"script_name":"example","class_name":"example"}},"maxRequests":1,"summary":false}}