YouTrack Standalone 2019.2 Help

Operations with Specific TimeTrackingUserProfile

This resource lets you configure the time tracking settings in the user's profile.

Resource

/api/admin/users/{userID}/profiles/timetracking

Returned entity

TimeTrackingUserProfile. For the description of the entity attributes, see Supported Fields section.

Supported methods

TimeTrackingUserProfile attributes

Represents time tracking settings in the user's profile.

This table describes attributes of the TimeTrackingUserProfile entity.

  • To receive an attribute in the response from server, specify it explicitly in the request parameter fields.

  • To update an attribute, provide it in the body of a POST request.

Field

Type

Description

periodFormat

PeriodFieldFormat

Format, in which period values are displayed for the user.

Read a Specific TimeTrackingUserProfile

Get user's time tracking settings.

Required permissions

Requires Read Self to read own profile and Read Not Own Profile to read profile of another user.

Request syntax

GET /api/admin/users/{userID}/profiles/timetracking?{fields}

Request parameters

Parameter

Type

Description

fields

String

A list of TimeTrackingUserProfile attributes that should be returned in the response. If no field is specified,only the entityID is returned

Sample

Sample request URI

https://example.myjetbrains.com/youtrack/api/admin/users/me/profiles/timetracking?fields=periodFormat(id)

Sample response body

{ "periodFormat": { "id": "HOURS_MINUTES", "$type": "PeriodFieldFormat" }, "$type": "TimeTrackingUserProfile" }

Update a Specific TimeTrackingUserProfile

Update user's time tracking settings.

Required permissions

Requires Update Self to update own profile and Update Not Own Profile to update profile of another user.

Request syntax

POST /api/admin/users/{userID}/profiles/timetracking?{fields}

Request parameters

Parameter

Type

Description

fields

String

A list of TimeTrackingUserProfile attributes that should be returned in the response. If no field is specified,only the entityID is returned

Sample

Sample request URI

https://example.myjetbrains.com/youtrack/api/admin/users/me/profiles/timetracking?fields=periodFormat(id)

Sample request body

{ "periodFormat": { "id": "FULL" } }

Sample response body

{ "periodFormat": { "id": "FULL", "$type": "PeriodFieldFormat" }, "$type": "TimeTrackingUserProfile" }
Last modified: 17 December 2019