{
 "openapi": "3.0.1",
 "info": {
  "title": "Galeria zdjęć API",
  "version": "2026-10-08",
  "description": "Zdjęcia produktów i innych obiektów: upload, podglądy, operacje masowe.\n\nAdres bazowy: `https://{instancja}-image-gallery-api.enterprise.sellrocket.pl` — `{instancja}` to nazwa Twojej instancji Sellrocket, którą otrzymasz przy jej uruchomieniu.\n\nWszystkie żądania wymagają nagłówka `Authorization: Bearer <token>` — zobacz [Uwierzytelnianie](../../start/uwierzytelnianie/).\n\n**Specyfikacja OpenAPI:** [zdjecia.json](../../specs/zdjecia.json) — do importu w Postmanie/Insomnii lub generowania klienta."
 },
 "servers": [
  {
   "url": "https://{instancja}-image-gallery-api.enterprise.sellrocket.pl",
   "variables": {
    "instancja": {
     "default": "twoja-instancja",
     "description": "Nazwa Twojej instancji Sellrocket"
    }
   }
  }
 ],
 "tags": [
  {
   "name": "Zadania asynchroniczne"
  },
  {
   "name": "Zdjęcia"
  },
  {
   "name": "Dziennik zmian"
  }
 ],
 "paths": {
  "/api/{entityName}/{entityId}": {
   "get": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PicturesResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PicturesResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PicturesResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-entityname-entityid",
    "summary": "Pobierz zdjęcia obiektu",
    "description": "Zwraca zdjęcia przypisane do obiektu (np. produktu) wskazanego typem i identyfikatorem."
   },
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "UploadImages": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/UpdateImageRequest"
          }
         }
        }
       },
       "encoding": {
        "UploadImages": {
         "style": "form"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "415": {
      "description": "Client Error",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-entityname-entityid",
    "summary": "Zaktualizuj zdjęcia obiektu",
    "description": "Dodaje lub podmienia zdjęcia przypisane do obiektu (np. produktu)."
   },
   "delete": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "No Content"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "delete-entityname-entityid",
    "summary": "Usuń wszystkie zdjęcia obiektu"
   }
  },
  "/api/{entityName}/{entityId}/{slot}": {
   "delete": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "slot",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int32"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "No Content"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "404": {
      "description": "Not Found",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "delete-entityname-entityid-slot",
    "summary": "Usuń zdjęcie z wybranej pozycji",
    "description": "Usuwa zdjęcie z podanej pozycji (slotu) w galerii obiektu."
   }
  },
  "/api/{entityName}/{entityId}/preview": {
   "get": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/MiniatureRespone"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/MiniatureRespone"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/MiniatureRespone"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "get-entityname-entityid-preview",
    "summary": "Pobierz miniaturę obiektu",
    "description": "Zwraca miniaturę głównego zdjęcia obiektu, np. do wyświetlania na listach."
   }
  },
  "/api/{entityName}/{entityId}/preview-regenerate": {
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PreviewRegenerateResponse"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PreviewRegenerateResponse"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PreviewRegenerateResponse"
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-entityname-entityid-preview-regenerate",
    "summary": "Wygeneruj ponownie miniaturę obiektu"
   }
  },
  "/api/auditlog": {
   "post": {
    "tags": [
     "Dziennik zmian"
    ],
    "requestBody": {
     "content": {
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "Username": {
          "type": "string"
         },
         "EntityName": {
          "type": "string"
         },
         "EntityId": {
          "type": "string"
         },
         "Action": {
          "type": "string"
         },
         "Slot": {
          "type": "integer",
          "format": "int32"
         },
         "Skip": {
          "type": "integer",
          "format": "int32"
         },
         "Limit": {
          "type": "integer",
          "format": "int32"
         }
        }
       },
       "encoding": {
        "Username": {
         "style": "form"
        },
        "EntityName": {
         "style": "form"
        },
        "EntityId": {
         "style": "form"
        },
        "Action": {
         "style": "form"
        },
        "Slot": {
         "style": "form"
        },
        "Skip": {
         "style": "form"
        },
        "Limit": {
         "style": "form"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AuditLogResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AuditLogResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AuditLogResponse"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "415": {
      "description": "Client Error",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-auditlog",
    "summary": "Pobierz dziennik zmian zdjęć",
    "description": "Zwraca historię zmian w zdjęciach."
   }
  },
  "/api/bulk": {
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/BulkUpdateRequestBodyParameters"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/BulkUpdateRequestBodyParameters"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/BulkUpdateRequestBodyParameters"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "415": {
      "description": "Client Error",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-bulk",
    "summary": "Zaktualizuj zdjęcia wielu obiektów",
    "description": "Zmienia zdjęcia wielu obiektów w jednym żądaniu."
   }
  },
  "/api/bulk-preview": {
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/EntityIdAndSelectorDto"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/EntityIdAndSelectorDto"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/EntityIdAndSelectorDto"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/MiniaturePreviewResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/MiniaturePreviewResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/MiniaturePreviewResponse"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-bulk-preview",
    "summary": "Pobierz miniatury wielu obiektów",
    "description": "Zwraca miniatury dla listy obiektów – operacja odczytu."
   }
  },
  "/api/GetMany/{entityName}": {
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetManyListRequest"
         }
        ]
       }
      },
      "text/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetManyListRequest"
         }
        ]
       }
      },
      "application/*+json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/GetManyListRequest"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PicturesWithIdResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PicturesWithIdResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PicturesWithIdResponse"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-getmany-entityname",
    "summary": "Pobierz zdjęcia wielu obiektów",
    "description": "Zwraca zdjęcia dla listy identyfikatorów obiektów danego typu – operacja odczytu."
   }
  },
  "/api/v2/images/{entityName}/{entityId}/miniatures/{miniatureType}": {
   "get": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "miniatureType",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "stream",
      "in": "query",
      "schema": {
       "type": "boolean",
       "default": true
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-images-entityname-entityid-miniatures-miniaturetype",
    "summary": "Pobierz miniaturę w wybranym rozmiarze",
    "description": "Zwraca miniaturę obiektu danego typu (rozmiaru); parametr stream decyduje o zwróceniu treści pliku."
   }
  },
  "/api/v2/images/miniatures/types": {
   "get": {
    "tags": [
     "Zdjęcia"
    ],
    "responses": {
     "200": {
      "description": "Success"
     }
    },
    "operationId": "get-images-miniatures-types",
    "summary": "Pobierz dostępne typy miniatur"
   }
  },
  "/api/v2/jobs/picture-update/{id}": {
   "get": {
    "tags": [
     "Zadania asynchroniczne"
    ],
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success"
     },
     "404": {
      "description": "Not Found",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "get-jobs-picture-update-id",
    "summary": "Pobierz stan zadania aktualizacji zdjęć",
    "description": "Zwraca status zadania utworzonego przez schedule-update lub schedule-bulk-update."
   }
  },
  "/api/preview-regenerate-many": {
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/PreviewRegenerateManyRequest"
        }
       }
      },
      "text/json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/PreviewRegenerateManyRequest"
        }
       }
      },
      "application/*+json": {
       "schema": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/PreviewRegenerateManyRequest"
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PreviewRegenerateManyResponse"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PreviewRegenerateManyResponse"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PreviewRegenerateManyResponse"
         }
        }
       }
      }
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     },
     "500": {
      "description": "Server Error"
     }
    },
    "operationId": "post-preview-regenerate-many",
    "summary": "Wygeneruj ponownie miniatury wielu obiektów"
   }
  },
  "/api/v2/schedule-bulk-update": {
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "requestBody": {
     "content": {
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "Entities": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/BulkUpdateEntity"
          }
         },
         "ReplaceAll": {
          "type": "boolean"
         }
        }
       },
       "encoding": {
        "Entities": {
         "style": "form"
        },
        "ReplaceAll": {
         "style": "form"
        }
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-schedule-bulk-update",
    "summary": "Zleć aktualizację zdjęć wielu obiektów",
    "description": "Asynchronicznie aktualizuje zdjęcia wielu obiektów; stan sprawdzisz przez /api/jobs/picture-update/{id}. Zalecane przy dużych wolumenach."
   }
  },
  "/api/v2/schedule-update/{entityName}/{entityId}": {
   "post": {
    "tags": [
     "Zdjęcia"
    ],
    "parameters": [
     {
      "name": "entityName",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "entityId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "UploadImages": {
          "type": "array",
          "items": {
           "$ref": "#/components/schemas/UpdateImageRequest"
          }
         }
        }
       },
       "encoding": {
        "UploadImages": {
         "style": "form"
        }
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted"
     },
     "400": {
      "description": "Bad Request",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "post-schedule-update-entityname-entityid",
    "summary": "Zleć aktualizację zdjęć obiektu",
    "description": "Asynchroniczna wersja aktualizacji zdjęć obiektu; stan sprawdzisz przez /api/jobs/picture-update/{id}."
   }
  }
 },
 "components": {
  "schemas": {
   "AuditLogResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "createdAt": {
      "type": "string",
      "format": "date-time"
     },
     "userName": {
      "type": "string",
      "nullable": true
     },
     "entityName": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     },
     "slot": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "action": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BulkUpdateEntity": {
    "type": "object",
    "properties": {
     "entityName": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     },
     "pictures": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/BulkUpdatePicture"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BulkUpdatePicture": {
    "type": "object",
    "properties": {
     "slot": {
      "type": "integer",
      "format": "int32"
     },
     "imageFile": {
      "type": "string",
      "format": "binary",
      "nullable": true
     },
     "imageLink": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BulkUpdateRequestBodyParameters": {
    "type": "object",
    "properties": {
     "entities": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/BulkUpdateEntity"
      },
      "nullable": true
     },
     "replaceAll": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "EntityIdAndSelectorDto": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true
     },
     "selector": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "GetManyListRequest": {
    "type": "object",
    "properties": {
     "ids": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "MiniaturePreviewResponse": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string",
      "nullable": true
     },
     "selector": {
      "type": "string",
      "nullable": true
     },
     "smallUrl": {
      "type": "string",
      "nullable": true
     },
     "miniUrl": {
      "type": "string",
      "nullable": true
     },
     "originalCompressedUrl": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "MiniatureRespone": {
    "type": "object",
    "properties": {
     "smallUrl": {
      "type": "string",
      "nullable": true
     },
     "miniUrl": {
      "type": "string",
      "nullable": true
     },
     "originalCompressedUrl": {
      "type": "string",
      "nullable": true
     },
     "entityName": {
      "type": "string",
      "nullable": true
     },
     "entityIdentifier": {
      "type": "string",
      "nullable": true
     },
     "slot": {
      "type": "integer",
      "format": "int32"
     }
    },
    "additionalProperties": false
   },
   "PictureResponse": {
    "type": "object",
    "properties": {
     "slot": {
      "type": "integer",
      "format": "int32"
     },
     "url": {
      "type": "string",
      "nullable": true
     },
     "type": {
      "type": "string",
      "nullable": true
     },
     "extension": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PicturesResponse": {
    "type": "object",
    "properties": {
     "pictures": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PictureResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PicturesWithIdResponse": {
    "type": "object",
    "properties": {
     "entityId": {
      "type": "string",
      "nullable": true
     },
     "pictures": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PictureResponse"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PreviewRegenerateManyRequest": {
    "type": "object",
    "properties": {
     "entityName": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PreviewRegenerateManyResponse": {
    "type": "object",
    "properties": {
     "entityName": {
      "type": "string",
      "nullable": true
     },
     "entityId": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Status"
       }
      ]
     },
     "message": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PreviewRegenerateResponse": {
    "type": "object",
    "properties": {
     "status": {
      "allOf": [
       {
        "$ref": "#/components/schemas/Status"
       }
      ]
     },
     "message": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "ProblemDetails": {
    "type": "object",
    "properties": {
     "type": {
      "type": "string",
      "nullable": true
     },
     "title": {
      "type": "string",
      "nullable": true
     },
     "status": {
      "type": "integer",
      "format": "int32",
      "nullable": true
     },
     "detail": {
      "type": "string",
      "nullable": true
     },
     "instance": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": {}
   },
   "Status": {
    "enum": [
     0,
     1
    ],
    "type": "integer",
    "format": "int32"
   },
   "UpdateImageRequest": {
    "type": "object",
    "properties": {
     "slot": {
      "type": "integer",
      "format": "int32"
     },
     "imageFile": {
      "type": "string",
      "format": "binary",
      "nullable": true
     },
     "imageLink": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   }
  },
  "securitySchemes": {
   "Bearer": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "JWT",
    "description": "Token API wygenerowany w panelu Sellrocket."
   }
  }
 },
 "security": [
  {
   "Bearer": []
  }
 ]
}