API reference
/- Lookup time management code records in pages (by type)
List all task types
Search task types
Get task by ID
Search tasks
List WIP entries
Search WIP entries
Get WIP entry by ID
List available time management code record types
Get field schema for a time management code type
Create or update time management code records (upsert)
List available time management entry record types
Get field schema for a time management entry type
Create or update time management entry records (upsert)
Lookup time management entry records in pages (by type)
Lookup time management co...
🔐 Required role:
TM_CODE_RorTM_CODE_C📖 Data dictionary: Time-management code
Lookup time management code records in pages
{type} is any code type from GET /api/v1/codes/types, e.g. /api/v1/codes/batch/ExpenseCode.
Request body: { "pageSize": 25, "page": 0 }
page is a zero-based page index, not a record offset; see Time management code and entry lookups.
Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
- Sandbox (requires Cloudflare Access headers)https://api.sandbox.aiwyn.app/api/v1/codes/batch/{type}
- Staging (requires Cloudflare Access headers)https://api.staging.aiwyn.app/api/v1/codes/batch/{type}
- Production (your live firm data; no Cloudflare Access headers)https://api.aiwyn.ai/api/v1/codes/batch/{type}
curl -i -X POST \
'https://api.sandbox.aiwyn.app/api/v1/codes/batch/{type}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'CF-Access-Client-Id: YOUR_API_KEY_HERE' \
-H 'CF-Access-Client-Secret: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"pageSize": 0,
"page": 0
}'Response
{ "data": { "type": "string", "pageSize": 0, "page": 0, "returned": 0, "records": [ … ] }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }