---
ai:
  exclude: true
search:
  tags:
    - permissionscheme
    - PUT
seo:
  description: >-
    Updates or… Reference for the PUT
    /api/2/permissionscheme/{permissionSchemeId}/attribute/{key} endpoint in the
    Jira Software Data Center REST API Reference.
sidebar:
  label: Update or insert a scheme attribute
  badge: PUT
title: Update or insert a scheme attribute
type: openapi-operation
---
Updates or inserts the attribute for a permission scheme specified by permission scheme id. The attribute consists of the key and the value. The value will be converted to Boolean using Boolean#valueOf.

`PUT /api/2/permissionscheme/{permissionSchemeId}/attribute/{key}`

**Request body** (`text/plain`)

Request body example:

```json
"string"
```

**Responses**

- `204` — Returned if the attribute is updated successfully.
- `401` — Returned if the user is not authenticated.
- `403` — Returned if the user is not an admin.
- `500` — Returned if there was an error related to attribute upsert.
