Skip to content
Home » Local API V2 – Tag Interface

Local API V2 – Tag Interface

List Tags

Endpoint

GET /openapi/v2/tags

Returns a list of Tags.

Query Parameters

NameTypeRequiredDescription
requeststringYesParameters for listing Tags.

Response Parameters

data.list contains the list of Tags:

NameTypeDescription
idstringTag ID.
namestringTag name.
stylestringTag color: grayredorangeyellowgreentealbluepurple, or pink.

Create a Tag

Endpoint

POST /openapi/v2/tags

Creates a Tag.

Request Parameters

NameTypeRequiredDescription
namestringNoTag name.
stylestringNoTag color: grayredorangeyellowgreentealbluepurple, or pink.

Request Example

{
  "name": "automation",
  "style": "blue"
}

Add a Tag to Profiles

Endpoint

POST /openapi/v2/tags/{tagId}/profiles

Adds the specified Tag to one or more Profiles.

Path Parameters

NameTypeRequiredDescription
tagIdstringYesTag ID.

Request Parameters

NameTypeRequiredDescription
profile_idsstring[]NoList of Profile IDs.

Request Example

{
  "profile_ids": ["1876881021063852034"]
}

Remove a Tag from Profiles

Endpoint

DELETE /openapi/v2/tags/{tagId}/profiles

Removes the specified Tag from one or more Profiles.

Path Parameters

NameTypeRequiredDescription
tagIdstringYesTag ID.

Request Parameters

NameTypeRequiredDescription
profile_idsstring[]NoList of Profile IDs.

Update a Tag

Endpoint

PATCH /openapi/v2/tags/{tagId}

Updates a Tag’s name or color.

Path Parameters

NameTypeRequiredDescription
tagIdstringYesTag ID.

Request Parameters

NameTypeRequiredDescription
namestringNoTag name.
stylestringNoTag color: grayredorangeyellowgreentealbluepurple, or pink.

Delete a Tag

Endpoint

DELETE /openapi/v2/tags/{tagId}

Deletes a Tag.

Path Parameters

NameTypeRequiredDescription
tagIdstringYesTag ID.