- Create a new content post
Create a new content item and select what topics will include the content.
Response body data will be the newly created record.
Resources
Attributes of the content to create.
The type of content to create
An indication of the native availability of the post within the Firstup platform. If 'public', the post has a public_link_url and shares of the post should use that url as the canonical url. If 'private', the post requires user authentication to view.
Works with groups: true limits visibility to listed audiences; false uses audiences for delivery only.
A non-empty list of audiences this post targets. Required to enable targeting; if empty or omitted, targeting will not be applied.
[ "group1", "group2" ]
An ordered list of images for this content.
Images are only validated for content of "image" type. There is a limit of ten images.
Note: The content returned immediately after content creation or modification contains will not contain the final image URIs due to additional post-processing
- US1https://partner.socialchorus.com/v2/content
- US2https://partner.us2.onfirstup.com/v2/content
- EUhttps://partner.onfirstup.eu/v2/content
- oauth2_as_a_user
- oauth2_as_a_server
curl -i -X POST \
https://partner.socialchorus.com/v2/content \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"content_type": "article",
"title": "Example Post Title",
"body": "Example post body",
"summary": "Example post summary",
"author": {
"avatar_url": "https://example.com/avatar.png",
"display_name": "Some User",
"user_id": 123
},
"featured": true,
"featured_label": "A Label",
"visibility": "private",
"targeted": true,
"groups": [
"group1",
"group2"
],
"channels": [
{
"id": 789,
"hidden": false
}
],
"source": {
"post_id": "string",
"posted_at": "string"
},
"images": [
{
"image_url": "https://image.site.com/an_image.png"
}
],
"template": {
"id": 0
},
"link_url": null
}'{ "data": [ { … } ] }