Categories
Last updated
Last updated
API for managing Categories
GET
https://www.magloft.com/api/portal/v1/categories/:app_id
This endpoint returns a list of all categories
that belong to the publication
Name | Type | Description |
---|---|---|
GET
https://www.magloft.com/api/portal/v1/categories/:app_id/:id
This endpoint returns a specific category
by id
POST
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
POST
https://www.magloft.com/api/portal/v1/categories/:app_id
This endpoint creates a new category
and returns the saved category
PUT
https://www.magloft.com/api/portal/v1/categories/:app_id/:id
This endpoint updates a specific category
by id
and returns the updated category
DELETE
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
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
app_id
String
App ID (Publication) to scope this request for.
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Category ID
app_id
String
App ID (Publication) to scope this request for.
positions
Array
positions[id]
Integer
positions[position]
Integer
app_id
String
App ID (Publication) to scope this request for.
title
String
Title of a category
color
String
Hex color of a category
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Category ID
title
String
Title of a category
color
String
Hex color of a category
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Category ID