# Update spend rules for a managed card

Submit the details to update the spend rules of Managed Cards.
The  bulkId returned in the response can subsequently be used to launch the updating of Managed Card spend rules process through [Execute Bulk Process](#tag/Manage/operation/bulkIdExecute). A submitted bulk process can be managed (executed, accessed, paused, resumed and cancelled) by any other Authorised User of the same identity of the user that submits the details.
The status of the bulk process after execution of this operation is set to ‘SUBMITTED’. The execution of the bulk process is launched through the Execute bulk process operation.
The submission of data for a bulk process does not expire but it can be cancelled through [Cancel Bulk Process](#tag/Manage/operation/bulkIdCancel).
The system is configured to accept bulk requests to process up to a maximum of 10,000 bulk operations.
Each spend rules update operation in this bulk process is processed via the Update a Managed Card operation in the Multi API.

Endpoint: PATCH /bulks/managed_cards/_id_/spend_rules
Version: v3
Security: auth_token, api_key

## Security:

  - `auth_token` (unknown)
    http bearer JWT

  - `api_key` (unknown)
    apiKey in header api-key

## Header parameters:

  - `idempotency-ref` (string)
    A unique call reference generated by the caller that, taking into consideration the payload as well as the operation itself, helps avoid duplicate operations. Idempotency reference uniqueness is maintained for at least 24 hours.

## Request fields (application/json):

  - `pathParams` (object)

  - `pathParams._id_` (string)

  - `requestBody` (object)

  - `requestBody.updateSpendLimitMethod` (string)
    The spend limit update method to apply. Currently supported:
- OVERWRITE: (default option if nothing selected). Overwrites the previous values for the spendLimit object i.e. sets new limits
- INCREMENT : This will increase the existing value of the spend limit by the amount input the value field. If used in conjunction with an ALWAYS interval, this can be used to increment a spend limit on a periodic basis (controlled by you, e.g. monthly), and means that any 'unused' balance from the previous period will still available to spend. See examples in our documentation
    Enum: "OVERWRITE", "INCREMENT"

## Response 201:

  - `201` (unknown)
    Success - returning bulk process

## Response 201 fields (application/json):

  - `bulkId` (string)

  - `operationCount` (integer)

  - `path` (string)

