Skip to content

Get field schema for a time management entry type

Request

🔐 Required role: TM_ENTRY_R or TM_ENTRY_C

📖 Data dictionary: Time entry

Get field schema for a time management entry type

Returns field definitions for the requested entry type.

For TimeEntry, the schema includes optional taskId (FK to Task) and code (work code string). Use GET /api/v1/entries/schema/TimeEntry to see the full attribute list for your tenant, including custom fields.

For ExpenseEntry, the schema includes expenseCodeId (FK to ExpenseCode), billable, internalNotes, and the optional code (expense code string). Use GET /api/v1/entries/schema/ExpenseEntry for the full attribute list.

Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
Path
typestringrequired

Entry type, as listed by GET /api/v1/entries/types (for example TimeEntry).

curl -i -X GET \
  'https://api.sandbox.aiwyn.app/api/v1/entries/schema/{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'

Responses

Schema retrieved successfully

Bodyapplication/json
dataobject
errorobject or null
metaobject
Response
{ "data": { "entityType": "string", "fields": [ … ] }, "error": {}, "meta": { "success": true, "message": "string", "timestamp": "2019-08-24T14:15:22Z", "version": "string" } }