This operation creates a category you can assign to a video for organization.
Success
object (category) | |||||||||
|
Unauthorized
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 shows details for all categories available in Wowza Video.
page | integer <int32> Default: 1 Returns a paginated view of results from the HTTP request. Specify a positive integer to indicate which page of the results should be displayed. The default is 1. | ||||||||
per_page | integer <int32> Default: 1000 For use with the page parameter. Indicates how many records should be included in a page of results. A valid value is any positive integer. The default and maximum value is 1000. | ||||||||
query | string Searches text fields case insensitive and partial. Full matches aren't required. For categories, Limit to a specific field with a If you have multiple search terms you can use Examples:
| ||||||||
sort_column | string Default: "name" Value: "name" | ||||||||
sort_direction | string Default: "DESC" | ||||||||
only_top_level | boolean Default: false Only categories without parent categories will be returned if set to | ||||||||
parent_id | string Limit search to categories with a specific parent category. When specified, only child categories with the specified parent will be returned. |
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": [ ]
}
}
}