跳转到主要内容
PUT
/
base
/
{baseId}
/
workflow
/
{workflowId}
/
active
cURL
curl --request PUT \
  --url http://127.0.0.1:3000/api/base/{baseId}/workflow/{workflowId}/active \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "method": "activate"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

baseId
string
required
workflowId
string
required

Body

application/json
method
enum<string>
required

Method to update the workflow, activate: activate the workflow and apply any draft if exist, deactivate: deactivate the workflow, abort: abort the draft back to the last active workflow.

可用选项:
activate,
deactivate,
discard

Response

200

Successful updated