> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/eksploatacja-aplikacji/eximee-api/case-repository-api.md).

# Case Repository API

## POST /v1

> Tworzy status sprawy

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"CreateStatusRequest":{"type":"object","properties":{"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseType","client","clientType","status","businessKey"]},"CaseStatusResponse":{"type":"object","properties":{"caseId":{"type":"string","description":"unikalny identyfikator sprawy"},"creationDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas utworzenia statusu sprawy"},"updateDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas ostatniej aktualizacji statusu sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"}}},"ErrorResponse":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string","description":"opis błędu"}},"required":["code","message"]}}},"paths":{"/v1":{"post":{"tags":["Case Status"],"operationId":"createStatus","summary":"Tworzy status sprawy","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStatusRequest"}}}},"responses":{"200":{"description":"Utworzony status sprawy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseStatusResponse"}}}},"400":{"description":"Niepoprawne dane wejściowe.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Brak lub niepoprawne uwierzytelnienie."},"403":{"description":"Brak uprawnień."},"500":{"description":"Błąd wewnętrzny serwera."}}}}}}
```

## GET /v1

> Pobiera status sprawy po caseId

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"CaseStatusResponse":{"type":"object","properties":{"caseId":{"type":"string","description":"unikalny identyfikator sprawy"},"creationDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas utworzenia statusu sprawy"},"updateDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas ostatniej aktualizacji statusu sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"}}}}},"paths":{"/v1":{"get":{"tags":["Case Status"],"operationId":"getStatus","summary":"Pobiera status sprawy po caseId","parameters":[{"in":"query","name":"caseId","required":true,"description":"unikalny identyfikator sprawy.","schema":{"type":"string"}}],"responses":{"200":{"description":"Status sprawy.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseStatusResponse"}}}},"400":{"description":"Niepoprawne dane wejściowe."},"401":{"description":"Brak lub niepoprawne uwierzytelnienie."},"403":{"description":"Brak uprawnień."},"404":{"description":"Nie znaleziono sprawy."},"500":{"description":"Błąd wewnętrzny serwera."}}}}}}
```

## PATCH /v1

> Aktualizuje status sprawy po caseId

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"UpdateStatusRequest":{"type":"object","properties":{"caseId":{"type":"string","nullable":true,"description":"unikalny identyfikator sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseId"]}}},"paths":{"/v1":{"patch":{"tags":["Case Status"],"operationId":"updateStatus","summary":"Aktualizuje status sprawy po caseId","parameters":[{"in":"query","name":"caseId","required":true,"description":"unikalny identyfikator sprawy.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStatusRequest"}}}},"responses":{"204":{"description":"Zaktualizowano."},"400":{"description":"Niepoprawne dane wejściowe."},"401":{"description":"Brak lub niepoprawne uwierzytelnienie."},"403":{"description":"Brak uprawnień."},"404":{"description":"Nie znaleziono sprawy."},"500":{"description":"Błąd wewnętrzny serwera."}}}}}}
```

## DELETE /v1

> Usuwa status sprawy po caseId

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}}},"paths":{"/v1":{"delete":{"tags":["Case Status"],"operationId":"deleteStatus","summary":"Usuwa status sprawy po caseId","parameters":[{"in":"query","name":"caseId","required":true,"description":"unikalny identyfikator sprawy.","schema":{"type":"string"}}],"responses":{"204":{"description":"Usunięto."},"400":{"description":"Niepoprawne dane wejściowe."},"401":{"description":"Brak lub niepoprawne uwierzytelnienie."},"403":{"description":"Brak uprawnień."},"404":{"description":"Nie znaleziono sprawy."},"500":{"description":"Błąd wewnętrzny serwera."}}}}}}
```

## POST /v1/search

