Tags
Was this helpful?
Was this helpful?
Get Tag Count
Comma-separated tag IDs to filter by
Comma-separated tag names to filter by
GET /api/tags/count HTTP/1.1
Host:
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1
}
Get a Tag by its ID.
ID value. Only alphanumeric, underscore, and hyphen are allowed.
^[a-zA-Z0-9_-]+$
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"
}
}
Get all tags
Comma-separated tag IDs to filter by
Comma-separated tag names to filter by
10
0
Field to sort by
Sort order for the selected field
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
ID value. Only alphanumeric, underscore, and hyphen are allowed.
^[a-zA-Z0-9_-]+$
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"
}
}
Update a Tag by its ID
ID value. Only alphanumeric, underscore, and hyphen are allowed.
^[a-zA-Z0-9_-]+$
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
}
}