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

# Update Group Budget

> Set the group's total monthly budget. Set `monthly_budget` to `0` for unlimited spending. Requires an API key with manage permissions.

Set the group's total monthly budget. Set `monthly_budget` to `0` for unlimited spending. Returns an empty response on success.

<Note>
  This is applicable only in Group Budget mode.
</Note>


## OpenAPI

````yaml PATCH /v1/manage/group/{id}/budget
openapi: 3.0.3
info:
  title: Requesty Management API
  description: >-
    Requesty Management API for API key management, groups, members, and
    organization settings.
  version: 1.0.0
servers:
  - url: https://api-v2.requesty.ai
    description: Management API endpoint
security:
  - BearerAuth: []
paths:
  /v1/manage/group/{id}/budget:
    servers:
      - url: https://api-v2.requesty.ai
        description: Management API endpoint
    patch:
      summary: Update group budget
      description: >-
        Set the group's total monthly budget. Set `monthly_budget` to `0` for
        unlimited spending. Requires an API key with manage permissions.
      operationId: updateGroupBudget
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The group ID
          example: 123e4567-e89b-12d3-a456-426614174000
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateGroupBudgetRequest'
      responses:
        '200':
          description: Group budget updated successfully
        '400':
          description: Bad request - invalid group ID or request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - missing or invalid Authorization header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - API key does not have manage permissions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found - the group does not exist.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    UpdateGroupBudgetRequest:
      type: object
      required:
        - monthly_budget
      properties:
        monthly_budget:
          type: number
          format: double
          description: >-
            Total monthly budget for the group in USD. Set to `0` for unlimited
            spending.
          example: 1000
      example:
        monthly_budget: 1000
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - origin
            - message
          properties:
            origin:
              type: string
              enum:
                - router
                - provider
              description: >-
                Whether the error originated from Requesty's router or an
                upstream provider.
            message:
              type: string
              description: Human-readable error description.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key for authentication

````