---
title: "Partial Update Credits Auto Top-up Settings"
method: PATCH
path: "/account/credits/top-up/settings/"
tags: ["Account"]
---

# Partial Update Credits Auto Top-up Settings

`PATCH /account/credits/top-up/settings/`

## Request body

- PatchedCreditsAutoTopUp
  - `auto_top_up_on_expiration` boolean — If true, buy credits automatically on the expiration date of purchased credits.
  - `auto_top_up_on_insufficient` boolean — If true, buy credits automatically when the account balance is insufficient to perfom scans.
  - `auto_top_up_credits_pack` CreditsPack — Return serializer_class with all fields as read_only except key. The key is the field use to retrieve the object in `to_internal_value`. This is for the drf-spectacular documentation generation.
    - `id` string, required
    - `name` string, required
    - `price` integer, required
    - `currency_code` 'USD' | 'EUR' | 'GBP' | '', required — * `USD` - USD * `EUR` - EUR * `GBP` - GBP
    - `pack_amount` integer, required
    - `discount` integer, required
    - `savings` integer, required

## Response `201`

- CreditsAutoTopUp
  - `auto_top_up_on_expiration` boolean — If true, buy credits automatically on the expiration date of purchased credits.
  - `auto_top_up_on_insufficient` boolean — If true, buy credits automatically when the account balance is insufficient to perfom scans.
  - `auto_top_up_credits_pack` CreditsPack — Return serializer_class with all fields as read_only except key. The key is the field use to retrieve the object in `to_internal_value`. This is for the drf-spectacular documentation generation.
    - `id` string, required
    - `name` string, required
    - `price` integer, required
    - `currency_code` 'USD' | 'EUR' | 'GBP' | '', required — * `USD` - USD * `EUR` - EUR * `GBP` - GBP
    - `pack_amount` integer, required
    - `discount` integer, required
    - `savings` integer, required

## Other responses

- `400`
- `401`
- `500`

---

[API](https://skmtc.net/probely/apis/snyk-api-web-s-api-reference-documentation.md) · [All operations](https://skmtc.net/probely/apis/snyk-api-web-s-api-reference-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/probely/snyk-api-web-s-api-reference-documentation/revisions/e29879bff01b/schema)
