Last updated 10 months ago
const response = await fetch('https://tracket.dev/api/2.0/templates/timeEntry', { method: 'GET', headers: {}, }); const data = await response.json();
{ "id": "text", "fields": [ { "id": "text", "label": "text", "type": "single-select", "isRequired": false, "defaultOption": "text" } ], "_links": { "self": { "href": "text" } } }
const response = await fetch('https://tracket.dev/api/2.0/templates/timeEntry/fields/{customFieldId}/options', { method: 'GET', headers: {}, }); const data = await response.json();
{ "size": 0, "total": 0, "next-cursor": "text", "items": [ { "fieldId": "text", "optionId": "text", "label": "text", "isArchived": false } ], "_links": { "self": { "href": "text" }, "prev": { "href": "text" }, "next": { "href": "text" } } }