> Wyszukuje statusy spraw

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"SearchStatusRequest":{"type":"object","properties":{"caseTypes":{"type":"array","items":{"type":"string"},"description":"filtr po typie sprawy"},"statuses":{"type":"array","items":{"type":"string"},"description":"filtr po statusie sprawy"},"clientId":{"type":"string","nullable":true,"description":"filtr po identyfikatorze klienta"},"clientType":{"type":"string","description":"filtr po typie klienta","nullable":true},"createdDate":{"$ref":"#/components/schemas/TimeFilter"},"updatedDate":{"$ref":"#/components/schemas/TimeFilter"},"pageSize":{"description":"liczba wyników na stronę","type":"integer","format":"int32"},"page":{"type":"integer","format":"int32","description":"numer strony"},"sortBy":{"type":"string","nullable":true,"description":"pole do sortowania (np. creationDate, updateDate)"},"sortDirection":{"type":"string","nullable":true,"description":"kierunek sortowania (ASC lub DESC)"}},"required":["page","pageSize"]},"TimeFilter":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}},"CaseSearchResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32","description":"numer strony wyników"},"pageSize":{"type":"integer","format":"int32","description":"liczba wyników na stronę"},"count":{"type":"integer","format":"int32","description":"łączna liczba znalezionych wyników"},"statuses":{"type":"array","description":"lista statusów spraw spełniających kryteria wyszukiwania","items":{"$ref":"#/components/schemas/CaseStatusResponse"}}}},"CaseStatusResponse":{"type":"object","properties":{"caseId":{"type":"string","description":"unikalny identyfikator sprawy"},"creationDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas utworzenia statusu sprawy"},"updateDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas ostatniej aktualizacji statusu sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"}}}}},"paths":{"/v1/search":{"post":{"tags":["Case Status"],"operationId":"searchStatus","summary":"Wyszukuje statusy spraw","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchStatusRequest"}}}},"responses":{"200":{"description":"Wynik wyszukiwania.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseSearchResponse"}}}},"400":{"description":"Niepoprawne dane wejściowe."},"401":{"description":"Brak lub niepoprawne uwierzytelnienie."},"403":{"description":"Brak uprawnień."},"500":{"description":"Błąd wewnętrzny serwera."}}}}}}
```

## POST /v1/batch

> Tworzy statusy spraw w paczce

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"BatchCreateStatusRequest":{"type":"object","properties":{"statuses":{"type":"array","description":"lista statusów spraw do utworzenia","items":{"$ref":"#/components/schemas/CreateStatusRequest"}}}},"CreateStatusRequest":{"type":"object","properties":{"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseType","client","clientType","status","businessKey"]},"BatchOperationResponse":{"type":"object","properties":{"updated":{"type":"integer","format":"int64","description":"liczba pomyślnie utworzonych/zmodyfikowanych/usuniętych statusów spraw"},"errors":{"type":"array","description":"lista błędów dla poszczególnych spraw, które nie zostały poprawnie utworzone/zmodyfikowane/usunięte","items":{"$ref":"#/components/schemas/BatchOperationError"}}}},"BatchOperationError":{"type":"object","properties":{"caseId":{"type":"string","description":"identyfikator sprawy, dla której wystąpił błąd"},"errorCode":{"type":"string","enum":["CASE_NOT_FOUND","VALIDATION_ERROR","UNKNOWN_ERROR"]},"errorMessage":{"type":"string","description":"opis błędu"}}}}},"paths":{"/v1/batch":{"post":{"tags":["Case Status"],"operationId":"createStatuses","summary":"Tworzy statusy spraw w paczce","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCreateStatusRequest"}}}},"responses":{"200":{"description":"Wynik operacji paczkowej.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOperationResponse"}}}}}}}}}
```

## PATCH /v1/batch

