CreateFlowTagGroup - Create Tag Group

Updated at:

Creates a tag group for organizing pipeline tags.

Applicable editions

Central edition, Region edition

Endpoint and authorization information

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

Product

Resource

Required permission

Pipeline

Tag

Read and write

Request syntax

Central edition

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

Region edition

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

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

name

string

query

Yes

The name of the tag group.

Tag Group Name

Request examples

Central edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/tagGroups?name=Tag%20Group%20Name' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'POST' \
  'https://{domain}/oapi/v1/flow/tagGroups?name=Tag%20Group%20Name' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example value

-

integer

The ID of the tag group.

1223

Response example

1223

Error codes

See Error codes.