Admin

Assign writer and support agent to article (Admin)

Admin endpoint to assign or update the writer and support agent roles for an article.

patch/admin/articles/{article_id}/assign-roles

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/admin/articles/{article_id}/assign-roles
  • Auth: HTTP bearer

Path parameters

article_idstring uuid required
Example:0cb664e6-3793-4af2-9e5e-c2154560e63e

Request body

writer_idstring uuid nullable

User ID of the writer to assign, or null to unassign

support_agent_idstring uuid nullable

User ID of the support agent to assign, or null to unassign

Example request

{
  "writer_id": "85e644be-5806-42c7-b2b4-0c025e2259f9",
  "support_agent_id": "ba2d7c22-ec99-4121-988f-0b907e288653"
}

Response

Article roles assigned successfully

idstring uuid required
namestring required
story_anglestring nullable required
descriptionstring nullable required
key_pointsstring nullable required
word_countstring nullable required
target_audiencestring nullable required
live_urlstring nullable required
brief_google_doc_urlstring nullable required
draft_google_doc_urlstring nullable required
notesstring nullable required
publish_status'UNPUBLISH' | 'PUBLISHING' | 'PUBLISHED' | 'PENDING' required
campaign_idstring uuid required
writer_idstring uuid nullable required
support_agent_idstring uuid nullable required
goal_idstring uuid nullable required
priority_idstring uuid nullable required
content_status_idstring uuid required
order_item_idstring uuid required
draft_countnumber nullable required
last_compliance_check_idstring uuid nullable required
last_live_article_check_idstring uuid nullable required

Example response

{
  "name": "Stabilis amplus auctor advenio velum umerus cuius.",
  "publish_status": "UNPUBLISH"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.