---
title: "Update container AutoFix PR creation settings"
method: PUT
path: "/repositories/autofix/container/settings"
---

# Update container AutoFix PR creation settings

`PUT /repositories/autofix/container/settings`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/repositories/autofix/container/settings`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `autofix:write`

Update the workspace container AutoFix PR creation settings. PRs are created and re-evaluated every day. Use containers_scope of "all" or "selected"; when "selected", pass container repository IDs (as returned by GET /containers) in container_ids. Inactive or unknown container repository IDs are ignored when reading the settings and when creating fixes. "all" is paying accounts only. Send enabled: false to turn container AutoFix off; the other fields are then ignored. This only affects container AutoFix, other AutoFix features keep their own settings.

## Request body

- union
  - object
    - `enabled` true, required: Enables automatic container AutoFix PR creation.
    - `containers_scope` 'all' | 'selected', required: Container scope for container autofix: all container repositories or a selected list. "all" is paying accounts only.
    - `container_ids` integer[], required: Container repository IDs (as returned by GET /containers) for container autofix when containers_scope is "selected". Ignored when scope is "all"; use an empty array in that case. Inactive or unknown container repository IDs are ignored when reading the settings and when creating fixes.
    - `update_os_packages` boolean: Whether container AutoFix PRs should also update OS packages in the image. Optional: when omitted, the current setting is kept (true for workspaces that never changed it).
  - object
    - `enabled` false, required: Disables automatic container AutoFix PR creation. The other fields are ignored and may be omitted.

## Response `200`

The container AutoFix settings were updated.

- object
  - `success` integer: 1 indicating success

## Other responses

- `400`: Invalid configuration (e.g. select all on a non-paying account).

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
