Enable or disable an immediate email workflow
Workspace comes from the Schedule API key. schedule:read lists and reads definitions; schedule:write changes state using an expected revision. Enabling requires an active verified Schedule Email sender, a current owner member, and link attachments hosted by that owner. Only immediate confirmed, rescheduled and cancelled email actions can execute; timed, team, SMS and AI definitions remain drafts. Reads return up to 100 workflows.
Workspace comes from the Schedule API key. schedule:read lists and reads definitions; schedule:write changes state using an expected revision. Enabling requires an active verified Schedule Email sender, a current owner member, and link attachments hosted by that owner. Only immediate confirmed, rescheduled and cancelled email actions can execute; timed, team, SMS and AI definitions remain drafts. Reads return up to 100 workflows.
AuthorizationBearer <Relevate API key>Relevate API key scoped to the operation's product and environment.
id*stringlength <= 200application/json- body
expectedRevision*integer1 <= valuestate*string"enabled""disabled"Workflow configuration
application/json- response
api_version*stringdata*curl -X PUT 'https://api.relevate.app/schedule/workflows/string/state' \
-H 'Content-Type: application/json' \
-d '{
"expectedRevision": 1,
"state": "enabled"
}'{
"api_version": "string",
"data": {
"definition": {},
"id": "string",
"name": "string",
"ownerUserId": "string",
"revision": 1,
"state": "draft"
}
}