# Operations with Specific TimeTrackingUserProfile

This resource lets you configure the time tracking settings in the user's profile.
|  Resource  |     ```GENERIC /api/users/{userID}/profiles/timetracking ```    |
| --- | --- |
|  Returned entity  |  [TimeTrackingUserProfile](api-entity-TimeTrackingUserProfile.html). For the description of the entity attributes, see [Supported Fields](#TimeTrackingUserProfile-supported-fields) section.  |
|  Supported methods  |      * `GET`: [Read a Specific TimeTrackingUserProfile](#get-TimeTrackingUserProfile-method).    * `POST`: [Update a Specific TimeTrackingUserProfile](#update-TimeTrackingUserProfile-method).    |

## TimeTrackingUserProfile attributes

Represents time tracking settings in the user's profile.

### Related Resources

Below you can find the list of resources that let you work with this entity.

* [Time Tracking User Profile](resource-api-users-userID-profiles-timetracking.html)

### Attributes

This table describes attributes of the `TimeTrackingUserProfile` entity.

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

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

|  Field  |  Type  |  Description  |
| --- | --- | --- |
|  id  |  String  |  The ID of the time tracking settings in the user's profile. `Read-only`.  |
|  periodFormat  |  [PeriodFieldFormat](api-entity-PeriodFieldFormat.html)  |  Format, in which period values are displayed for the user.  |

## Read a Specific TimeTrackingUserProfile

Get user's time tracking settings.

### Required permissions

Requires permissions: Read Self to read own profile and Read User Full to read profile of another user.

### Request syntax

```GENERIC
GET /api/users/{userID}/profiles/timetracking?{fields}
```

|  null  |  The database ID of TimeTrackingUserProfile  |
| --- | --- |

### 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

```CURL
https://example.youtrack.cloud/api/users/me/profiles/timetracking?fields=periodFormat(id)
```

#### Sample response body

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

## Update a Specific TimeTrackingUserProfile

Update user's time tracking settings.

### Required permissions

Requires permissions: Update Self to update own profile and Update User to update profile of another user.

### Request syntax

```GENERIC
POST /api/users/{userID}/profiles/timetracking?{fields}
```

|  null  |  The database ID of TimeTrackingUserProfile  |
| --- | --- |

### 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

```CURL
https://example.youtrack.cloud/api/users/me/profiles/timetracking?fields=periodFormat(id)
```

#### Sample request body

```JSON
{
  "periodFormat": {
    "id": "FULL"
  }
}
```

#### Sample response body

```JSON
{
  "periodFormat": {
    "id": "FULL",
    "$type": "PeriodFieldFormat"
  },
  "$type": "TimeTrackingUserProfile"
}
```

