AddToPipelineGroup - Add a pipeline to a pipeline group

Updated at:

Adds a pipeline to a pipeline group by calling an OpenAPI operation.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

  • Get the endpoint: Replace {domain} in the request syntax.

  • Get a personal access token.

  • Obtain the organizationId: Required only for the Central edition. Go to the Basic Information page of the Organization Management console to get the organization ID.

Product

Resource

Required permission

Pipeline

Pipeline group

Read and write

Request syntax

Central edition

POST https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelineGroups/join

Region edition

POST https://{domain}/oapi/v1/flow/pipelineGroups/join

Request headers

Parameter

Type

Required

Description

Example value

x-yunxiao-token

string

Yes

Your personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Location

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

5ebbc0228123212b59xxxxx

pipelineIds

string

query

Yes

The pipeline IDs. Separate multiple IDs with commas. You can obtain pipeline IDs by calling the ListPipelines operation.

111,222

groupId

integer

query

Yes

The pipeline group ID. Set this parameter to 0 to ungroup the pipelines.

111

Request examples

Central edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelineGroups/join?pipelineIds=111,222&groupId=111' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/flow/pipelineGroups/join?pipelineIds=111,222&groupId=111' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

boolean

Indicates whether the operation was successful.

true

Response example

true

Error codes

For more information, see the API Error Center.