Link relation taxonomies:update-entry-bulk

Overview

A bulk call to update a set of entries of the taxonomy.

HTTP method

PATCH

URI template variables

-

Query parameters

-

Request body

A JSON array. Each item of the array is a taxonomies:entry resource with the information you want to set.

Example body for two entries of an MediaCentral |Example body for two entries of an MediaCentral \

Asset Management legal list:

[
  {
    "id": "17",
    "labels": {
      "en": "New label for entry 17"
    },
    "attributes": [
      {
        "name": "index",
        "value": 3
      }
    ]
  },
  {
    "id": "42",
    "labels": {
      "en": "New label for entry 42"
    }
  }
]

HTTP response

200 OK

Response body

An array with one result entry for each given entry. For each successfully handled entry, the result entry contains:

For each requested entry that caused an error:

  • success: false

  • httpStatus: same response code as for the taxonomies:entry-by-entryid link rel. Typical example: 404 (Not Found).

  • errorCode (string, optional): machine-readable error code that the non-bulk call would return for this item

  • errorMessage (optional, string): human-readable error message that the non-bulk call would return for this item

Example response if only the first item exists (abbreviated):

[
  {
    "success": true,
    "data": {
      "id": "17",
      "labels": {
        "en": "New label for entry 17"
      },
      "attributes": [
        {
          "name": "index",
          "value": 3
        }
      ],
      "_links": { ... }
    }
  },
  {
    "success": false,
    "httpStatus": 404,
    "errorCode": "avid.mam.assets.access/NOT_FOUND",
    "errorMessage": "entry with ID 42 not found"
  }
]

Available in

Description

A bulk call to update a set of entries of the taxonomy.