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

# Write Workspace Files

> Reference for merged 0.6.0 source. The latest verified binary release is 0.5.5; use your Engine’s /api/openapi.json for its installed contract.



## OpenAPI

````yaml /engine/openapi.json put /api/workspaces/{name}/files
openapi: 3.1.0
info:
  title: nerditd
  version: 0.6.0
  description: >-
    Current source interface (0.6.0); verify your installed Engine version. This
    is not a claim that 0.6.0 is released.
servers:
  - url: http://127.0.0.1:9321
    description: Default local Engine; use your configured endpoint.
security: []
paths:
  /api/workspaces/{name}/files:
    put:
      tags:
        - Workspaces
      summary: Write Workspace Files
      description: >-
        Reference for merged 0.6.0 source. The latest verified binary release is
        0.5.5; use your Engine’s /api/openapi.json for its installed contract.
      operationId: write_workspace_files
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
            title: Name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WorkspaceWriteRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkspaceWriteResponse'
          description: HTTP 200 response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: HTTP 422 response
components:
  schemas:
    WorkspaceWriteRequest:
      properties:
        files:
          additionalProperties:
            type: string
          type: object
          title: Files
        delete:
          items:
            type: string
          type: array
          title: Delete
      additionalProperties: false
      type: object
      title: WorkspaceWriteRequest
    WorkspaceWriteResponse:
      properties:
        written:
          type: integer
          title: Written
        deleted:
          type: integer
          title: Deleted
        file_count:
          type: integer
          title: File Count
        total_bytes:
          type: integer
          title: Total Bytes
        files:
          items:
            $ref: '#/components/schemas/WorkspaceFileEntry'
          type: array
          title: Files
      type: object
      required:
        - written
        - deleted
        - file_count
        - total_bytes
        - files
      title: WorkspaceWriteResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    WorkspaceFileEntry:
      properties:
        path:
          type: string
          title: Path
        size:
          type: integer
          title: Size
        sha256:
          type: string
          title: Sha256
        mtime:
          anyOf:
            - type: string
            - type: 'null'
          title: Mtime
      type: object
      required:
        - path
        - size
        - sha256
      title: WorkspaceFileEntry
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````