---
ai:
  exclude: true
search:
  tags:
    - mypreferences
    - PUT
seo:
  description: >-
    Sets preference of the currently logged in user.… Reference for the PUT
    /api/2/mypreferences endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Update user preference
  badge: PUT
title: Update user preference
type: openapi-operation
---
Sets preference of the currently logged in user. Preference key must be provided as input parameters (key). Value must be provided as post body. If key or value parameter is not provided - status code 404. If preference is set - status code 204.

`PUT /api/2/mypreferences`

**Request body** (`application/json`)

Request body example:

```json
"string"
```

**Responses**

- `204` — Confirmation that the preference was set.
