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.

PUT
/schedule/workflows/{id}/state

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.

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Path Parameters

id*string
Lengthlength <= 200

Request Body

application/json
  1. body
expectedRevision*integer
Range1 <= value
state*string
Value in"enabled""disabled"

Response Body

Workflow configuration

application/json
  1. response
api_version*string
data*
Example Request
curl -X PUT 'https://api.relevate.app/schedule/workflows/string/state' \
  -H 'Content-Type: application/json' \
  -d '{
  "expectedRevision": 1,
  "state": "enabled"
}'
Example Response
{
  "api_version": "string",
  "data": {
    "definition": {},
    "id": "string",
    "name": "string",
    "ownerUserId": "string",
    "revision": 1,
    "state": "draft"
  }
}