> Aktualizuje statusy spraw w paczce

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"BatchUpdateStatusRequest":{"type":"object","properties":{"statuses":{"type":"array","description":"lista statusów spraw do aktualizacji","items":{"$ref":"#/components/schemas/UpdateStatusRequest"}}}},"UpdateStatusRequest":{"type":"object","properties":{"caseId":{"type":"string","nullable":true,"description":"unikalny identyfikator sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseId"]},"BatchOperationResponse":{"type":"object","properties":{"updated":{"type":"integer","format":"int64","description":"liczba pomyślnie utworzonych/zmodyfikowanych/usuniętych statusów spraw"},"errors":{"type":"array","description":"lista błędów dla poszczególnych spraw, które nie zostały poprawnie utworzone/zmodyfikowane/usunięte","items":{"$ref":"#/components/schemas/BatchOperationError"}}}},"BatchOperationError":{"type":"object","properties":{"caseId":{"type":"string","description":"identyfikator sprawy, dla której wystąpił błąd"},"errorCode":{"type":"string","enum":["CASE_NOT_FOUND","VALIDATION_ERROR","UNKNOWN_ERROR"]},"errorMessage":{"type":"string","description":"opis błędu"}}}}},"paths":{"/v1/batch":{"patch":{"tags":["Case Status"],"operationId":"updateStatuses","summary":"Aktualizuje statusy spraw w paczce","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchUpdateStatusRequest"}}}},"responses":{"200":{"description":"Wynik operacji paczkowej.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOperationResponse"}}}}}}}}}
```

## DELETE /v1/batch

> Usuwa statusy spraw w paczce

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"tags":[{"name":"Case Status"}],"servers":[{"url":"https://{host}/api/case-repository","variables":{"host":{"default":"localhost:8080"}}}],"security":[{"basicAuth":[]}],"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic"}},"schemas":{"BatchDeleteStatusRequest":{"type":"object","properties":{"caseIds":{"type":"array","description":"lista identyfikatorów spraw do usunięcia","items":{"type":"string"}}}},"BatchOperationResponse":{"type":"object","properties":{"updated":{"type":"integer","format":"int64","description":"liczba pomyślnie utworzonych/zmodyfikowanych/usuniętych statusów spraw"},"errors":{"type":"array","description":"lista błędów dla poszczególnych spraw, które nie zostały poprawnie utworzone/zmodyfikowane/usunięte","items":{"$ref":"#/components/schemas/BatchOperationError"}}}},"BatchOperationError":{"type":"object","properties":{"caseId":{"type":"string","description":"identyfikator sprawy, dla której wystąpił błąd"},"errorCode":{"type":"string","enum":["CASE_NOT_FOUND","VALIDATION_ERROR","UNKNOWN_ERROR"]},"errorMessage":{"type":"string","description":"opis błędu"}}}}},"paths":{"/v1/batch":{"delete":{"tags":["Case Status"],"operationId":"deleteStatuses","summary":"Usuwa statusy spraw w paczce","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDeleteStatusRequest"}}}},"responses":{"200":{"description":"Wynik operacji paczkowej.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchOperationResponse"}}}}}}}}}
```

## The CreateStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"CreateStatusRequest":{"type":"object","properties":{"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseType","client","clientType","status","businessKey"]}}}}
```

## The GetStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"GetStatusRequest":{"type":"object","properties":{"caseId":{"type":"string","description":"unikalny identyfikator sprawy"}},"required":["caseId"]}}}}
```

## The UpdateStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"UpdateStatusRequest":{"type":"object","properties":{"caseId":{"type":"string","nullable":true,"description":"unikalny identyfikator sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseId"]}}}}
```

## The DeleteStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"DeleteStatusRequest":{"type":"object","properties":{"caseId":{"type":"string","description":"unikalny identyfikator sprawy"}},"required":["caseId"]}}}}
```

## The BatchCreateStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"BatchCreateStatusRequest":{"type":"object","properties":{"statuses":{"type":"array","description":"lista statusów spraw do utworzenia","items":{"$ref":"#/components/schemas/CreateStatusRequest"}}}},"CreateStatusRequest":{"type":"object","properties":{"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseType","client","clientType","status","businessKey"]}}}}
```

## The BatchUpdateStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"BatchUpdateStatusRequest":{"type":"object","properties":{"statuses":{"type":"array","description":"lista statusów spraw do aktualizacji","items":{"$ref":"#/components/schemas/UpdateStatusRequest"}}}},"UpdateStatusRequest":{"type":"object","properties":{"caseId":{"type":"string","nullable":true,"description":"unikalny identyfikator sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"}},"required":["caseId"]}}}}
```

