Content: Media (internal)

Update selected fields of a batch of objects

Allows you to update up to 100 objects of Media (internal) type. <br />

patch/api/v1/content/_media/batch

Request

  • Base URL: https://api.flotiq.com
  • URL: https://api.flotiq.com/api/v1/content/_media/batch
  • Auth: API key in header X-AUTH-TOKEN

Request body

idstring required

Unique ID of the object

altstring
urlstring required
sizenumber required
typestring required
titlestring
widthnumber
heightnumber
sourcestring required
fileNamestring required
mimeTypestring required
extensionstring required
externalIdstring

Example request

[
  {
    "id": "_media-698d20aa-193a-47b3-be4d-550c1aab47e7",
    "extension": "png",
    "fileName": "example_image.png",
    "mimeType": "image/png",
    "size": 87258,
    "type": "image",
    "source": "disk",
    "tags": [
      {
        "dataUrl": "/api/v1/content/_tag/_tag-641775",
        "type": "internal"
      }
    ],
    "variants": [
      {
        "name": "square",
        "trim": {
          "top": 10,
          "right": 10,
          "bottom": 10,
          "left": 10,
          "width": 10,
          "height": 10
        }
      }
    ],
    "externalId": "",
    "url": "/image/0x0/_media-698d20aa-193a-47b3-be4d-550c1aab47e7.png",
    "height": 517,
    "width": 925
  }
]

Response

OK

batch_total_countnumber
batch_success_countnumber
batch_error_countnumber
errorsobject[]

Example response

{
  "batch_total_count": 2,
  "batch_success_count": 2,
  "batch_error_count": 0,
  "errors": []
}

Changes

No recorded changes to this operation across all 1 revision of this API.