Tags
Get all tags
Authorizations
Query parameters
idFilterany ofOptional
Comma-separated tag IDs to filter by
notOptional
string[]Optional
nameFilterany ofOptional
Comma-separated tag names to filter by
notOptional
string[]Optional
takeany ofOptionalDefault:
10
notOptional
numberOptional
skipany ofOptionalDefault:
0
notOptional
numberOptional
sortFieldstring · enumOptionalPossible values:
Field to sort by
sortOrderstring · enumOptionalPossible values:
Sort order for the selected field
Responses
200
Successful response
application/json
default
Error response
application/json
get
GET /api/tags HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"tags": [
{
"id": "text",
"name": "text",
"description": "text",
"createdAt": "text",
"updatedAt": "text"
}
]
}
Create Tag
Authorizations
Body
idstringOptionalPattern:
ID value. Only alphanumeric, underscore, and hyphen are allowed.
^[a-zA-Z0-9_-]+$
namestringRequired
descriptionstringOptional
Responses
200
Successful response
application/json
default
Error response
application/json
post
POST /api/tags HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"id": "text",
"name": "text",
"description": "text"
}
{
"createdTag": {
"id": "text",
"name": "text",
"description": "text",
"createdAt": "text",
"updatedAt": "text"
}
}
Get Tag Count
Authorizations
Query parameters
idFilterany ofOptional
Comma-separated tag IDs to filter by
notOptional
string[]Optional
nameFilterany ofOptional
Comma-separated tag names to filter by
notOptional
string[]Optional
Responses
200
Successful response
application/json
default
Error response
application/json
get
GET /api/tags/count HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1
}
Get a Tag by its ID.
Authorizations
Path parameters
idstringRequiredPattern:
ID value. Only alphanumeric, underscore, and hyphen are allowed.
^[a-zA-Z0-9_-]+$
Responses
200
Successful response
application/json
default
Error response
application/json
get
GET /api/tags/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"tag": {
"id": "text",
"name": "text",
"description": "text",
"createdAt": "text",
"updatedAt": "text"
}
}
Update a Tag by its ID
Authorizations
Path parameters
idstringRequiredPattern:
ID value. Only alphanumeric, underscore, and hyphen are allowed.
^[a-zA-Z0-9_-]+$
Body
Responses
200
Successful response
application/json
default
Error response
application/json
put
PUT /api/tags/{id} HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 112
{
"data": {
"id": "text",
"name": "text",
"description": "text",
"addGameObjects": [
"text"
],
"removeGameObjects": [
"text"
]
}
}
{
"updatedTag": {
"id": "text",
"createdAt": "text",
"updatedAt": "text",
"name": "text",
"description": "text",
"gameObjectCount": 1
}
}
Was this helpful?