跳转到主要内容
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"
}
'

授权

Authorization
string
header
必填

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

路径参数

baseId
string
必填
workflowId
string
必填

请求体

application/json
method
enum<string>
必填

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

响应

200

Successful updated

Last modified on December 10, 2025