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

# Actualiza un grupo de ítems



## OpenAPI

````yaml patch /requisitions/{id}/groups/{groupId}
openapi: 3.0.3
info:
  title: Esolbay API
  version: 1.0.0
  description: API Esolbay.
servers:
  - url: http://localhost:3000/api/v1
    description: Ruta base local
  - url: https://api.esolbay.com/api/v1
    description: Producción
  - url: https://staging.esolbay.com/api/v1
    description: Staging
security:
  - apiKeyAuth: []
  - bearerAuth: []
paths:
  /requisitions/{id}/groups/{groupId}:
    patch:
      tags:
        - Requisitions
      summary: Actualiza un grupo de ítems
      operationId: updateGroup
      parameters:
        - schema:
            type: string
          required: true
          name: id
          in: path
        - schema:
            type: string
          required: true
          name: groupId
          in: path
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GroupUpdate'
      responses:
        '200':
          description: Grupo actualizado
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  deliveryMethod:
                    $ref: '#/components/schemas/DeliveryMethod'
                  addressId:
                    type: string
                  createdAt:
                    type: string
                  updatedAt:
                    type: string
                required:
                  - id
                  - deliveryMethod
                example:
                  id: grp_01
                  name: Grupo 1
                  deliveryMethod: pickup
        '400':
          description: Solicitud inválida
        '404':
          description: No encontrado
components:
  schemas:
    GroupUpdate:
      type: object
      properties:
        name:
          type: string
        deliveryMethod:
          $ref: '#/components/schemas/DeliveryMethod'
        addressId:
          type: string
      required:
        - deliveryMethod
    DeliveryMethod:
      type: string
      enum:
        - pickup
        - delivery
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````