# Update Extension Config

`PATCH /extensions-admin/{slug}/config` · Core · Extensions

Updates per-extension configuration for the specified project and fires the `configure` lifecycle hook (best-effort, single attempt). The configuration payload is extension-defined; the platform delivers it to the extension's `hooks.configure.url` handler along with the current permission grants. Requires `PROJECT_ADMIN`.

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `slug` | path | yes |  Example: `"demoext"`. |
| `projectSlug` | path | yes | The project's slug: the path segment after `@`. It is unique within the org. Example: `"storefront"`. |

## Request body

## Responses

- **200**: Success

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | object | yes |  |
| `data.installId` | string | yes | The project's install record for the extension (`xinst_...`). |
| `data.extensionSlug` | string | yes | The extension's slug. |
| `data.projectId` | string | yes | The project's id (`proj_...`). |
| `data.config` | object | yes | The install's whole configuration after the merge, as name to value. |
| `meta` | object | yes |  |


## Errors

| HTTP | Code | When |
|---|---|---|
| 401 | `K9O_SESSION_EXPIRED` | Your session has expired; authenticate again to continue. |
| 403 | `K9O_ACCESS_DENIED` | Your role does not permit updating extension configuration on this project; a PROJECT_ADMIN role is required. |
| 404 | `K9O_EXTENSION_NOT_FOUND` | No extension with this slug exists in the registry. |

## Code samples

### cURL

```bash
curl -X PATCH 'https://<org>.api-<region>.k9o.io/@storefront/extensions-admin/demoext/config' \
  -H 'Authorization: Bearer $K9O_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{}'
```

### fetch

```javascript
const res = await fetch('https://<org>.api-<region>.k9o.io/@storefront/extensions-admin/demoext/config', {
  method: 'PATCH',
  headers: {
    'Authorization': `Bearer ${process.env.K9O_TOKEN}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({}),
});
const { data, meta } = await res.json();
```


Canonical page: https://docs.kilimanjaro.dev/api-playground/core/update-extension-config
