- Update an existing content post
Update an existing content record. Content can be updated in any state, but some states have different validations. Any or all of the content attributes can be provided and only those provided will be updated.
To change the state (i.e. publish a draft) see Publish an existing content post.
Attributes of the content to update.
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/{content_id}
- US2https://partner.us2.onfirstup.com/v2/content/{content_id}
- EUhttps://partner.onfirstup.eu/v2/content/{content_id}
- oauth2_as_a_user
- oauth2_as_a_server
curl -i -X PUT \
'https://partner.socialchorus.com/v2/content/{content_id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"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"
],
"source": {
"post_id": "abc123",
"posted_at": "2000-01-01T00:00:00Z"
},
"template": {
"id": 234
},
"images": [
{
"image_url": "https://image.site.com/an_image.png"
}
],
"link_url": "https://google.com"
}'{ "data": [ { … } ] }