Time entry template

get template fields

GEThttps://tracket.dev/api/2.0/templates/timeEntry
Authorization
Response
Body
id*string
fields*array of object
_links*object
Request
const response = await fetch('https://tracket.dev/api/2.0/templates/timeEntry', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "id": "text",
  "fields": [
    {
      "id": "text",
      "label": "text",
      "type": "single-select",
      "isRequired": false,
      "defaultOption": "text"
    }
  ],
  "_links": {
    "self": {
      "href": "text"
    }
  }
}

Retrieve custom field options

GEThttps://tracket.dev/api/2.0/templates/timeEntry/fields/{customFieldId}/options
Authorization
Path parameters
customFieldId*string
Query parameters
Response
Body
size*integer (int64)
total*integer (int64)
next-cursornullable string
items*array of object
_links*object
Request
const response = await fetch('https://tracket.dev/api/2.0/templates/timeEntry/fields/{customFieldId}/options', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "next-cursor": "text",
  "items": [
    {
      "fieldId": "text",
      "optionId": "text",
      "label": "text",
      "isArchived": false
    }
  ],
  "_links": {
    "self": {
      "href": "text"
    },
    "prev": {
      "href": "text"
    },
    "next": {
      "href": "text"
    }
  }
}

Last updated