ZapytanieBetaQuery.dieCuts
Die-cuts in the warehouse, one page at a time, with the total count; archived ones only on request (isArchived) or when syncing. Filter and sort them; with updatedFrom and the UPDATED_AT sort, fetch only die-cuts changed since your last sync.
| Wymagany zakres | warehouse:read |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
filter | DieCutFilterInput | Conditions the die-cuts must meet; without it every die-cut is listed. |
pagination | PaginationInput | Page of the list to return; without it the first page at the default size. |
sort | DieCutSortInput | Order of the list; without it newest first. |
Zwraca
Przykład
query ChangedDieCuts($since: DateTime) { dieCuts( filter: { updatedFrom: $since } sort: { field: UPDATED_AT, direction: ASC } pagination: { page: 1, pageSize: 100 } ) { items { id code name type editionCount clientId archivedAt updatedAt } }}{ "since": "2026-10-04T00:00:00.000Z"}curl -sS https://twoja-drukarnia.prynt.pl/api/v1/graphql \ -H "Authorization: Bearer $PRYNT_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- <<'JSON'{ "query": "query ChangedDieCuts($since: DateTime) {\n dieCuts(\n filter: { updatedFrom: $since }\n sort: { field: UPDATED_AT, direction: ASC }\n pagination: { page: 1, pageSize: 100 }\n ) {\n items {\n id\n code\n name\n type\n editionCount\n clientId\n archivedAt\n updatedAt\n }\n }\n}", "variables": { "since": "2026-10-04T00:00:00.000Z" }}JSON{ "data": { "dieCuts": { "items": [ { "id": "3f6b2a1c-8d4e-4f5a-9b6c-1d2e3f4a5b04", "code": "K27", "name": "Pudełko na kalendarz", "type": "pudełko", "editionCount": 12, "clientId": "6c2e4a1b-7d3f-4e5a-9b8c-0d1e2f3a4b5c", "archivedAt": null, "updatedAt": "2026-10-04T13:20:00.000Z" } ] } }}