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

# Upload one artifact file

> Streams one file into the session. `path` is the relative path stored inside the artifact, such as `config.json` or `model.safetensors`. The body is the raw file bytes.



## OpenAPI

````yaml /api-reference/model-artifacts.json put /v1/model-artifacts/{artifact_id}/uploads/{upload_id}/files
openapi: 3.1.0
info:
  title: SynapsAI Model Artifacts API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/model-artifacts/{artifact_id}/uploads/{upload_id}/files:
    put:
      summary: Upload one artifact file
      description: >-
        Streams one file into the session. `path` is the relative path stored
        inside the artifact, such as `config.json` or `model.safetensors`. The
        body is the raw file bytes.
      operationId: uploadModelArtifactFile
      parameters:
        - name: artifact_id
          in: path
          required: true
          schema:
            type: string
        - name: upload_id
          in: path
          required: true
          schema:
            type: string
        - name: path
          in: query
          required: true
          schema:
            type: string
          description: Relative path inside the artifact.
      requestBody:
        required: true
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
      responses:
        '200':
          description: File accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactFileUploadResult'
        '404':
          description: Upload session not found
components:
  schemas:
    ArtifactFileUploadResult:
      type: object
      properties:
        message:
          type: string
        path:
          type: string
        size_bytes:
          type: integer
        bytes_copied:
          type: integer
        files_copied:
          type: integer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.