Classifications
Last updated
Last updated
API for managing Classifications
GET
https://www.magloft.com/api/portal/v1/classifications/:app_id
This endpoint returns a list of all classifications
that belong to the publication
Name | Type | Description |
---|---|---|
GET
https://www.magloft.com/api/portal/v1/classifications/:app_id/:id
This endpoint returns a specific classification
by id
POST
https://www.magloft.com/api/portal/v1/classifications/:app_id/sort
This endpoint sorts all classification
by position
and returns an empty response
with status 204
POST
https://www.magloft.com/api/portal/v1/classifications/:app_id
This endpoint creates a new classification
and returns the saved classification
PUT
https://www.magloft.com/api/portal/v1/classifications/:app_id/:id
This endpoint updates a specific classification
by id
and returns the updated classification
DELETE
https://www.magloft.com/api/portal/v1/classifications/:app_id/:id
This endpoint deletes a specific classification
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
Classification 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 classification
color
String
Hex color of a classification
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Classification ID
title
String
Title of a classification
color
String
Hex color of a classification
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Classification ID