Create a new attachment or update an existing attachment for a project.
For a new attachment the request will return the 201
response. For updating an existing attachment the request will return a 200
response.
A JSON object containing project attachment information.
Successful operation
Successful operation
Not Found
Unprocessable Content
{- "success": true,
- "hash": "1ae90e61fe35c03230c7758abadc865f3b6e34e7",
- "data": {
- "id": 34,
- "hash": "1d478500d825781dfdbff4a2c4e2045264a68672",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "0c77be37ff52bca4b26c2f400337cdb52fd877711220bda6a2b4ce53ac731bbc",
- "created_time": "2022-08-15T12:15:26.000000Z",
- "modified_time": "2022-11-16T15:14:34.000000Z",
- "modified_user_time": "2022-11-16T15:14:34.000000Z",
- "umask": 4,
- "model": "ProjectAttachment",
- "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-25T09:02:43.000000Z",
- "modified_user_time": "2022-05-25T09:02:43.000000Z",
- "model": "User"
}
}, - "timestamp": 1668611674212
}
Get all attachments for a project.
Successful operation
Unprocessable Content
{- "success": true,
- "hash": "f1851209187b379309ba934138a229a1a1c31193",
- "data": [
- {
- "id": 34,
- "hash": "1d478500d825781dfdbff4a2c4e2045264a68672",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "07c8cc8ad18be8f67f09357a8e4240fbd85dc58907c0f470e4fd9d22baf8b994",
- "created_time": "2022-08-15T12:15:26.000000Z",
- "modified_time": "2022-08-15T12:15:26.000000Z",
- "modified_user_time": "2022-08-15T12:15:26.000000Z",
- "umask": 4,
- "model": "ProjectAttachment",
- "created_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "modified_user": {
- "id": 1,
- "hash": "8db560a23013ff54838d45e59a3f3f39f6720c86",
- "name": "Olli Kahn",
- "first_name": "Olli",
- "last_name": "Kahn",
- "position": "CEO",
- "department": "Engine room",
- "organization": "Nordantech",
- "email": "titan@nordantech.com",
- "status": 1,
- "created_time": "2022-05-04T16:51:37.000000Z",
- "modified_time": "2022-05-23T12:18:17.000000Z",
- "modified_user_time": "2022-05-23T12:18:17.000000Z",
- "model": "User"
}, - "project": {
- "id": 1,
- "hash": "583bf59445f18e7bf566020aa8134ddfa7c79113",
- "name": "Phoenix",
- "paused": false,
- "locked": false,
- "model": "Project",
- "program": {
- "id": 1,
- "hash": "1650600bd010a50897b50572382460965fed588a",
- "name": "Airborne",
- "model": "Program"
}
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 1,
- "total": 1,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1660565970348
}