{
 "openapi": "3.0.1",
 "info": {
  "title": "Drukowanie API",
  "version": "2026-10-08",
  "description": "Wysyłanie wydruków i etykiet bezpośrednio na drukarki (CloudPrint).\n\nAdres bazowy: `https://{instancja}-cloudprint-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:** [drukowanie.json](../../specs/drukowanie.json) — do importu w Postmanie/Insomnii lub generowania klienta."
 },
 "servers": [
  {
   "url": "https://{instancja}-cloudprint-api.enterprise.sellrocket.pl",
   "variables": {
    "instancja": {
     "default": "twoja-instancja",
     "description": "Nazwa Twojej instancji Sellrocket"
    }
   }
  }
 ],
 "tags": [
  {
   "name": "Konto"
  },
  {
   "name": "Drukowanie"
  }
 ],
 "paths": {
  "/api/v2/accounts": {
   "put": {
    "tags": [
     "Konto"
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/UpdateAccountRequestV2DTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/Account"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Account"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/Account"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "put-accounts",
    "summary": "Zaktualizuj połączenie z usługą druku"
   }
  },
  "/api/v2/accounts/{connectionId}": {
   "get": {
    "tags": [
     "Konto"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/Account"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Account"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/Account"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "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"
        }
       }
      }
     }
    },
    "operationId": "get-accounts-connectionid",
    "summary": "Pobierz połączenie z usługą druku",
    "description": "Zwraca konfigurację połączenia; dane uwierzytelniające są maskowane."
   },
   "delete": {
    "tags": [
     "Konto"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "application/json": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       },
       "text/json": {
        "schema": {
         "type": "integer",
         "format": "int32"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/ProblemDetails"
        }
       }
      }
     }
    },
    "operationId": "delete-accounts-connectionid",
    "summary": "Usuń połączenie z usługą druku"
   }
  },
  "/api/v2/printing/printers": {
   "get": {
    "tags": [
     "Drukowanie"
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Printer"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Printer"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Printer"
         }
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "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"
        }
       }
      }
     }
    },
    "operationId": "get-printing-printers",
    "summary": "Pobierz listę wszystkich drukarek",
    "description": "Zwraca drukarki ze wszystkich połączeń z usługą druku."
   }
  },
  "/api/v2/printing/printers/{connectionId}": {
   "get": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Printer"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Printer"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Printer"
         }
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "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"
        }
       }
      }
     }
    },
    "operationId": "get-printing-printers-connectionid",
    "summary": "Pobierz drukarki połączenia",
    "description": "Zwraca drukarki dostępne w danym połączeniu."
   }
  },
  "/api/v1/printing/printers/{connectionId}": {
   "put": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     }
    ],
    "responses": {
     "202": {
      "description": "Accepted"
     }
    },
    "operationId": "put-printing-printers-connectionid",
    "summary": "Odśwież listę drukarek połączenia",
    "description": "Pobiera aktualną listę drukarek z usługi druku i zapisuje ją w Sellrocket."
   }
  },
  "/api/v1/printing/printers/byName": {
   "get": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "name",
      "in": "query",
      "style": "form",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/Printer"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Printer"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/Printer"
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "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"
        }
       }
      }
     }
    },
    "operationId": "get-printing-printers-byname",
    "summary": "Znajdź drukarkę po nazwie"
   }
  },
  "/api/v1/printing/printjob/{connectionId}/{printerId}": {
   "post": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "printerId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "platformOrderId",
      "in": "query",
      "style": "form",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddPrintJobRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       }
      }
     }
    },
    "operationId": "post-printing-printjob-connectionid-printerid",
    "summary": "Wyślij dokument do druku",
    "description": "Tworzy zadanie wydruku przesłanego dokumentu na wskazanej drukarce; opcjonalnie wiąże je z zamówieniem (platformOrderId)."
   }
  },
  "/api/v1/printing/printjob/renderPdf/{connectionId}/{printerId}": {
   "post": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "printerId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "platformOrderId",
      "in": "query",
      "style": "form",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddPrintJobFromRendererRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       }
      }
     }
    },
    "operationId": "post-printing-printjob-renderpdf-connectionid-printerid",
    "summary": "Wydrukuj dokument wygenerowany z szablonu",
    "description": "Generuje PDF z szablonu i od razu wysyła go na drukarkę, np. do automatycznego wydruku dokumentów zamówienia."
   }
  },
  "/api/v1/printing/printjob/renderPdfGeneric/{connectionId}/{printerId}": {
   "post": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "printerId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "platformOrderId",
      "in": "query",
      "style": "form",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/Dto"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       }
      }
     }
    },
    "operationId": "post-printing-printjob-renderpdfgeneric-connectionid-printerid",
    "summary": "Wydrukuj dokument z szablonu (wariant ogólny)",
    "description": "Generuje dokument z szablonu na podstawie ogólnego żądania renderowania i wysyła go na drukarkę."
   }
  },
  "/api/v1/printing/printjobFromBlob/{connectionId}/{printerId}": {
   "post": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "connectionId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "printerId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "integer",
       "format": "int64"
      }
     },
     {
      "name": "platformOrderId",
      "in": "query",
      "style": "form",
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "allOf": [
         {
          "$ref": "#/components/schemas/AddPrintJobFromBlobRequestDTO"
         }
        ]
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted",
      "content": {
       "text/plain": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       },
       "text/json": {
        "schema": {
         "$ref": "#/components/schemas/PrintJob"
        }
       }
      }
     }
    },
    "operationId": "post-printing-printjobfromblob-connectionid-printerid",
    "summary": "Wydrukuj zapisany wcześniej plik",
    "description": "Wysyła na drukarkę plik zapisany wcześniej w magazynie plików, np. wynik /api/Renderer/RenderPdfToBlob."
   }
  },
  "/api/v1/printing/printjobs/byPlatformOrderId/{platformOrderId}": {
   "get": {
    "tags": [
     "Drukowanie"
    ],
    "parameters": [
     {
      "name": "platformOrderId",
      "in": "path",
      "required": true,
      "style": "simple",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "Success",
      "content": {
       "text/plain": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PrintJob"
         }
        }
       },
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PrintJob"
         }
        }
       },
       "text/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/PrintJob"
         }
        }
       }
      }
     },
     "401": {
      "description": "Unauthorized",
      "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"
        }
       }
      }
     }
    },
    "operationId": "get-printing-printjobs-byplatformorderid-platformorderid",
    "summary": "Pobierz zadania wydruku dla zamówienia",
    "description": "Zwraca zadania wydruku powiązane z danym zamówieniem."
   }
  }
 },
 "components": {
  "schemas": {
   "Account": {
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "type": "string",
      "nullable": true
     },
     "token": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AddPrintJobFromBlobRequestDTO": {
    "type": "object",
    "properties": {
     "binaryBlob": {
      "allOf": [
       {
        "$ref": "#/components/schemas/BinaryBlob"
       }
      ],
      "nullable": true
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "AddPrintJobFromRendererRequestDTO": {
    "required": [
     "fileName",
     "templateId"
    ],
    "type": "object",
    "properties": {
     "templateId": {
      "type": "integer",
      "format": "int64"
     },
     "objects": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ObjectsDataRequest"
       }
      ],
      "nullable": true
     },
     "fileName": {
      "minLength": 1,
      "type": "string"
     }
    },
    "additionalProperties": false
   },
   "AddPrintJobRequestDTO": {
    "type": "object",
    "properties": {
     "baseUri": {
      "type": "string",
      "nullable": true
     },
     "path": {
      "type": "string",
      "nullable": true
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "BinaryBlob": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string",
      "nullable": true
     },
     "contentType": {
      "type": "string",
      "nullable": true
     },
     "data": {
      "type": "string",
      "format": "byte",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "Dto": {
    "type": "object",
    "properties": {
     "baseUri": {
      "type": "string",
      "nullable": true
     },
     "pdfPath": {
      "type": "string",
      "nullable": true
     },
     "payload": {}
    },
    "additionalProperties": false
   },
   "JsonNode": {
    "type": "object",
    "properties": {
     "options": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNodeOptions"
       }
      ],
      "nullable": true,
      "readOnly": true
     },
     "parent": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true,
      "readOnly": true
     },
     "root": {
      "allOf": [
       {
        "$ref": "#/components/schemas/JsonNode"
       }
      ],
      "nullable": true,
      "readOnly": true
     }
    },
    "additionalProperties": false
   },
   "JsonNodeOptions": {
    "type": "object",
    "properties": {
     "propertyNameCaseInsensitive": {
      "type": "boolean"
     }
    },
    "additionalProperties": false
   },
   "ObjectTypeEnum": {
    "enum": [
     "Order",
     "Connection",
     "LineItem",
     "LineItems",
     "EmailTemplate"
    ],
    "type": "string"
   },
   "ObjectsDataRequest": {
    "type": "object",
    "properties": {
     "type": {
      "allOf": [
       {
        "$ref": "#/components/schemas/ObjectTypeEnum"
       }
      ]
     },
     "ids": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "PrintJob": {
    "type": "object",
    "properties": {
     "title": {
      "type": "string",
      "nullable": true
     },
     "contentType": {
      "type": "string",
      "nullable": true
     },
     "state": {
      "type": "string",
      "nullable": true
     },
     "lastStateChangeTimestamp": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "printAttempt": {
      "type": "integer",
      "format": "int64"
     },
     "printRetries": {
      "type": "integer",
      "format": "int64"
     },
     "cpPrintJobId": {
      "type": "integer",
      "format": "int64",
      "nullable": true
     },
     "baseUri": {
      "type": "string",
      "nullable": true
     },
     "path": {
      "type": "string",
      "nullable": true
     },
     "connectionId": {
      "type": "integer",
      "format": "int64"
     },
     "printerId": {
      "type": "integer",
      "format": "int64"
     },
     "passThroughCommandData": {
      "type": "object",
      "additionalProperties": {
       "$ref": "#/components/schemas/JsonNode"
      },
      "nullable": true
     },
     "platformOrderId": {
      "type": "string",
      "nullable": true
     },
     "downloadMethod": {
      "type": "string",
      "nullable": true
     },
     "createdAt": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "requestedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     },
     "printedAtUtc": {
      "type": "string",
      "format": "date-time",
      "nullable": true
     }
    },
    "additionalProperties": false
   },
   "Printer": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer",
      "format": "int64"
     },
     "connectionId": {
      "type": "integer",
      "format": "int64"
     },
     "cpPrinterId": {
      "type": "integer",
      "format": "int64"
     },
     "cpUserId": {
      "type": "integer",
      "format": "int64"
     },
     "printerName": {
      "type": "string",
      "nullable": true
     },
     "computerName": {
      "type": "string",
      "nullable": true
     },
     "isEnabled": {
      "type": "boolean"
     },
     "visibility": {
      "allOf": [
       {
        "$ref": "#/components/schemas/PrinterVisibilityEnum"
       }
      ]
     }
    },
    "additionalProperties": false
   },
   "PrinterVisibilityEnum": {
    "enum": [
     "Listed",
     "Unlisted"
    ],
    "type": "string"
   },
   "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": {}
   },
   "UpdateAccountRequestV2DTO": {
    "required": [
     "connectionId",
     "name"
    ],
    "type": "object",
    "properties": {
     "connectionId": {
      "type": "integer",
      "format": "int64"
     },
     "name": {
      "minLength": 1,
      "type": "string"
     },
     "token": {
      "type": "string",
      "nullable": true
     }
    },
    "additionalProperties": false
   }
  },
  "securitySchemes": {
   "Bearer": {
    "type": "http",
    "scheme": "bearer",
    "bearerFormat": "JWT",
    "description": "Token API wygenerowany w panelu Sellrocket."
   }
  }
 },
 "security": [
  {
   "Bearer": []
  }
 ]
}