Upload File to Project
9 min
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 required content type multipart/form data path variables parameter type required description 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 parameter type required description 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 field type description status string the status of the file upload request error codes http code error message description 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 curl location '\<custom env url>/testinium restapi/api/file/project/{projectid}' \\ \ header 'authorization bearer \<your access token>' \\ \ form 'files=@path to file1'