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

# Crea un nuevo item



## OpenAPI

````yaml post /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:
  /items/:
    post:
      tags:
        - Items
      summary: Crea un nuevo item
      operationId: createItem
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ItemCreate'
      responses:
        '201':
          description: Item creado
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  attributes:
                    nullable: true
                  brand:
                    type: string
                  certification:
                    type: string
                  code:
                    type: string
                  description:
                    type: string
                  material:
                    type: string
                  name:
                    type: string
                  title:
                    type: string
                  type:
                    type: string
                  unitOfMeasure:
                    type: string
                required:
                  - id
                example:
                  id: item_01
                  name: Bolígrafo azul
                  code: BOLI-001
        '400':
          description: Solicitud inválida
        '401':
          description: Unauthorized
        '500':
          description: Error interno del servidor
components:
  schemas:
    ItemCreate:
      type: object
      properties:
        attributes:
          nullable: true
        brand:
          type: string
        certification:
          type: string
        code:
          type: string
        description:
          type: string
        material:
          type: string
        name:
          type: string
        title:
          type: string
        type:
          type: string
        unitOfMeasure:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````