Workflows

Update workflow by id

put/v1/workflows/:id

Request

  • Base URL: https://api.dayschedule.com/v1
  • URL: https://api.dayschedule.com/v1/v1/workflows/:id
  • Auth: none declared

Path parameters

idnumber required

Request body

workflow_idnumber nullable
account_idnumber nullable
user_idnumber nullable
namestring required
is_enabledboolean nullable
is_team_workflowboolean nullable
created_atstring nullable
updated_atstring nullable

Example request

{
  "workflow_id": 1,
  "account_id": 2,
  "user_id": 3,
  "name": "Workflow Name",
  "resources": {
    "all": true,
    "selected": [
      1,
      2
    ]
  },
  "trigger": {
    "value": 10,
    "type": "hours"
  },
  "actions": [
    {
      "type": "email",
      "to": [
        "user@example.com"
      ],
      "cc": [
        "cc@example.com"
      ],
      "url": "https://api.example.com/webhook",
      "template": {
        "key": "value"
      }
    }
  ],
  "is_enabled": true,
  "is_team_workflow": true,
  "updated_at": "1970-01-01T00:00:00.000Z"
}

Response

OK

workflow_idnumber nullable
account_idnumber nullable
user_idnumber nullable
namestring required
is_enabledboolean nullable
is_team_workflowboolean nullable
created_atstring nullable
updated_atstring nullable

Example response

{
  "workflow_id": 1,
  "account_id": 2,
  "user_id": 3,
  "name": "Workflow Name",
  "resources": {
    "all": true,
    "selected": [
      1,
      2
    ]
  },
  "trigger": {
    "value": 10,
    "type": "hours"
  },
  "actions": [
    {
      "type": "email",
      "to": [
        "user@example.com"
      ],
      "cc": [
        "cc@example.com"
      ],
      "url": "https://api.example.com/webhook",
      "template": {
        "key": "value"
      }
    }
  ],
  "is_enabled": true,
  "is_team_workflow": true,
  "updated_at": "1970-01-01T00:00:00.000Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.