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

# Create file object



## OpenAPI

````yaml post /v1/files
openapi: 3.0.0
info:
  title: Document APIs Specification
  description: Section for description
  version: '1.0'
  contact: {}
servers:
  - url: https://staging.api.us.aptlydone.com/document
  - url: https://staging.api.eu.aptlydone.com/document
  - url: https://api.us.aptlydone.com/document
  - url: https://api.eu.aptlydone.com/document
security: []
tags: []
paths:
  /v1/files:
    post:
      tags:
        - files
      summary: Create file object
      operationId: FileController_createFile_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FileCreateDto'
      responses:
        '201':
          description: File created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FileResponseDtoResponse'
      security:
        - accessToken: []
components:
  schemas:
    FileCreateDto:
      type: object
      properties:
        tenantId:
          type: string
          format: uuid
          description: Tenant ID associated with the file
          example: 550e8400-e29b-41d4-a716-446655440010
        name:
          type: string
          description: Name of the file
          example: project_document.pdf
        type:
          type: string
          description: Type of the file
          example: application/pdf
        link:
          type: string
          description: Link to the file storage
          example: https://example.com/files/project_document.pdf
        createdBy:
          type: string
          format: uuid
          description: User ID who created the file
          example: 550e8400-e29b-41d4-a716-446655440000
      required:
        - tenantId
        - name
        - type
        - link
        - createdBy
    FileResponseDtoResponse:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP Status code
          example: 200
        timestamp:
          type: string
          description: Timestamp of the response
          example: '2026-01-12T09:12:23.874Z'
        message:
          type: string
          description: Response message
          example: Success
        data:
          description: Response data
          allOf:
            - $ref: '#/components/schemas/FileResponseDto'
      required:
        - statusCode
        - timestamp
        - message
        - data
    FileResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the file
          example: 550e8400-e29b-41d4-a716-446655440000
        name:
          type: string
          description: Name of the file
          example: project_document.pdf
        type:
          type: string
          description: Type of the file
          example: application/pdf
        link:
          type: string
          description: Link to the file storage
          example: https://example.com/files/project_document.pdf
        tenantId:
          type: string
          description: Tenant ID associated with the file
          example: 550e8400-e29b-41d4-a716-446655440010
        createdBy:
          type: string
          description: User ID who created the file
          example: 550e8400-e29b-41d4-a716-446655440001
        createdAt:
          format: date-time
          type: string
          description: Timestamp when the file was created
          example: '2025-02-13T12:00:00Z'
        updatedBy:
          type: string
          nullable: true
          description: User ID who last updated the file
          example: null
        updatedAt:
          format: date-time
          type: string
          nullable: true
          description: Timestamp when the file was last updated
          example: null
        deletedBy:
          type: string
          nullable: true
          description: User ID who deleted the file
          example: null
        deletedAt:
          format: date-time
          type: string
          nullable: true
          description: Timestamp when the file was deleted
          example: null
        isDeleted:
          type: boolean
          description: Flag indicating whether the file is deleted
          example: false
      required:
        - id
        - name
        - type
        - link
        - tenantId
        - createdBy
        - createdAt
        - isDeleted
  securitySchemes:
    accessToken:
      scheme: bearer
      bearerFormat: JWT
      type: http

````