# Update info about automatic purchase

Updates information about automatic purchase.

Endpoint: PUT /v2/merchants/{merchantId}/projects/{projectId}/user/{userId}/auto-topup
Version: 1.0.0
Security: Server

## Header parameters:

  - `X-HOST-ID` (string, required)
    Unique operator ID.

## Path parameters:

  - `merchantId` (string, required)
    Merchant ID of the client

  - `projectId` (string, required)
    Project ID of the project

  - `userId` (string, required)
    Unique User ID.

## Request fields (application/json):

  - `items` (array)
    Example: [{"enabled":false,"virtual_currency_sku":"xxx-xxx-xxx"}]

  - `items.enabled` (boolean)
    Whether automatic purchase of Blue Orbs is enabled for the user.

  - `items.virtual_currency_sku` (string, required)
    Virtual Currency SKU.

## Response 200 fields (application/json):

  - `items` (array)
    Example: [{"enabled":false,"virtual_currency_sku":"xxx-xxx-xxx"}]

  - `items.enabled` (boolean, required)
    Whether automatic purchase of multicurrency is enabled for the user.

  - `items.virtual_currency_sku` (string, required)
    Virtual Currency SKU

## Response 400 fields (application/json):

  - `error_code` (string)
    Error code

  - `error_description` (string)
    Error description

## Response 401 fields (application/json):

  - `error_code` (string)
    Error code

  - `error_description` (string)
    Error description

## Response 404 fields (application/json):

  - `error_code` (string)
    Error code

  - `error_description` (string)
    Error description

## Response 422 fields (application/json):

  - `error_code` (string)
    Error code

  - `error_description` (string)
    Error description


