Data Manager

Post actions

Perform a Data Manager action with the selected tasks and filters. Note: More complex actions require additional parameters in the request body. Call GET api/actions?project=<id> to explore them. <br>Example: GET api/actions?id=delete_tasks&project=1

post/api/dm/actions/

Query parameters

id'delete_annotators' | 'delete_ground_truths' | 'delete_reviewers' | 'delete_tasks' | 'delete_tasks_annotations' | 'delete_tasks_predictions' | 'delete_tasks_reviews' | 'predictions_to_annotations' | 'remove_duplicates' | 'retrieve_tasks_predictions' required

Action name ID, see the full list of actions in the GET api/actions request

projectinteger required

Project ID

viewinteger

View ID (optional, it has higher priority than filters, selectedItems and ordering from the request body payload)

Request body

orderingstring[]

List of fields to order by. Fields are similar to filters but without the filter: prefix. To reverse the order, add a minus sign before the field name, e.g. -tasks:created_at.

Example request

{
  "filters": {
    "items": [
      {
        "filter": "filter:tasks:id",
        "operator": "greater",
        "type": "Number",
        "value": 123
      }
    ]
  }
}

Response

Action performed successfully

Changes

Changed in 3 of the 97 revisions of this API.428

  • e1ba2ecdbabb425See the full diff
    • added PrepareParamsFiltersRequest to the filters request property allOf list

      request-property-all-of-added

    • added PrepareParamsOrderingRequest to the ordering request property allOf list

      request-property-all-of-added

    • the filters request property type/format changed from object/ to /

      request-property-type-changed

    • the ordering request property type/format changed from array/ to /

      request-property-type-changed

    • removed the request property filters/conjunction

      request-property-removed

    • removed the request property filters/items

      request-property-removed

    • added the media type application/x-www-form-urlencoded to the request body

      request-body-media-type-added

    • added the media type multipart/form-data to the request body

      request-body-media-type-added

    • the request property filters became nullable

      request-property-became-nullable

    • the request property ordering became nullable

      request-property-became-nullable

    • the request property selectedItems became nullable

      request-property-became-nullable

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property filters/items/items/child_filters

      new-optional-request-property

    • added the new in_list enum value to the request property filters/items/items/operator

      request-property-enum-value-added

    • added the new not_in_list enum value to the request property filters/items/items/operator

      request-property-enum-value-added

Of the 97 revisions, 1 has no diff computed.