For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update Gallery Items

Replace the full media list of a gallery: items omitted from the list are removed.

Read the existing gallery first. Check the replacement rules below before sending a partial list or localized value.

Behaviour

Each item is stored as sent, so include every field you want to keep (e.g.

caption, loop, autoplay) — omitting one clears it.

Array order is the display order.

Send an empty list to clear the gallery.

The name, description and columns are preserved.

Requires the galleries:write scope.

put
Authorizations
AuthorizationstringRequired

API key sent as a bearer token (mk_live_… / mk_test_…).

Path parameters
galleryIdstringRequired

Gallery identifier (GALL-).

Example: GALL-123e4567-e89b-12d3-a456-426614174000Pattern: ^GALL-[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Body

Data schema used by Update Gallery Items (PUT /v1/galleries/{galleryId}/items). Read that operation for usage, permissions and update rules. Required fields and allowed values are defined below; request and response shapes can differ.

Responses
200

Successful response.

application/json
put/v1/galleries/{galleryId}/items
PUT /v1/galleries/{galleryId}/items HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 670

{
  "items": [
    {
      "id": "dd6b3644-4e56-4ccc-ac34-f8abca595a7f",
      "mediaType": "IMAGE",
      "mediaSource": "MEDIA_LIBRARY",
      "caption": {
        "en": "Front view"
      },
      "fileId": "dd6b3644-4e56-4ccc-ac34-f8abca595a7f",
      "filePath": "c_rmE/dd6b3644-4e56-4ccc-ac34-f8abca595a7f.jpg"
    },
    {
      "id": "13421ebc-8888-45db-b40d-b5180d803aba",
      "mediaType": "VIDEO",
      "mediaSource": "CUSTOM",
      "caption": {
        "en": "Promo"
      },
      "url": "https://www.youtube.com/watch?v=VIDEO_ID",
      "autoplay": true,
      "loop": true
    },
    {
      "id": "8f6c9ac0-2686-455c-9e93-93a5199f289c",
      "mediaType": "VIDEO",
      "mediaSource": "MEDIA_LIBRARY",
      "fileId": "4391d4d0-e42d-4d6c-81ba-1a7f4936f679",
      "filePath": "c_rmE/4391d4d0-e42d-4d6c-81ba-1a7f4936f679.mov",
      "autoplay": false,
      "loop": false
    }
  ]
}
{
  "data": {
    "galleryId": "GALL-123e4567-e89b-12d3-a456-426614174000",
    "name": "Chair",
    "numberOfItems": 1,
    "createdAt": "text",
    "modifiedAt": "text",
    "description": "Chair",
    "numColumns": "text",
    "items": [
      {
        "id": "text",
        "mediaType": "IMAGE",
        "mediaSource": "CUSTOM",
        "caption": "Chair",
        "fileId": "text",
        "filePath": "text",
        "url": "text",
        "loop": true,
        "autoplay": true
      }
    ]
  }
}

Last updated

Was this helpful?