# Update project integration

```http
PATCH /projects/{project_reference}/integrations/{name}
```

Change the scope, allowed tools, configuration or execution mode of a project integration by sending only the fields to change, so that an omitted field keeps its stored value; returns the updated project integration. Requires project.integrations.configure.

## Parameters

| Name                | In   | Required | Description                                                |
| ------------------- | ---- | -------- | ---------------------------------------------------------- |
| `project_reference` | path | Yes      | Project slug, UUID, or domain that identifies the project. |
| `name`              | path | Yes      | Integration name, for example "salesforce".                |

## Request body

| Field            | Type       | Required | Description                                                                                                                                                        |
| ---------------- | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `scope`          | string     |          | Credential scope the integration uses. Omit to keep the stored value. The legacy end\_user and endUser inputs are aliases of user; the result returns user.        |
| `allowed_tools`  | array,null |          | Unprefixed tool IDs the project allows. Null allows all tools. Omit to keep the stored list. Each entry must exist in the catalog of the effective execution mode. |
| `config`         | object     |          | Integration-specific configuration that must match config\_schema. Omit to keep the stored configuration.                                                          |
| `execution_mode` | string     |          | Execution mode, real or mock. Omit to keep the stored value.                                                                                                       |

## Responses

| Status | Description                                                                                                                                                                            |
| ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200    | The updated project integration.                                                                                                                                                       |
| 400    | invalid\_input: a field is invalid, allowed\_tools names a tool outside the catalog of the effective execution mode, or config does not match config\_schema. errors lists the fields. |
| 401    | unauthenticated: no valid credential was sent.                                                                                                                                         |
| 403    | forbidden: the credential lacks project.integrations.configure.                                                                                                                        |
| 404    | not\_found: the project or the integration does not exist or is not accessible.                                                                                                        |
| 500    | internal: the update failed unexpectedly.                                                                                                                                              |
| 502    | internal: the mock integration service did not return its catalog, which allowed\_tools is checked against in mock execution mode.                                                     |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.                                                                            |
