PUT System-wide Time Tracking Settings
PUT /rest/admin/timetracking
Set system-wide time tracking settings: a list of working days in a week, and a number of hours in a working day.
PUT /rest/admin/timetracking
Request Parameters
Parameter | Type | Description |
---|---|---|
hoursADay | Integer | Number of hours in a working day. |
daysAWeek | Integer | Number of working days in a week. Since YouTrack 5.1 this setting is calculated automatically from the list set by the |
workWeek | list | Logical construction that designates a list of work days (list of |
workDay | Integer | Integer sequential number for a day of week to be considered a working day: |
Sample
Request:
PUT https://example.com/youtrack/rest/admin/timetracking
Connection: keep-alive
Cookie: $Version=0; JSESSIONID=axezv08lvrvrzpvvih22ricx; $Path=/
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<timesettings>
<hoursADay>8</hoursADay>
<workWeek>
<workDay>1</workDay>
<workDay>2</workDay>
<workDay>3</workDay>
<workDay>4</workDay>
<workDay>5</workDay>
</workWeek>
</timesettings>
Response:
Response Code: 200
Response Status: OK