# Upload file Upload a file Endpoint: POST /v2/files ## Request fields (multipart/form-data): - `file` (string, required) - `targetResourceType` (string, required) Enum: "Matter", "Contract", "ContractCreation" - `targetResourceId` (integer) - `folderId` (integer) ## Response 201 fields (application/json): - `id` (integer) The system identifier for the file Example: 9456 ## Response 400 fields (application/problem+json): - `detail` (string) More information about the problem. - `instance` (string) The URI of the resource which the error relates to. - `operationId` (string) A unique trace identifier for the request. This should be provided when requesting support. - `status` (integer) The HTTP status code for the problem. - `title` (string) A short description of the error. - `type` (string) A URI which can be followed to find out more about the problem. ## Response 409 fields (application/problem+json): - `detail` (string) More information about the problem. - `instance` (string) The URI of the resource which the error relates to. - `operationId` (string) A unique trace identifier for the request. This should be provided when requesting support. - `status` (integer) The HTTP status code for the problem. - `title` (string) A short description of the error. - `type` (string) A URI which can be followed to find out more about the problem.