StoryPRO API (params in:body) (1.2)
Download OpenAPI specification:Download
StoryPRO API documentation
© 2023 StoryPROUpdates an existing article.
This endpoint is used to update an existing article.
- Fields
description
,landscape_image
,card_image
andimage_alt
are required unless specified during the creation of the article. - Additional fields, such as
filter
can be passed by adding them as a parameter to the article hash. - See
/articles/new
endpoint for a list of all available fields.
Authorizations:
path Parameters
id required | number |
Request Body schema: application/json
required | object |
tags | Array of strings Default: [1,2] The array of tag ids (Integers) associated with the article |
Responses
Request samples
- Payload
{- "article": {
- "description": "Entry Description",
- "image_alt": "Horse eating a carrot"
}, - "tags": [
- 1,
- 2
]
}
Creates a new article.
This endpoint is used to create a new article.
- At minimum the fields
name
,user_id
andcategory_id
are required. - Additional fields, such as
description
, can be passed by adding them as a parameter to the article hash. - See
articles/new
endpoint for a list of all available fields.
Authorizations:
Request Body schema: application/json
required | object | ||||||
|
Responses
Request samples
- Payload
{- "article": {
- "name": "New Entry",
- "user_id": 1,
- "category_id": 1
}
}
Retrieve entry details.
Retrieves an array of entries, along with their categories, tags and published status.
Authorizations:
query Parameters
kind | string Enum: "article" "video" "discussion" "promotion" Allows you to filter the kind of entries you are going to retrieve |
status | string Default: "all" Enum: "all" "published" "unpublished" "scheduled" Allows you to filter off the entries' published status |
Responses
Creates a new category.
This endpoint is used to create a new category.
- At minimum the fields
name
andcolor_id
are required. - Additional fields can be passed by adding them as a parameter to the category hash.
- See
/categories/new
endpoint for a list of all available fields. - See
/colors/
endpoint for a list of all available colors.
Authorizations:
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "category": {
- "name": "New Category",
- "color_id": 1
}
}
Updates an existing category.
This endpoint is used to update an existing category.
- Additional fields can be passed by adding them as a parameter to the category hash.
- See
categories/new
endpoint for a list of all available fields. - See
/colors/
endpoint for a list of all available colors.
Authorizations:
path Parameters
id required | number |
Request Body schema: application/json
required | object | ||||
|
Responses
Request samples
- Payload
{- "category": {
- "name": "New Category",
- "color_id": 1
}
}
Updates an existing discussion.
This endpoint is used to update an existing discussion.
- Field
description
is required unless specified during the creation of the discussion. - Additional fields, such as
social_image
can be passed by adding them as a parameter to the discussion hash. - See
discussions/new
endpoint for a list of all available fields.
Authorizations:
path Parameters
id required | number |
Request Body schema: application/json
required | object |
tags | Array of strings Default: [1,2] The array of tag ids (Integers) associated with the discussion |
Responses
Request samples
- Payload
{- "discussion": {
- "description": "Discussion Description"
}, - "tags": [
- 1,
- 2
]
}
Creates a new discussion.
This endpoint is used to create a new discussion.
- At minimum the fields
name
,user_id
andcategory_id
are required. - Additional fields, such as
description
can be passed by adding them as a parameter to the discussion hash. - See
discussions/new
endpoint for a list of all available fields.
Authorizations:
Request Body schema: application/json
required | object | ||||||
|
Responses
Request samples
- Payload
{- "discussion": {
- "name": "New Entry",
- "user_id": 1,
- "category_id": 1
}
}
Adds an element to an area of an entry.
this endpoint is used to create a new element.
- See
elements/distinct
endpoint for a list of all available elements. - The elements must be created and attached to an
AREA
of aPARENT COMPONENT
, BEFORE it can be edited. - The
PARENT ID
is the ID of the entry the element is attached to. - Areas
header
,content
andreference
are available forarticles
,videos
,discussions
andpromotions
parent component. - Area
homepage
is available forsite_settings_theme_homepage
parent component. - Areas
page
,fullscreen
,regular
andfeatured
are available forsite_settings_theme_css
parent component.
Authorizations:
Request Body schema: application/json
element required | string Default: "elements_blockquote" The name of element to add. Dont forget the |
parent_id required | number Default: 1 Parent ID of the component the element is attached to. |
parent_component required | string Default: "articles" Enum: "articles" "videos" "discussions" "promotions" "site_settings_theme_css" "site_settings_theme_homepage" Parent component the element is attached to. |
area required | string Enum: "header" "content" "reference" "homepage" "page" "fullscreen" "regular" "featured" The area of the element. |
Responses
Request samples
- Payload
{- "element": "elements_blockquote",
- "parent_id": 1,
- "parent_component": "articles",
- "area": "header"
}
Updates an existing element.
- This endpoint is used to update an existing element.
- The request must be wrapped in an element object such
elements_blockquote
representing the element to be updated. - Fields such
author
must be nested inside the wrapper object. - See
elements/distinct
endpoint for a list of all available elements and their fields.
Authorizations:
path Parameters
id required | number |
Request Body schema: application/json
object | |||||||
|
Responses
Request samples
- Payload
{- "element_blockquote": {
- "author": "John Cena"
}
}
Updates an existing promotion.
This endpoint is used to update an existing promotion.
title
,text
andimage
are required unless specified during the creation of the promotion.- Additional fields, such as
new_window
can be passed by adding them as a parameter to the promotion hash. - See
promotions/new
endpoint for a list of all available fields.
Authorizations:
path Parameters
id required | number |
Request Body schema: application/json
required | object | ||||||
|
Responses
Request samples
- Payload
{- "promotion": {
- "title": "Promotion Title",
- "text": "Promotion Description",
}
}
Creates a new promotion.
This endpoint is used to create a new promotion.
- At minimum the fields
name
andurl
are required. - Additional fields, such as
title
ordescription
, can be passed by adding them as a parameter to the promotion hash. - See
/promotions/new
endpoint for a list of all available fields.
Authorizations:
Request Body schema: application/json
required | object |
tags | Array of strings Default: [1,2] The array of tag ids (Integers) associated with the promotion |
Responses
Request samples
- Payload
{- "tags": [
- 1,
- 2
]
}
Updates an existing video.
This endpoint is used to update an existing video.
- Fields
description
,landscape_image
,card_image
andimage_alt
are required unless specified during the creation of the video. - Additional fields, such as
filter
can be passed by adding them as a parameter to the video hash. - See
videos/new
endpoint for a list of all available fields.
Authorizations:
path Parameters
id required | number |
Request Body schema: application/json
required | object |
tags | Array of strings Default: [1,2] The array of tag ids (Integers) associated with the video |
Responses
Request samples
- Payload
{- "video": {
- "description": "Entry Description",
- "image_alt": "Horse eating a carrot"
}, - "tags": [
- 1,
- 2
]
}
Creates a new video.
This endpoint is used to create a new video.
- At minimum the fields
name
,user_id
andcategory_id
are required. - Additional fields, such as
description
can be passed by adding them as a parameter to the video hash. - See
/videos/new
endpoint for a list of all available fields.
Authorizations:
Request Body schema: application/json
required | object | ||||||
|
Responses
Request samples
- Payload
{- "video": {
- "name": "New Entry",
- "user_id": 1,
- "category_id": 1
}
}