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

# Update dependency AutoFix PR creation settings

`PUT /repositories/autofix/dependency/settings`

## Request

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

Update the workspace dependency AutoFix PR creation settings. PRs are created and re-evaluated every day. Use severity_filter to set which dependency upgrades to autofix. Use repos_scope of "all" or "selected"; when "selected", pass repository IDs in repo_ids. Inactive or unknown repository IDs are filtered out. "all" is paying accounts only. Send enabled: false to turn dependency AutoFix off; the other fields are then ignored. This only affects dependency AutoFix, other AutoFix features keep their own settings.

## Request body

- union
  - object
    - `enabled` true, required: Enables automatic dependency AutoFix PR creation.
    - `severity_filter` 'upgrade_all_packages' | 'critical_and_high_only' | 'critical_issues_only' | 'minor_and_patch_versions_only', required: Dependency (libraries) upgrade types to autofix.
    - `repos_scope` 'all' | 'selected', required: Repository scope for dependency autofix: all repositories or a selected list. "all" is paying accounts only.
    - `repo_ids` integer[], required: Code repository IDs for dependency (libraries) autofix when repos_scope is "selected". Ignored when scope is "all"; use an empty array in that case. Inactive or unknown repository IDs are filtered out and not stored.
    - `use_aikido_library_for_major` boolean, required: Use Aikido Libraries to avoid major upgrades when available.
  - object
    - `enabled` false, required: Disables automatic dependency AutoFix PR creation. The other fields are ignored and may be omitted.

## Response `200`

The dependency 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)
