Skip to main content
POST
/
tags
Create a new tag
curl --request POST \
  --url https://api.cloudglue.dev/v1/tags \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "value": "<string>",
  "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "segment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "label": "<string>",
  "value": "<string>",
  "type": "file",
  "file_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "segment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Tag creation parameters

label
string
required

The label of the tag

value
string
required

The value of the tag

file_id
string<uuid>
required

The ID of the file

segment_id
string<uuid>

The ID of the segment

Response

Tag created successfully

id
string<uuid>
required

The ID of the tag

label
string
required

The label of the tag

value
string
required

The value of the tag

type
enum<string>
required

The type of the tag

Available options:
file,
segment
file_id
string<uuid>
required

The ID of the file

segment_id
string<uuid>

The ID of the segment