Articles
API for managing articles
List Articles
GET
https://www.magloft.com/api/portal/v1/articles/:app_id
This endpoint returns a list of all articles
that belong to the magazine
Path Parameters
app_id
String
App ID (Publication) to scope this request for.
Query Parameters
order_by
Symbol
Field to sort results by
order_dir
Symbol
Direction (asc, desc) to sort results by
issue_id
Integer
Retrieve paginated list of articles
GET
https://www.magloft.com/api/portal/v1/articles/:app_id/page/:page
This endpoint returns a page list of all articles
that belong to the magazine
Path Parameters
app_id
String
App ID (Publication) to scope this request for.
page
Integer
The page number to list
Query Parameters
per_page
Integer
Number of items to show per page
order_by
Symbol
Field to sort results by
order_dir
Symbol
Direction (asc, desc) to sort results by
filter
String
Text filter to search results by
Get Article
GET
https://www.magloft.com/api/portal/v1/articles/:app_id/:id
This endpoint returns a specific article
by id
Path Parameters
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Article ID
Create an Article
POST
https://www.magloft.com/api/portal/v1/articles/:app_id
This endpoint creates a new article
and returns the saved article
Path Parameters
app_id
String
App ID (Publication) to scope this request for.
Request Body
title
String
Article Title
info
String
Article Description
html
String
Article HTML
date
String
Article Publish Date
cover
String
Article Cover
category_ids
Array
Article category IDs
issue_id
Integer
Issue ID
unlock_type
String
Unlock Type
position
Integer
Order Position of the Article within an Issue
source
String
Article type
Update an Article
PUT
https://www.magloft.com/api/portal/v1/articles/:app_id/:id
This endpoint updates a specific article
by id
and returns the updated article
Path Parameters
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Article ID
Request Body
title
String
Article Title
info
String
Article Description
html
String
Article HTML
assets
Hash
Article Assets
date
String
Article publish date
cover
String
Article Cover
category_ids
Array
Article category IDs
issue_id
Integer
Issue ID
unlock_type
String
Unlock Type
position
Integer
Order Position of the Article within an Issue
visible
Virtus::Attribute::Boolean
A boolean indicating whether this article is visible
Delete Article
DELETE
https://www.magloft.com/api/portal/v1/articles/:app_id/:id
This endpoint deletes a specific article
by id
and returns an empty response
with status 204
Path Parameters
app_id
String
App ID (Publication) to scope this request for.
id
Integer
Article ID
FlexPDF Import
POST
https://www.magloft.com/api/portal/v1/articles/:app_id/flexpdf-import
This endpoint creates multiple article
and returns
Path Parameters
app_id
String
App ID (Publication) to scope this request for.
Request Body
articles
Array
articles[title]
String
Article Title
articles[html]
String
Article HTML
articles[cover]
String
Article Cover
articles[issue_id]
Integer
Issue ID
articles[unlock_type]
String
Unlock Type
articles[position]
Integer
Order Position of the Article within an Issue
articles[source]
String
Article type
Last updated