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

# Create batch upload URLs for multiple materials



## OpenAPI

````yaml /openapi-components.json post /api/v1/materials/batch
openapi: 3.0.0
info:
  title: StudyFetch API
  description: API documentation for StudyFetch
  version: '1.0'
  contact: {}
servers:
  - url: https://studyfetchapi.com
    description: Production API Server
security: []
tags: []
paths:
  /api/v1/materials/batch:
    post:
      tags:
        - Materials
      summary: Create batch upload URLs for multiple materials
      operationId: createBatch
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateBatchDto'
      responses:
        '201':
          description: Batch upload URLs created successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BatchUploadResponseDto'
        '400':
          description: Invalid parameters
        '403':
          description: Insufficient permissions
      security:
        - x-api-key: []
components:
  schemas:
    CreateBatchDto:
      type: object
      properties:
        materials:
          description: Array of materials to create
          type: array
          items:
            $ref: '#/components/schemas/BatchMaterialDto'
      required:
        - materials
    BatchUploadResponseDto:
      type: object
      properties:
        name:
          type: string
          description: Material name
        uploadUrl:
          type: string
          description: Presigned upload URL
        s3Key:
          type: string
          description: S3 key
        materialId:
          type: string
          description: Material ID
      required:
        - name
        - uploadUrl
        - s3Key
        - materialId
    BatchMaterialDto:
      type: object
      properties:
        name:
          type: string
          example: Chapter 1
          description: Material name
        filename:
          type: string
          example: document.pdf
          description: Filename
        contentType:
          type: string
          example: application/pdf
          description: MIME type
        folderId:
          type: string
          description: Folder ID
      required:
        - name
        - filename
        - contentType
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API Key for server-to-server authentication. Resolves to the owning
        organization.

````