CreateFlowTag - Create a tag

Updated at:

Creates a pipeline tag.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

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

Product

Resource

Required permission

Pipeline

Tag

Read and write

Request syntax

Central edition

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

Region edition

POST https://{domain}/oapi/v1/flow/tags

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

Location

Required

Description

Example

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

The ID of the organization.

5ebbc0228123212b59xxxxx

name

string

query

Yes

The name of the tag.

Tag Name

color

string

query

Yes

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

#1F9AEF

flowTagGroupId

integer

query

Yes

The ID of the tag group.

11

Request examples

Central edition

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

Region edition

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

Response parameters

Parameter

Type

Description

Example

-

integer

The ID of the tag.

111

Response example

111

Error codes

For API-related error codes, see Error Code Center.