Category API
Get all categories
GET
http://lrr.tvc-16.science/api/categories
Get all the categories saved on the server.
Get a single category
GET
http://lrr.tvc-16.science/api/categories/:id
Get the details of the specified category ID.
Path Parameters
id*
string
ID of the Category desired.
πCreate a Category
PUT
http://lrr.tvc-16.science/api/categories
Create a new Category.
Query Parameters
pinned
boolean
Add this parameter if you want the created category to be pinned.
search
string
Matching predicate, if creating a Dynamic Category.
name*
string
Name of the Category.
πUpdate a Category
PUT
http://lrr.tvc-16.science/api/categories/:id
Modify a Category.
Path Parameters
id*
string
ID of the Category to update.
Query Parameters
name
string
New name of the Category
search
string
Predicate. Trying to add a predicate to a category that already contains Archives will give you an error.
pinned
boolean
Add this argument to pin the Category.
\
If you don't, the category will be unpinned on update.
πDelete a Category
DELETE
http://lrr.tvc-16.science/api/categories/:id
Remove a Category.
Path Parameters
id*
string
ID of the Category to delete.
πAdd an Archive to a Category
PUT
http://lrr.tvc-16.science/api/categories/:id/:archive
Adds the specified Archive ID (see Archive API) to the given Category.
Path Parameters
id*
string
Category ID to add the Archive to.
archive*
string
Archive ID to add.
πRemove an Archive from a Category
DELETE
http://lrr.tvc-16.science/api/categories/:id/:archive
Remove an Archive ID from a Category.
Path Parameters
id*
string
Category ID
archive*
string
Archive ID
Get bookmark link
GET
http://lrr.tvc-16.science/api/categories/bookmark_link
Retrieves the ID of the category currently linked to the bookmark feature. Returns an empty string if no category is linked.
πUpdate bookmark link
PUT
http://lrr.tvc-16.science/api/categories/bookmark_link/:id
Links the bookmark feature to the specified static category. This determines which category archives are added to when using the bookmark button.
Path Parameters
id*
string
ID of the static category to link with the bookmark feature.
πDisable bookmark feature
DELETE
http://lrr.tvc-16.science/api/categories/bookmark_link
Disables the bookmark feature by removing the link to any category. Returns the ID of the previously linked category.
Last updated
Was this helpful?