Project File

Upload Project File

POST

Uploads a file to the All Files folder on the Files page within the project that you specify.

ProjectManager allows you to store Files connected to other elements of your Workspace such as a Project, a Task, or Home. Files are maintained separately based on the location where the file was stored.

When you upload a File, please allow a few moments for the File to be processed and verified. ProjectManager may reject File uploads that contain problems such as malware. Once a File has completed the upload the process, you may retrieve it using the DownloadFile API.

This API returns a JSON response indicating success or failure.

Path parameters

projectIdstringRequired
The reference to the project

Request

This endpoint expects a multipart form containing an optional file.
fileoptional file

Response

This endpoint returns an object
error
objectOptional
If the API call failed, this will contain information about the error that occurred.
success
booleanOptional
True if the API call succeeded; false otherwise.
hasError
booleanOptional
True if the API call failed.
statusCode
enumOptional
The HTTP code of the response.
data
objectOptional
Represents a file in project manager
POST
$curl -X POST /api/data/projects/:projectId/files \
> -H "x-integration-name: string" \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: multipart/form-data" \
> -d '{}'
Response
1{
2 "error": {
3 "technicalError": "string",
4 "additionalErrors": [
5 "string"
6 ],
7 "message": "string"
8 },
9 "success": true,
10 "hasError": true,
11 "statusCode": "Continue",
12 "data": {
13 "id": "string",
14 "projectId": "string",
15 "taskId": "string",
16 "ownerId": "string",
17 "createdDate": "2023-01-01T00:00:00Z",
18 "folderId": "string",
19 "fileType": "string",
20 "fileTypeLabel": "string",
21 "size": 0,
22 "downloadPath": "string",
23 "deleted": true,
24 "type": "string",
25 "name": "string",
26 "entityOwnerId": "string"
27 }
28}