Upload File to Project
The endpoint allows users to upload files to a specific project. The request must include a list of files, and the user must have appropriate permissions to access the project.
Endpoint Information
URL:
<custom-env-url>/Testinium.RestApi/api/file/project/{projectId}
Method:
POST
Authentication:
Bearer Token
is requiredContent-Type:
multipart/form-data
Path Variables
projectId
Long
Yes
The ID of the project where the file will be uploaded.
Request Body
The request body must include one or more files to upload. The files should be sent as a multipart form-data request.
files
List<MultipartFile>
Yes
A list of files to upload.
Response Body
Upon a successful request, the API returns an HTTP status of 200 OK.
status
string
The status of the file upload request.
Error Codes
400
Invalid file
The file is empty or invalid.
401
Unauthorized
Authorization failed. The user is not logged in.
403
Forbidden
The user does not have permission to upload files to the project.
404
Project not found
The specified project was not found.
500
Internal Server Error
An unexpected error occurred on the server side.
Example Request
Last updated