# Content Publishing

The Content Publishing API provides access to content the same way
Program Studio does, enabling the creation and updating of
articles, links, videos, and images.Security: Users with a “publisher” or higher role can work with
      content in this admin-like function. A 403 code is returned for content-related requests
      to users without a “publisher” or higher role. Permissions are not granular;
      any authenticated user may read, update, or take action on any existing content. See user roles and access for more guidance.
    States: Content is initially created in the “draft” state. It becomes
      fully visible in feeds when it has passed the “review” state (meaning that
      it requires review) and is in the “published” state. Content can also pass
      through “archived” (similar to deleted), “scheduled” (content to
      be published in the future automatically), “processing” (refers to media
      that is still being processed or uploaded; like content in the “draft”
      state, this content does not become “published” until processing has
      completed), and “processing error” (media or similar objects that fail
      during the processing phase; this content cannot be transitioned to another state)
      states.
    Sources: Content sources include “submitted” (by users);
      “pinterest”, “rss”, “facebook”,
      “twitter” (X) and “instagram” (for content harvested from external
      sources); “socialchoruscpcm” (for content that is republished between
      programs); “studio” (for admin-created content); and “oauthclient” (for content published via the Partner API or other OAuth client). For contextual guidance on content publishing, and for use case examples, refer to our Content Publishing Overview page.

 - [POST /v2/channels](https://developers.firstup.io/endpoints/openapi/content-publishing/createchannel.md): Creates new topic in the program. A topic holds campaigns and users, organizing content for user consumption. **Resources** Knowledge Base article on Topics An overview on Content & Publishing API
 - [GET /v2/channels](https://developers.firstup.io/endpoints/openapi/content-publishing/listchannels.md): Returns a list of topics and allows for sorting, filtering, and pagination of the records. Response body is an array of records. **Resources** Knowledge Base article on Topics An overview on Content
 - [PUT /v2/channels/{channel_id}](https://developers.firstup.io/endpoints/openapi/content-publishing/updatechannel.md): Updates a topic in the program
 - [GET /v2/settings/user_generated_content](https://developers.firstup.io/endpoints/openapi/content-publishing/getusergeneratedcontentsettings.md): Returns which attachment types (images, videos, files, links) users may attach when submitting user generated content in your program.
 - [PATCH /v2/settings/user_generated_content](https://developers.firstup.io/endpoints/openapi/content-publishing/updateusergeneratedcontentsettings.md): Toggles which attachment types (images, videos, files, links) users may attach when submitting user generated content in your program.
 - [GET /v2/channels/{channel_id}/followers](https://developers.firstup.io/endpoints/openapi/content-publishing/listchannelfollowers.md): Returns a list of all users who follow the topic, and allows for pagination of the records. Response body is an array of records. **Resources** Knowledge Base article on Topics An overview on Content
 - [GET /v2/channels/{channel_id}/pages](https://developers.firstup.io/endpoints/openapi/content-publishing/listchannelpages.md): Returns a list of custom pages associated with a topic.
 - [GET /v2/content](https://developers.firstup.io/endpoints/openapi/content-publishing/listcontent.md): Returns a list of content records and allows for sorting, filtering, and pagination of the records. This list can be used to pass into a topic. Response body is an array of records. **Resources** Kno
 - [POST /v2/content](https://developers.firstup.io/endpoints/openapi/content-publishing/createcontent.md): Create a new content item and select what topics will include the content. The new content will be created in the **“draft”** state. This endpoint only creates the post. If applicable, an image may b
 - [GET /v2/content/{content_id}](https://developers.firstup.io/endpoints/openapi/content-publishing/detailcontent.md): Read an existing content record. Returns a single record by identifier or by the content UUID. Upon enabling expanded reaction types, the response will include the additional reaction types.
 - [PUT /v2/content/{content_id}](https://developers.firstup.io/endpoints/openapi/content-publishing/updatecontent.md): 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
 - [PUT /v2/content/{content_id}/archive](https://developers.firstup.io/endpoints/openapi/content-publishing/archivecontent.md): Archive an existing content post. Transition the content state from any state directly to "archived". Response body contains the latest version of the content record.
 - [PUT /v2/content/{content_id}/draft](https://developers.firstup.io/endpoints/openapi/content-publishing/draftcontent.md): Transition the content state of an existing content post to draft. A post can be set to draft from any any current state. If the post was published or archived, it will no longer be. Response body is
 - [PUT /v2/content/{content_id}/publish](https://developers.firstup.io/endpoints/openapi/content-publishing/publishcontent.md): Change the state of the content to “published.” If the content is already in the “published” state, this request does nothing. Content in a “scheduled” state remains scheduled. For all other states, t
 - [PUT /v2/content/{content_id}/review](https://developers.firstup.io/endpoints/openapi/content-publishing/reviewcontent.md): Change the state of the post to "review". The post is immediately removed from feeds. Posts that are already in "review" state will not change.
 - [GET /v2/content/{content_id}/comments](https://developers.firstup.io/endpoints/openapi/content-publishing/listcontentcomments.md): List the comments on a content post. Only top-level comments are returned. Comments which are replies to other comments are not currently available through this endpoint. Upon enabling expanded reacti
 - [GET /v2/content/{content_id}/comments/{comment_id}/replies](https://developers.firstup.io/endpoints/openapi/content-publishing/listcontentcommentreplies.md): List the replies on comment post. Upon enabling expanded reactions types, the response will include the additional reaction types. When a comment with user mentions is returned, it will be returned wi
 - [PUT /v2/content/{content_id}/images](https://developers.firstup.io/endpoints/openapi/content-publishing/addcontentimage.md): Add a new image to a content record. Response body is the updated content record. This API does not resize or rehost images. Images should be appropriately sized and will be served from the provided U
 - [PUT /v2/content/{content_id}/videos](https://developers.firstup.io/endpoints/openapi/content-publishing/addcontentvideo.md): Add a new video to a content record. Response body is the attributes of the video record. Insert the returned embed_html into the body of the article at the location you want the video to appear in th
 - [DELETE /v2/content/{content_id}/images/{content_image_id}](https://developers.firstup.io/endpoints/openapi/content-publishing/removecontentimage.md): Remove an image from a content record. Images cannot be removed from published content. Response status for removed content is 204 No Content.
 - [GET /v2/content/replications](https://developers.firstup.io/endpoints/openapi/content-publishing/listcontentreplications.md): The endpoint allow users to get details of content replication. Source or target filter is required
 - [GET /v2/videos/{video_id}/download](https://developers.firstup.io/endpoints/openapi/content-publishing/downloadcontentvideo.md): Returns a temporary link to a content video.
 - [GET /v2/content/{content_id}/reach/unique_user_count](https://developers.firstup.io/endpoints/openapi/content-publishing/contentreachcount.md): Fetch the content reach, the unique user count for audiences, topics, and both.
