跳到主要内容
版本:v0.6

Update a workflow of a project.

Update a workflow.

Update a workflow of a project.

Path Parameters
    project string required
    workflow string required
Request Body required
    description string
    labels object
    property name* string
    parallelism integer
    stages object[]
  • Array [
  • dependencies string[]
    description string
    labels object
    property name* string
    name string required
    steps object[]
  • Array [
  • attributes object
    property name* object
    dependencies string[]
    description string
    inputs object
    property name* object
    labels object
    property name* string
    name string required
    outputs object
    property name* object
    retryStrategy object
    backoff object required
    duration string
    maxDuration string
    limit integer required
    retryPolicy string required
    timeout integer
    type string required
    workflowID string required
  • ]
  • ]
  • timeout integer
    variables object[]
  • Array [
  • description string
    name string required
    overwrite boolean required
    value string required
  • ]
Responses

Accepted


Schema
    message string
    status integer

    Default value: 202

    statusText string

    Default value: Accepted

PUT /v1/projects/:project/workflows/:workflow

Authorization

name: BasicAuthtype: httpdescription: Basic Authentication, in form of base64(<username>:<password>), the password must be a valid Seal API token.in: headerscheme: basic

Request

Security Scheme
Username
Password
project — path required
workflow — path required
Body required
{
"description": "string",
"labels": {},
"parallelism": 0,
"stages": [
{
"dependencies": [
"string"
],
"description": "string",
"labels": {},
"name": "string",
"steps": [
{
"attributes": {},
"dependencies": [
"string"
],
"description": "string",
"inputs": {},
"labels": {},
"name": "string",
"outputs": {},
"retryStrategy": {
"backoff": {
"duration": "string",
"maxDuration": "string"
},
"limit": 0,
"retryPolicy": "string"
},
"timeout": 0,
"type": "string",
"workflowID": "string"
}
]
}
],
"timeout": 0,
"variables": [
{
"description": "string",
"name": "string",
"overwrite": true,
"value": "string"
}
]
}
curl / cURL
curl -L -X PUT 'https://seal-io.github.io/v1/projects/:project/workflows/:workflow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"description": "string",
"labels": {},
"parallelism": 0,
"stages": [
{
"dependencies": [
"string"
],
"description": "string",
"labels": {},
"name": "string",
"steps": [
{
"attributes": {},
"dependencies": [
"string"
],
"description": "string",
"inputs": {},
"labels": {},
"name": "string",
"outputs": {},
"retryStrategy": {
"backoff": {
"duration": "string",
"maxDuration": "string"
},
"limit": 0,
"retryPolicy": "string"
},
"timeout": 0,
"type": "string",
"workflowID": "string"
}
]
}
],
"timeout": 0,
"variables": [
{
"description": "string",
"name": "string",
"overwrite": true,
"value": "string"
}
]
}'