Get a Specific Tag
This endpoint retrieves a specific tag
info
This operation requires authentication only if content_availability
community option is false.
This operation can be done by normal (not administrators) users and it will return only a public visible and active tag and only some public tag details.
If this operation has been done by an administrator user it will show all tag details and not active, not visible or deleted tag also.
HTTP Request
GET /api/v2/tag/{id}/
Parameters
Name | In | Type | Required | Description |
---|---|---|---|---|
id | path | string | true | A unique integer value identifying this tag |
Example Request
- JavaScript
- Bash
const headers = {
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};
fetch('/api/v2/tag/{id}/',
{
method: 'GET',
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
# You can also use wget
curl -X GET /api/v2/tag/{id}/ \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access_token}'
Responses
Status | Meaning | Description | Schema |
---|---|---|---|
200 | OK | Response status code | Tag |
Example responses
- 200 (administrator)
- 200 (normal user)
{
"id": "integer",
"type": "string",
"name": "string",
"description": "string",
"color": "string",
"visible": "boolean",
"visibility_boost": "boolean",
"created_at": "string",
"active": "boolean",
"deleted": "boolean"
}
{
"id": "integer",
"type": "string",
"name": "string",
"description": "string",
"color": "string"
}