Media
Get all categories for an account
GET /api/media/category
This is an API to return all categories for the current account. This will return categories on a root level
Headers
Name
Value
Content-Type
application/json
Authorization
<token>
Response
[
{
"id": "e30547b1-3373-4620-8846-ec6e8682e20f",
"account_id": "7d97c8ba-65b9-44c8-96f9-cbb2ac7889ff",
"user_id": null,
"name": "Matematik teori",
"description": "",
"icon": "tv",
"created_by": "ba68ce50-86e7-4fb2-bf25-01d5ca19fbb6",
"created_at": "2024-03-18T18:38:46.566Z",
"is_public": false,
"read_access": [
"7d97c8ba-65b9-44c8-96f9-cbb2ac7889ff"
],
"is_package": false,
"package_visible_to": [],
"access_control_read_access": [
"7d97c8ba-65b9-44c8-96f9-cbb2ac7889ff"
]
},
{
"id": "7fceef6c-8e43-4e0c-b902-08caca11eb80",
"account_id": "7d97c8ba-65b9-44c8-96f9-cbb2ac7889ff",
"name": "Pekebok for voksne",
"description": "",
"icon": "communication",
"created_by": "ba52se50-86e7-4fb2-bf25-01d5ca19fbb6",
"created_at": "2024-01-04T09:39:19.156Z",
"is_public": false,
"read_access": [
"7d97c8ba-65b9-44c8-96f9-cbb2ac7889ff"
],
"access_control_read_access": [
"7d97c8ba-65b9-44c8-96f9-cbb2ac7889ff"
]
},
]Get category by ID
GET /api/media/category/:id
This API returns the category for provided ID
Headers
Name
Value
Content-Type
application/json
Authorization
<token>
Params
Name
Type
Description
id
UUID
Category Id
Response
Create a new user
GET /api/media/category/:category_id/resource
Get category content
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Params
Name
Type
Description
id
UUID
Category ID
Response
Last updated