API for managing Categories
List Categories
https://www.magloft.com/api/portal/v1/categories/:app_id
This endpoint returns a list of all categories
that belong to the publication
Path Parameters
App ID (Publication) to scope this request for.
{
"id": 1234,
"title": "Business",
"color": "#444444",
"position": 0
}
Get Category
https://www.magloft.com/api/portal/v1/categories/:app_id/:id
This endpoint returns a specific category
by id
Path Parameters
App ID (Publication) to scope this request for.
{
"id": 1234,
"title": "Business",
"color": "#444444",
"position": 0
}
Sort Categories
https://www.magloft.com/api/portal/v1/categories/:app_id/sort
This endpoint sorts all categories
by position
and returns an empty response
with status 204
Path Parameters
App ID (Publication) to scope this request for.
Body Parameters
positions[position]
required
Create Category
https://www.magloft.com/api/portal/v1/categories/:app_id
This endpoint creates a new category
and returns the saved category
Path Parameters
App ID (Publication) to scope this request for.
{
"id": 1234,
"title": "Business",
"color": "#444444",
"position": 0
}
Update Category
https://www.magloft.com/api/portal/v1/categories/:app_id/:id
This endpoint updates a specific category
by id
and returns the updated category
Path Parameters
App ID (Publication) to scope this request for.
{
"id": 1234,
"title": "Business",
"color": "#444444",
"position": 0
}
Delete Category
https://www.magloft.com/api/portal/v1/categories/:app_id/:id
This endpoint deletes a specific category
by id
and returns an empty response
with status 204
Path Parameters
App ID (Publication) to scope this request for.