1curl -X POST https://api.awork.com/api/v1/documents/documentId/files/byurl \2 -H "Authorization: Bearer <token>" \3 -H "Content-Type: application/json" \4 -d '{}'
1{2 "name": "Final project report",3 "description": "The client requested a cost overview and timeline",4 "id": "123e4567-e89b-12d3-a456-426614174000",5 "entityId": "123e4567-e89b-12d3-a456-426614174000",6 "fileName": "Final project report.xlsx",7 "entityType": "project",8 "mimeType": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",9 "createdOn": "2024-01-15T09:30:00Z",10 "createdBy": "123e4567-e89b-12d3-a456-426614174000",11 "updatedOn": "2024-01-15T09:30:00Z",12 "updatedBy": "123e4567-e89b-12d3-a456-426614174000",13 "fileVersions": [14 {15 "id": "123e4567-e89b-12d3-a456-426614174000",16 "fileInfoId": "123e4567-e89b-12d3-a456-426614174000",17 "version": 13,18 "size": 13590,19 "width": 1920,20 "height": 1200,21 "createdOn": "2024-01-15T09:30:00Z",22 "createdBy": "123e4567-e89b-12d3-a456-426614174000",23 "updatedOn": "2024-01-15T09:30:00Z",24 "updatedBy": "123e4567-e89b-12d3-a456-426614174000"25 }26 ],27 "isCommentFile": false,28 "externalProvider": "string",29 "externalFileUrl": "string",30 "isHiddenForConnectUsers": true31}
Bearer authentication of the form Bearer <token>, where token is your auth token.
Bearer <token>
format: "uuid"
The user-specified name of the file.
format: "date-time"