> ## Documentation Index
> Fetch the complete documentation index at: https://help.sendspark.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add minutes to an existing custom DVM bundle

> Increases the minute quantity of an active custom DVM bundle by addMinutes. The new total is validated against plan max/step. Stripe prorates the additional cost for the remaining billing period and invoices it immediately.



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/workspaces/{workspaceId}/dvm-bundles/{bundleId}
openapi: 3.0.0
info:
  title: Sendspark API
  version: 1.2.0
  description: >-
    Public Sendspark API. DRAFT scaffold generated from the internal API v2 spec
    — endpoint selection and authentication are pending engineering review
    before publishing.
servers:
  - url: https://api-gw.sendspark.com
    description: Production
security:
  - apiKey: []
    apiSecret: []
tags: []
paths:
  /v1/workspaces/{workspaceId}/dvm-bundles/{bundleId}:
    patch:
      tags:
        - DVM Bundles
      summary: Add minutes to an existing custom DVM bundle
      description: >-
        Increases the minute quantity of an active custom DVM bundle by
        addMinutes. The new total is validated against plan max/step. Stripe
        prorates the additional cost for the remaining billing period and
        invoices it immediately.
      operationId: updateDvmBundle
      parameters:
        - name: workspaceId
          in: path
          required: true
          schema:
            type: string
        - name: bundleId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BundlesUpdatePayloadSchema'
      responses:
        '200':
          description: Successful
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BundlesUpdateResponseSchema'
        '400':
          description: Bad Request
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/BadRequest'
        '403':
          description: Forbidden
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Forbidden'
        '404':
          description: Not Found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/ResourceNotFoundOrInvalidAccess'
components:
  schemas:
    BundlesUpdatePayloadSchema:
      type: object
      properties:
        addMinutes:
          type: integer
          example: 50
          x-constraint:
            sign: positive
      required:
        - addMinutes
    BundlesUpdateResponseSchema:
      type: object
      properties:
        bundle:
          $ref: '#/components/schemas/UpdatedBundleResult'
        addedMinutes:
          type: integer
        previousTotalMinutes:
          type: integer
        newTotalMinutes:
          type: integer
        additionalChargeCents:
          type: integer
        balance:
          type: string
      required:
        - bundle
        - addedMinutes
        - previousTotalMinutes
        - newTotalMinutes
        - additionalChargeCents
    BadRequest:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        code:
          type: string
          example: S400-AHVE
        error:
          type: string
          example: Bad Request
        message:
          type: string
          example: Invalid request payload input
    Forbidden:
      type: object
      properties:
        statusCode:
          type: number
          example: 403
        code:
          type: string
          example: S403-UPLD
        error:
          type: string
          example: Forbidden
        message:
          type: string
          example: Invalid request payload input / Any error from provider
    ResourceNotFoundOrInvalidAccess:
      type: object
      properties:
        statusCode:
          type: number
          example: 404
        error:
          type: string
          example: Not Found
        message:
          type: string
          example: Resource not found or invalid access
    UpdatedBundleResult:
      type: object
      properties:
        bundleId:
          type: string
        subscriptionItemId:
          type: string
        minutesPerBundle:
          type: number
        label:
          type: string
        unitPriceCents:
          type: number
        totalPriceCents:
          type: number
      required:
        - bundleId
        - subscriptionItemId
        - minutesPerBundle
        - label
        - unitPriceCents
        - totalPriceCents
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
    apiSecret:
      type: apiKey
      in: header
      name: x-api-secret

````