---
updatedAt: 2026-05-28T19:20:36.000Z
agentTools:
  projectIndex: https://developers.remberg.de/llms.txt
---

# /v1/files/{id}/content

Replace the binary content of an existing file by its unique id.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "paths": {
    "/v1/files/{id}/content": {
      "patch": {
        "description": "Replace the binary content of an existing file by its unique id.",
        "operationId": "/v1/files/{id}/content_patch",
        "parameters": [
          {
            "name": "id",
            "required": true,
            "in": "path",
            "description": "Internal file id to replace the binary of a file.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "Replace the current binary of a file with a new binary."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DriveFilesCfaResponseDto"
                }
              }
            }
          },
          "209": {
            "description": "The file was removed from AI Copilot"
          },
          "400": {
            "description": "Missing or invalid required parameter/s"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          }
        },
        "security": [
          {
            "authorization": []
          }
        ],
        "summary": "",
        "tags": [
          "files"
        ],
        "x-controller-class": "DriveFilesCfaController"
      }
    }
  },
  "info": {
    "title": "Files",
    "description": "The remberg Files API description",
    "version": "v1",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.remberg.de"
    }
  ],
  "components": {
    "securitySchemes": {
      "authorization": {
        "type": "apiKey",
        "in": "header",
        "name": "authorization"
      }
    },
    "schemas": {
      "DriveFilesCfaResponseDto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "originalName": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parentId": {
            "type": "string",
            "description": "Object id of parent folder."
          },
          "ancestors": {
            "description": "Object ids of ancestor folders.",
            "default": [],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "folderPath": {
            "description": "Name of parent folder.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fileType": {
            "type": "string",
            "description": "It is a mime type of a file or 'folder' in case of folder."
          },
          "description": {
            "type": "string"
          },
          "isFolder": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "size": {
            "type": "number",
            "default": 0,
            "description": "Resource size in Bytes."
          },
          "associatedAssetNumber": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "associatedAssetType": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "associatedPartNumber": {
            "description": "Part numbers, i.e. the parts serial numbers.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "associatedPartTemplateNumber": {
            "description": "Part template numbers, i.e. the part templates serial numbers.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "associatedOrganizationNumber": {
            "description": "Organization numbers, i.e. the organizations external references.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "aiKnowledgeBaseStatus": {
            "type": "object",
            "description": "Indicates whether or not the file is added to the knowledge base."
          }
        },
        "required": [
          "id",
          "originalName",
          "name",
          "ancestors",
          "fileType",
          "isFolder",
          "isPublic",
          "size"
        ]
      }
    }
  }
}
```