Query any Deputy resource
deputy_query_resourceRun a Resource API search on any business object (leave types, pay rules, public holidays, memos, events, shift templates, pay lines, availability, sales data, …). search is Deputy's clause map, e.g. {"s1":{"field":"Employee","data":12,"type":"eq"}}; operators: eq ne gt lt ge le is 'is not' in 'not in' starts contains. Use deputy_describe_resource to see an object's fields and joins. Read-only. Deputy: POST /api/v1/resource/{Object}/QUERY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | Page size, 1-500 (Deputy's cap). Default 100. | |
| join | No | Related objects to expand inline, e.g. ["TimesheetObject"] on TimesheetPayReturn. | |
| sort | No | Field → asc/desc, e.g. {"Id":"desc"}. | |
| start | No | Pagination offset (0-based). Pass the previous page's next_start. | |
| object | Yes | Resource API object. Deputy names: Company = location, OperationalUnit = area, Roster = shift, LeaveRules = leave types, TimesheetPayReturn = approved pay lines. | |
| search | No | Clauses keyed by any id (s1, s2, …). All must match. |