> ## 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.

# Agrega un ítem (existente o nuevo) a un grupo



## OpenAPI

````yaml post /requisitions/{id}/groups/{groupId}/items
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}/items:
    post:
      tags:
        - Requisitions
      summary: Agrega un ítem (existente o nuevo) a un grupo
      operationId: addItemToGroup
      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/GroupItemCreate'
      responses:
        '201':
          description: Ítem agregado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequisitionGroupItem'
        '400':
          description: Solicitud inválida
        '404':
          description: No encontrado
components:
  schemas:
    GroupItemCreate:
      type: object
      properties:
        quantity:
          type: integer
          minimum: 0
          exclusiveMinimum: true
        itemId:
          type: string
        item:
          $ref: '#/components/schemas/InventoryItemPayload'
      required:
        - quantity
    RequisitionGroupItem:
      type: object
      properties:
        id:
          type: string
        quantity:
          type: number
        itemId:
          type: string
      required:
        - id
        - quantity
        - itemId
    InventoryItemPayload:
      type: object
      properties:
        code:
          type: string
        name:
          type: string
        description:
          type: string
        unitOfMeasure:
          type: string
        brand:
          type: string
        material:
          type: string
        certification:
          type: string
        type:
          type: string
      required:
        - name
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````