UpdateFlowTag - Update a tag

Updated at:

Updates an existing pipeline tag.

Applicable editions

Central edition, Region edition

Endpoints and authorization information

  • Obtain an endpoint: Replace {domain} in the API request syntax.
  • Obtain a personal access token.
  • Obtain the organization ID: Required only for the Central edition. Go to the Basic Information page in the Organization Management console to obtain the organization ID.

Product

Resource

Required permission

Pipeline

Tag

Read and write

Request syntax

Central edition

PUT https://{domain}/oapi/v1/flow/organizations/{organizationId}/tags/{id}

Region edition

PUT https://{domain}/oapi/v1/flow/tags/{id}

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

The personal access token.

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

Request parameters

Parameter

Type

Position

Required

Description

Example

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The organization ID.

5ebbc0228123212b59xxxxx

id

integer

path

Yes

The tag ID.

111

name

string

query

Yes

The tag name.

Tag name

color

string

query

Yes

The tag color. Valid values: #1F9AEF (blue), #E63A3A (red), #FA8C15 (yellow), #15AD31 (green), #7978E5 (purple), and #8C8C8C (gray).

#1F9AEF

flowTagGroupId

integer

query

Yes

The tag group ID.

11

Request examples

Central edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/tags/111?name=Updated Tag Name&color=#1F9AEF&flowTagGroupId=11' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'PUT' \
  'https://{domain}/oapi/v1/flow/tags/111?name=Updated Tag Name&color=#1F9AEF&flowTagGroupId=11' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

boolean

Whether the request was successful.

true

Response example

true

Error codes

For more information, see the Error Code Center.