> For the complete documentation index, see [llms.txt](https://docs.superdesk.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.superdesk.org/api-reference/readme/assignments.md). Agents can also search and read this documentation through its [MCP server](https://docs.superdesk.org/~gitbook/mcp).

# Assignments

## List assignments

> Get list of assignments with elastic search query support

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["ASSIGNMENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"schemas":{"Assignment":{"type":"object","description":"Content assignment","properties":{"_id":{"type":"string"},"type":{"type":"string","enum":["assignment"]},"planning_item":{"type":"string","description":"ID of the linked planning item"},"coverage_item":{"type":"string","description":"ID of the linked coverage"},"scheduled_update_id":{"type":"string","nullable":true},"priority":{"type":"integer"},"accepted":{"type":"boolean"},"assigned_to":{"allOf":[{"$ref":"#/components/schemas/CoverageAssignedTo"}],"description":"Assignment state is stored in assigned_to.state"},"planning":{"$ref":"#/components/schemas/AssignmentPlanning"},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"},"published_at":{"type":"string","format":"date-time","nullable":true},"published_state":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"description_text":{"type":"string","nullable":true},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"_to_delete":{"type":"boolean"},"_links":{"type":"object","description":"HATEOAS links to related resources","properties":{"planning":{"$ref":"#/components/schemas/HATEOASPlanning"},"event":{"$ref":"#/components/schemas/HATEOASEvent"},"related_events":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASEvent"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASContent"}}}}}},"CoverageAssignedTo":{"type":"object","nullable":true,"description":"Assignment and contact information for the coverage","properties":{"assignment_id":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"]},"contact":{"type":"string","nullable":true},"user":{"type":"string","nullable":true},"desk":{"type":"string","nullable":true},"coverage_provider":{"$ref":"#/components/schemas/CoverageProvider"},"assignor_desk":{"type":"string","nullable":true},"assignor_user":{"type":"string","nullable":true},"assigned_date_desk":{"type":"string","format":"date-time","nullable":true},"assigned_date_user":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"integer","nullable":true}}},"CoverageProvider":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"contact_type":{"type":"string","nullable":true}}},"AssignmentPlanning":{"type":"object","description":"Assignment planning snapshot. The due time is planning.scheduled, not a\ntop-level scheduled field. Unlike CoveragePlanning, legacy item_count\nand coverage_provider values are strings.\n","properties":{"scheduled":{"type":"string","format":"date-time","nullable":true},"g2_content_type":{"type":"string","nullable":true},"slugline":{"type":"string","nullable":true},"headline":{"type":"string"},"description_text":{"type":"string","nullable":true},"ednote":{"type":"string","nullable":true},"internal_note":{"type":"string","nullable":true},"keyword":{"type":"array","items":{"type":"string"}},"genre":{"type":"array","items":{"$ref":"#/components/schemas/VocabularyItem"}},"subject":{"type":"array","items":{"type":"object","additionalProperties":true}},"language":{"type":"string","nullable":true},"priority":{"type":"integer","nullable":true},"multiple_content":{"type":"boolean"},"workflow_status_reason":{"type":"string","nullable":true},"coverage_provider":{"type":"string","nullable":true},"contact_info":{"type":"string","nullable":true},"contact":{"type":"string","nullable":true},"item_class":{"type":"string","nullable":true},"item_count":{"type":"string","nullable":true},"files":{"type":"array","items":{"type":"string"}},"xmp_file":{"type":"string","nullable":true},"service":{"type":"array","items":{"$ref":"#/components/schemas/VocabularyItem"}},"news_content_characteristics":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}},"planning_ext_property":{"type":"array","items":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}}}},"by":{"type":"array","items":{"type":"string"}},"credit_line":{"type":"array","items":{"type":"string"}},"dateline":{"type":"array","items":{"type":"string"}},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"}}},"VocabularyItem":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"description":"Field names mapped to language codes and translated values","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}}}},"NewsCoverageStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"HATEOASPlanning":{"type":"object","description":"HATEOAS link to a Planning resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"coverages":{"type":"array","description":"Compact coverage summaries from the linked planning item; not full Coverage records","items":{"$ref":"#/components/schemas/CoverageSummary"}}}},"CoverageSummary":{"type":"object","description":"Compact summary included in _links.plannings[].coverages","properties":{"coverage_id":{"type":"string","nullable":true},"workflow_status":{"type":"string","nullable":true},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"g2_content_type":{"type":"string","nullable":true}}},"HATEOASEvent":{"type":"object","description":"HATEOAS link to an Event resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"}}},"HATEOASContent":{"type":"object","description":"HATEOAS link to News Content","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"state":{"type":"string","description":"The state of the associated content"},"pubstatus":{"type":"string","description":"The pubstatus of the associated content"}}},"Meta":{"type":"object","description":"Metadata about the response","properties":{"total":{"type":"integer","description":"Total number of items"},"page":{"type":"integer","description":"Current page number"},"max_results":{"type":"integer","description":"Maximum results per page"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/assignments":{"get":{"summary":"List assignments","description":"Get list of assignments with elastic search query support","tags":["Assignments"],"parameters":[{"name":"source","in":"query","description":"Elasticsearch query in JSON format","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"List of assignments","content":{"application/json":{"schema":{"type":"object","properties":{"_items":{"type":"array","items":{"$ref":"#/components/schemas/Assignment"}},"_meta":{"$ref":"#/components/schemas/Meta"}}}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"}}}}}}
```

## Get assignment details

> Retrieve a specific assignment by its ID

```json
{"openapi":"3.0.2","info":{"title":"Superdesk Production API","version":"2.0"},"servers":[{"url":"/prodapi/v1","description":"Production API v1 Server"}],"security":[{"oauth2Auth":["ASSIGNMENTS_READ"]}],"components":{"securitySchemes":{"oauth2Auth":{"type":"oauth2","description":"OAuth 2.0 client credentials flow via Superdesk Auth Server.\n\nSee: https://superdesk.readthedocs.io/en/latest/auth_server.html\n","flows":{"clientCredentials":{"tokenUrl":"/api/auth_server/token","scopes":{"ARCHIVE_READ":"Read archive items","DESKS_READ":"Read desks","PLANNING_READ":"Read planning items","CONTACTS_READ":"Read contacts","USERS_READ":"Read users and user availability","ASSIGNMENTS_READ":"Read assignments","EVENTS_READ":"Read events, event files and event history","CONTENT_LISTS_READ":"Read content lists and their items"}}}}},"parameters":{"_id":{"name":"_id","in":"path","description":"MongoDB Object ID","required":true,"schema":{"type":"string"}}},"schemas":{"Assignment":{"type":"object","description":"Content assignment","properties":{"_id":{"type":"string"},"type":{"type":"string","enum":["assignment"]},"planning_item":{"type":"string","description":"ID of the linked planning item"},"coverage_item":{"type":"string","description":"ID of the linked coverage"},"scheduled_update_id":{"type":"string","nullable":true},"priority":{"type":"integer"},"accepted":{"type":"boolean"},"assigned_to":{"allOf":[{"$ref":"#/components/schemas/CoverageAssignedTo"}],"description":"Assignment state is stored in assigned_to.state"},"planning":{"$ref":"#/components/schemas/AssignmentPlanning"},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"},"published_at":{"type":"string","format":"date-time","nullable":true},"published_state":{"type":"string","nullable":true},"name":{"type":"string","nullable":true},"description_text":{"type":"string","nullable":true},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"_to_delete":{"type":"boolean"},"_links":{"type":"object","description":"HATEOAS links to related resources","properties":{"planning":{"$ref":"#/components/schemas/HATEOASPlanning"},"event":{"$ref":"#/components/schemas/HATEOASEvent"},"related_events":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASEvent"}},"content":{"type":"array","items":{"$ref":"#/components/schemas/HATEOASContent"}}}}}},"CoverageAssignedTo":{"type":"object","nullable":true,"description":"Assignment and contact information for the coverage","properties":{"assignment_id":{"type":"string","nullable":true},"state":{"type":"string","enum":["draft","assigned","in_progress","completed","submitted","cancelled"]},"contact":{"type":"string","nullable":true},"user":{"type":"string","nullable":true},"desk":{"type":"string","nullable":true},"coverage_provider":{"$ref":"#/components/schemas/CoverageProvider"},"assignor_desk":{"type":"string","nullable":true},"assignor_user":{"type":"string","nullable":true},"assigned_date_desk":{"type":"string","format":"date-time","nullable":true},"assigned_date_user":{"type":"string","format":"date-time","nullable":true},"priority":{"type":"integer","nullable":true}}},"CoverageProvider":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}},"contact_type":{"type":"string","nullable":true}}},"AssignmentPlanning":{"type":"object","description":"Assignment planning snapshot. The due time is planning.scheduled, not a\ntop-level scheduled field. Unlike CoveragePlanning, legacy item_count\nand coverage_provider values are strings.\n","properties":{"scheduled":{"type":"string","format":"date-time","nullable":true},"g2_content_type":{"type":"string","nullable":true},"slugline":{"type":"string","nullable":true},"headline":{"type":"string"},"description_text":{"type":"string","nullable":true},"ednote":{"type":"string","nullable":true},"internal_note":{"type":"string","nullable":true},"keyword":{"type":"array","items":{"type":"string"}},"genre":{"type":"array","items":{"$ref":"#/components/schemas/VocabularyItem"}},"subject":{"type":"array","items":{"type":"object","additionalProperties":true}},"language":{"type":"string","nullable":true},"priority":{"type":"integer","nullable":true},"multiple_content":{"type":"boolean"},"workflow_status_reason":{"type":"string","nullable":true},"coverage_provider":{"type":"string","nullable":true},"contact_info":{"type":"string","nullable":true},"contact":{"type":"string","nullable":true},"item_class":{"type":"string","nullable":true},"item_count":{"type":"string","nullable":true},"files":{"type":"array","items":{"type":"string"}},"xmp_file":{"type":"string","nullable":true},"service":{"type":"array","items":{"$ref":"#/components/schemas/VocabularyItem"}},"news_content_characteristics":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"}}}},"planning_ext_property":{"type":"array","items":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"value":{"type":"string"}}}},"by":{"type":"array","items":{"type":"string"}},"credit_line":{"type":"array","items":{"type":"string"}},"dateline":{"type":"array","items":{"type":"string"}},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"original_creator":{"type":"string","nullable":true},"version_creator":{"type":"string","nullable":true},"firstcreated":{"type":"string","format":"date-time"},"versioncreated":{"type":"string","format":"date-time"}}},"VocabularyItem":{"type":"object","properties":{"qcode":{"type":"string"},"name":{"type":"string"},"translations":{"type":"object","nullable":true,"description":"Field names mapped to language codes and translated values","additionalProperties":{"type":"object","additionalProperties":{"type":"string"}}}}},"NewsCoverageStatus":{"type":"object","nullable":true,"properties":{"qcode":{"type":"string","enum":["ncostat:int","ncostat:notint","ncostat:notdec","ncostat:onreq"]},"name":{"type":"string"},"label":{"type":"string"}}},"HATEOASPlanning":{"type":"object","description":"HATEOAS link to a Planning resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"coverages":{"type":"array","description":"Compact coverage summaries from the linked planning item; not full Coverage records","items":{"$ref":"#/components/schemas/CoverageSummary"}}}},"CoverageSummary":{"type":"object","description":"Compact summary included in _links.plannings[].coverages","properties":{"coverage_id":{"type":"string","nullable":true},"workflow_status":{"type":"string","nullable":true},"news_coverage_status":{"$ref":"#/components/schemas/NewsCoverageStatus"},"g2_content_type":{"type":"string","nullable":true}}},"HATEOASEvent":{"type":"object","description":"HATEOAS link to an Event resource","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"}}},"HATEOASContent":{"type":"object","description":"HATEOAS link to News Content","properties":{"title":{"type":"string"},"href":{"type":"string","description":"URL to the resource item"},"state":{"type":"string","description":"The state of the associated content"},"pubstatus":{"type":"string","description":"The pubstatus of the associated content"}}},"ErrorResponse":{"type":"object","required":["_status","_error"],"properties":{"_status":{"type":"string"},"_error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"integer"},"message":{"type":"string"}}},"_issues":{"type":"object","description":"Optional details about the error","additionalProperties":true}}}},"responses":{"Unauthorized":{"description":"Unauthorized - Invalid or missing access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"Forbidden":{"description":"Forbidden - Access token does not have the required scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"paths":{"/assignments/{_id}":{"get":{"summary":"Get assignment details","description":"Retrieve a specific assignment by its ID","tags":["Assignments"],"parameters":[{"$ref":"#/components/parameters/_id"}],"responses":{"200":{"description":"Assignment details with HATEOAS links","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Assignment"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.superdesk.org/api-reference/readme/assignments.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