## The BatchDeleteStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"BatchDeleteStatusRequest":{"type":"object","properties":{"caseIds":{"type":"array","description":"lista identyfikatorów spraw do usunięcia","items":{"type":"string"}}}}}}}
```

## The SearchStatusRequest object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"SearchStatusRequest":{"type":"object","properties":{"caseTypes":{"type":"array","items":{"type":"string"},"description":"filtr po typie sprawy"},"statuses":{"type":"array","items":{"type":"string"},"description":"filtr po statusie sprawy"},"clientId":{"type":"string","nullable":true,"description":"filtr po identyfikatorze klienta"},"clientType":{"type":"string","description":"filtr po typie klienta","nullable":true},"createdDate":{"$ref":"#/components/schemas/TimeFilter"},"updatedDate":{"$ref":"#/components/schemas/TimeFilter"},"pageSize":{"description":"liczba wyników na stronę","type":"integer","format":"int32"},"page":{"type":"integer","format":"int32","description":"numer strony"},"sortBy":{"type":"string","nullable":true,"description":"pole do sortowania (np. creationDate, updateDate)"},"sortDirection":{"type":"string","nullable":true,"description":"kierunek sortowania (ASC lub DESC)"}},"required":["page","pageSize"]},"TimeFilter":{"type":"object","properties":{"from":{"type":"string","format":"date-time"},"to":{"type":"string","format":"date-time"}}}}}}
```

## The CaseStatusResponse object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"CaseStatusResponse":{"type":"object","properties":{"caseId":{"type":"string","description":"unikalny identyfikator sprawy"},"creationDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas utworzenia statusu sprawy"},"updateDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas ostatniej aktualizacji statusu sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"}}}}}}
```

## The CaseSearchResponse object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"CaseSearchResponse":{"type":"object","properties":{"page":{"type":"integer","format":"int32","description":"numer strony wyników"},"pageSize":{"type":"integer","format":"int32","description":"liczba wyników na stronę"},"count":{"type":"integer","format":"int32","description":"łączna liczba znalezionych wyników"},"statuses":{"type":"array","description":"lista statusów spraw spełniających kryteria wyszukiwania","items":{"$ref":"#/components/schemas/CaseStatusResponse"}}}},"CaseStatusResponse":{"type":"object","properties":{"caseId":{"type":"string","description":"unikalny identyfikator sprawy"},"creationDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas utworzenia statusu sprawy"},"updateDate":{"type":"string","format":"date-time","nullable":true,"description":"data i czas ostatniej aktualizacji statusu sprawy"},"caseType":{"type":"string","description":"typ sprawy"},"clientId":{"type":"string","description":"identyfikator klienta"},"clientType":{"type":"string","description":"typ klienta"},"status":{"type":"string","description":"aktualny status sprawy"},"businessKey":{"type":"string","nullable":true,"description":"klucz biznesowy"},"source":{"type":"string","nullable":true,"description":"źródło sprawy"},"statusDescription":{"type":"string","nullable":true,"description":"opis statusu"}}}}}}
```

## The BatchOperationResponse object

```json
{"openapi":"3.0.3","info":{"title":"Eximee Case Repository API","version":"1.0.0"},"components":{"schemas":{"BatchOperationResponse":{"type":"object","properties":{"updated":{"type":"integer","format":"int64","description":"liczba pomyślnie utworzonych/zmodyfikowanych/usuniętych statusów spraw"},"errors":{"type":"array","description":"lista błędów dla poszczególnych spraw, które nie zostały poprawnie utworzone/zmodyfikowane/usunięte","items":{"$ref":"#/components/schemas/BatchOperationError"}}}},"BatchOperationError":{"type":"object","properties":{"caseId":{"type":"string","description":"identyfikator sprawy, dla której wystąpił błąd"},"errorCode":{"type":"string","enum":["CASE_NOT_FOUND","VALIDATION_ERROR","UNKNOWN_ERROR"]},"errorMessage":{"type":"string","description":"opis błędu"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.eximee.com/eksploatacja-aplikacji/eximee-api/case-repository-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
