---
updatedAt: 2026-07-03T13:03:07.000Z
agentTools:
  projectIndex: https://developer.xentral.com/llms.txt
---

# Update file on proforma invoice V3

This endpoint requires the following scopes: `proformaInvoice:update`.

Update a file attached to a proforma invoice.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Xentral Business Documents API v3",
    "description": "The Xentral Business Documents API v3 for working with sales orders, offers, invoices, credit notes, delivery notes, return orders, purchase orders, proforma invoices and productions.\n\nIndividual endpoints marked as *Beta* may still change without prior notice — see the respective endpoint descriptions.\n\nRequest payloads may contain properties that an endpoint does not define; these are ignored rather than rejected. Nothing is stored for them and no error is returned, so check the response body to confirm which values were actually applied.",
    "contact": {
      "name": "API Support",
      "url": "https://xentral.com",
      "email": "api@xentral.com"
    },
    "version": "0.2.0"
  },
  "servers": [
    {
      "url": "https://{xentralId}.xentral.biz",
      "description": "Your xentral instance",
      "variables": {
        "xentralId": {
          "default": "my-company",
          "description": "Your Xentral instance ID"
        }
      }
    },
    {
      "url": "https://{domain}",
      "description": "Xentral with a custom domain",
      "variables": {
        "domain": {
          "default": "demo.xentral.com",
          "description": "Your Xentral custom domain"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "UpdateFileData": {
        "properties": {
          "title": {
            "description": "Title of the file",
            "type": "string",
            "example": "Supporting document"
          },
          "description": {
            "description": "Description of the file",
            "type": "string",
            "example": "Additional documentation"
          },
          "keyword": {
            "description": "Document keyword/type",
            "type": "string",
            "enum": [
              "otherFile",
              "coverPage",
              "attachment",
              "eInvoice",
              "receipt",
              "paymentReceipt"
            ],
            "example": "otherFile"
          },
          "sort": {
            "description": "Sorting of the file",
            "type": "integer",
            "example": 1
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "ProformaInvoice",
      "description": "ProformaInvoice"
    }
  ],
  "paths": {
    "/api/v3/proformaInvoices/{id}/files/{fileId}": {
      "patch": {
        "tags": [
          "ProformaInvoice"
        ],
        "summary": "Update file on proforma invoice V3",
        "description": "This endpoint requires the following scopes: `proformaInvoice:update`.\n\nUpdate a file attached to a proforma invoice.",
        "operationId": "PATCH::api-v3-proformainvoices-id-files-fileid",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fileId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFileData"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Failed validation",
            "content": {
              "application/problem+json": {
                "schema": {
                  "properties": {
                    "type": {
                      "description": "Error messages",
                      "type": "string",
                      "example": "https://api.xentral.biz/problems/request-validation"
                    },
                    "title": {
                      "description": "Error messages",
                      "type": "string",
                      "example": "Request payload validation failed."
                    },
                    "violations": {
                      "description": "Error messages",
                      "type": "object",
                      "example": {
                        "title": [
                          "The title field must be a string."
                        ],
                        "description": [
                          "The description field must be a string."
                        ],
                        "keyword": [
                          "The selected keyword is invalid."
                        ]
                      }
                    }
                  },
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "404": {
            "description": "Not Found"
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "message": {
                      "description": "Too Many Requests",
                      "type": "string",
                      "example": "Too Many Requests"
                    }
                  },
                  "type": "object"
                }
              }
            }
          }
        },
        "x-scopes": [
          "proformaInvoice:update"
        ]
      }
    }
  }
}
```