This operation shows details for all categories available in Wowza Video.
Success
Array of objects (CategoryResponse) The list of categories. | |
object (Pagination) |
Unauthorized
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v2.0/categories"
{- "categories": [
- {
- "category": {
- "id": "cb65a918-ad7d-406a-80d8-09c9c8d0dbbd",
- "name": "My first category",
- "description": "This is a category description.",
- "parent_id": "cb65a918-ad7d-406a-80d8-09c9c8d0dbb"
}
}
], - "pagination": {
- "payload_version": 0,
- "total_records": 100,
- "page": 1,
- "per_page": 10,
- "total_pages": 2,
- "page_first_index": 10,
- "page_last_index": 10
}
}
This operation shows details for a single, specified category.
Success
object (category) | |||||||||
|
Unauthorized
Forbidden
Not Found
Gone
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "GET" \ "${WV_HOST}/api/v2.0/categories/2aa3343e-2fb5-42c3-8671-b52c24b7c3e2"
{- "category": {
- "id": "cb65a918-ad7d-406a-80d8-09c9c8d0dbbd",
- "name": "My first category",
- "description": "This is a category description.",
- "parent_id": "cb65a918-ad7d-406a-80d8-09c9c8d0dbb"
}
}
This operation updates a category.
Only the fields that are sent in the request body will be updated.
object (category) | |||||||
|
Success
object (category) | |||||||||
|
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
{- "category": {
- "name": "My first category",
- "description": "This is a category description",
- "parent_id": "cb65a918-ad7d-406a-80d8-09c9c8d0dbb"
}
}
{- "category": {
- "id": "cb65a918-ad7d-406a-80d8-09c9c8d0dbbd",
- "name": "My first category",
- "description": "This is a category description.",
- "parent_id": "cb65a918-ad7d-406a-80d8-09c9c8d0dbb"
}
}
This operation deletes a category.
No Content
Unauthorized
Forbidden
Not Found
Gone
Unprocessable Entity
// Using cURL curl -H "Authorization: Bearer ${WV_JWT}" \ -H "Content-Type: application/json" \ -X "DELETE" \ "${WV_HOST}/api/v2.0/categories/2aa3343e-2fb5-42c3-8671-b52c24b7c3e2"
{- "Example Response 1": {
- "meta": {
- "status": 401,
- "code": "ERR-401-NoApiKey",
- "title": "No API Key Error",
- "message": "No API key sent in header.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 2": {
- "meta": {
- "status": 401,
- "code": "ERR-401-NoAccessKey",
- "title": "No Access Key Error",
- "message": "No access key sent in header.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 3": {
- "meta": {
- "status": 401,
- "code": "ERR-401-InvalidApiKey",
- "title": "Invalid Api Key Error",
- "message": "Invalid API key.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 4": {
- "meta": {
- "status": 401,
- "code": "ERR-401-InvalidAccessKey",
- "title": "Invalid Access Key Error",
- "message": "Invalid access key.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 5": {
- "meta": {
- "status": 401,
- "code": "ERR-401-BadAccountStatus",
- "title": "Bad Account Status Error",
- "message": "Your account's status doesn't allow this action.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 6": {
- "meta": {
- "status": 401,
- "code": "ERR-401-FeatureNotEnabled",
- "title": "Feature Not Enabled Error",
- "message": "This feature isn't enabled.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 7": {
- "meta": {
- "status": 401,
- "code": "ERR-401-TrialExceeded",
- "title": "Bad Billing Status Error",
- "message": "Your billing status needs attention. You can't start or add live streams until your billing status is updated.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 8": {
- "meta": {
- "status": 401,
- "code": "ERR-401-ExpiredToken",
- "title": "JWT is expired",
- "message": "Token has exired.",
- "description": "",
- "links": [ ]
}
}, - "Example Response 9": {
- "meta": {
- "status": 401,
- "code": "ERR-401-InvalidToken",
- "title": "JWT is invalid",
- "message": "Token is invalid.",
- "description": "",
- "links": [ ]
}
}
}