Skip to content

List available time management code record types

Request

🔐 Required role: TM_CODE_R or TM_CODE_C

📖 Data dictionary: Time-management code

List available time management code record types

Returns the code types that can be managed via the Product API under /api/v1/codes: TimeCode, ExpenseCode, OperationalCode, and PtoCode.

Security
(BearerAuth and CfAccessClientId and CfAccessClientSecret) or BearerAuth
curl -i -X GET \
  https://api.sandbox.aiwyn.app/api/v1/codes/types \
  -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

Code types retrieved successfully

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