Workflows and apps
Update workflow config
Wire credentials, const values, and trigger schedules. Send only the fields you are changing.
PATCH
https://cloud.generalinput.com/v1/workflows/:id/configAuthenticationRequires
workflows:manage on a personal API key. A CLI session always passes.A partial patch. Omitted keys are untouched. Find credential ids in the vault and trigger ids in the workflow's workflow.json.
Body
| Field | Type | Notes |
|---|---|---|
credentials | object | Service slug to credential id, or null to clear the slot. |
variables | object | Const key to value. Values keep their JSON type. |
triggers | object | Trigger id to a patch of schedule, timezone, selectedCredentialId, and inputValues. |
{
"credentials": { "slack": "cred_01HX…", "gmail": null },
"variables": { "days": 7 },
"triggers": {
"daily": { "schedule": "0 9 * * 1-5", "timezone": "America/New_York" }
}
}Response
{
"ok": true,
"applied": ["credentials.slack", "variables.days", "triggers.daily.schedule"]
}A rejected patch answers 200 with { "ok": false, "errors": [...] }, each error naming the binding that failed (an unknown slot, a credential of the wrong service, an invalid cron expression).