UpdatePipelineBaseInfo - Update pipeline basic information
Updates the basic information of a pipeline, such as its name, environment, and tags.
|
Applicable editions |
Central edition, Region edition |
Service endpoint and authorization information
-
Obtain the service endpoint to replace the {domain} parameter in the API request syntax.
-
Obtain the organization ID: Required only for Central edition. Go to the Organization Management console and open the Basic Information page to find your organization ID.
|
Product |
Resource |
Required permission |
|
Pipeline |
Pipeline |
Read and write |
Request syntax
Central edition
PUT https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/savePipelineBaseInfo
Region edition
PUT https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/savePipelineBaseInfo
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 |
|
Your organization ID. |
5ebbc0228123212b59xxxxx |
|
pipelineId |
string |
path |
Yes |
Pipeline ID |
123 |
|
pipelineName |
string |
query |
Yes |
Your pipeline name. |
Pipeline Name |
|
envId |
integer |
query |
No |
The environment ID. Valid values: 0 (daily), 1 (staging), and 2 (production). |
0 |
|
tagList |
string |
query |
No |
Tag IDs, separated by commas. |
11,222,33 |
Request examples
Central edition
curl -X 'PUT' \
'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/savePipelineBaseInfo?pipelineName=Pipeline%20Name&envId=0&tagList=11,222,33' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Region edition
curl -X 'PUT' \
'https://{domain}/oapi/v1/flow/pipelines/123/savePipelineBaseInfo?pipelineName=Pipeline%20Name&envId=0&tagList=11,222,33' \
-H 'Content-Type: application/json' \
-H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'
Response parameters
|
Parameter |
Type |
Description |
Example value |
|
- |
boolean |
Whether the operation succeeded. |
true |
Response example
true
Error codes
For more information, see the error code center.