---
title: "Update custom field context"
method: PUT
path: "/rest/api/2/field/{fieldId}/context/{contextId}"
tags: ["Issue custom field contexts"]
---

# Update custom field context

`PUT /rest/api/2/field/{fieldId}/context/{contextId}`

Updates a [ custom field context](https://confluence.atlassian.com/adminjiracloud/what-are-custom-field-contexts-991923859.html).

**[Permissions](#permissions) required:** *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg).

## Path parameters

- `fieldId` string, required
- `contextId` integer, required

## Request body

- CustomFieldContextUpdateDetails — Details of a custom field context.
  - `description` string — The description of the custom field context. The maximum length is 255 characters.
  - `name` string — The name of the custom field context. The name must be unique. The maximum length is 255 characters.

## Response `204`

Returned if the context is updated.

- unknown

## Other responses

- `400` — Returned if the request is not valid.
- `401` — Returned if the authentication credentials are incorrect or missing.
- `403` — Returned if the user does not have the required permissions.
- `404` — Returned if the custom field or the context is not found.

---

[API](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api.md) · [All operations](https://skmtc.dev/atlassian/apis/the-jira-cloud-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/atlassian/the-jira-cloud-platform-rest-api/revisions/7e9af75061ea/schema)
