---
title: "Update precomputations (apps)"
method: POST
path: "/rest/api/2/jql/function/computation"
tags: ["JQL functions (apps)"]
---

# Update precomputations (apps)

`POST /rest/api/2/jql/function/computation`

Update the precomputation value of a function created by a Forge/Connect app.

**[Permissions](#permissions) required:** An API for apps to update their own precomputations.

The new `write:app-data:jira` OAuth scope is 100% optional now, and not using it won't break your app. However, we recommend adding it to your app's scope list because we will eventually make it mandatory.

## Query parameters

- `skipNotFoundPrecomputations` boolean

## Request body

- JqlFunctionPrecomputationUpdateRequestBean — List of pairs (id and value) for precomputation updates.
  - `values` JqlFunctionPrecomputationUpdateBean[]
    - `error` string — The error message to be displayed to the user if the given function clause is no longer valid during recalculation of the precomputation.
    - `id` string, required — The id of the precomputation to update.
    - `value` string — The new value of the precomputation.

## Response `200`

200 response

- JqlFunctionPrecomputationUpdateResponse — Result of updating JQL Function precomputations.
  - `notFoundPrecomputationIDs` string[] — List of precomputations that were not found and skipped. Only returned if the request passed skipNotFoundPrecomputations=true.

## Other responses

- `204` — Returned if the request is successful.
- `400` — Returned if the request is invalid.
- `403` — Returned if the request is not authenticated as the app that provided the function.
- `404` — Returned if the function is not found.

---

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