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

Add or Update Gallery Items

Add or update media items without re-sending the whole list.

Use this to add the supplied members without submitting the entire existing list. Review how matching IDs are handled below.

Behaviour

An item whose id is already in the gallery replaces that item where it stands (a submitted item is stored as sent, so omitted optional fields are cleared); the rest are appended in the order given.

Items you do not send are left exactly as stored, captions in every language included.

Requires the galleries:write scope.

post
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 Add or Update Gallery Items (POST /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
post/v1/galleries/{galleryId}/items
POST /v1/galleries/{galleryId}/items HTTP/1.1
Host: admin.mimeeqapi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 201

{
  "items": [
    {
      "id": "text",
      "mediaType": "IMAGE",
      "mediaSource": "CUSTOM",
      "caption": {
        "en": "A caption",
        "de": "Eine Bildunterschrift"
      },
      "fileId": "text",
      "filePath": "text",
      "url": "text",
      "loop": true,
      "autoplay": true
    }
  ]
}
{
  "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?