Get all attachments of the authenticated user of the authenticated hub.
Successful operation
{- "success": true,
- "hash": "1280b87bda7d9bd2c08ac39717ee157e7dcdd403",
- "data": [
- {
- "id": 11,
- "hash": "9bfc4e9ba43da5c8e9d23c21f716b2562bfc8ae3",
- "name": "Effekte.xlsx",
- "extension": "xlsx",
- "mime": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- "size": 8,
- "checksum": "989fc0523ff3981a816aa178f7e4631cd54051e694db8b873118a80d05473f17",
- "created_time": "2022-07-11T15:55:44.000000Z",
- "modified_time": "2022-07-11T15:55:44.000000Z",
- "modified_user_time": "2022-07-11T15:55:44.000000Z",
- "umask": 4,
- "model": "Attachment",
- "attachable": {
- "id": 1,
- "hash": "7ce83d4d4d933305a5410a7311a6a6f133f37dd5",
- "name": "Working Capital",
- "model": "MeasurePackage"
}, - "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"
}
}, - {
- "id": 19,
- "hash": "e846a9bf62c98dc7a21e1fefee587388c85d417f",
- "name": "empty",
- "extension": "txt",
- "mime": "text/plain",
- "size": 8,
- "checksum": "989fc0523ff3981a816aa178f7e4631cd54051e694db8b873118a80d05473f17",
- "created_time": "2022-07-19T15:52:18.000000Z",
- "modified_time": "2022-07-19T15:52:18.000000Z",
- "modified_user_time": "2022-07-19T15:52:18.000000Z",
- "umask": 4,
- "model": "Attachment",
- "attachable": {
- "id": 2,
- "hash": "952d544cd1d50a3937b903ee9f0322808baba201",
- "name": "Turnover",
- "model": "Measure"
}, - "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"
}
}, - {
- "id": 31,
- "hash": "e052a01c21efe7f90f3b301e2ead34abcc0e1ed1",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "3cfd50c8f73e1ef11fdac50a979586e2626610c6d7d8c8e4a9e404869554c8cc",
- "created_time": "2022-08-11T12:23:22.000000Z",
- "modified_time": "2022-08-11T12:23:22.000000Z",
- "modified_user_time": "2022-08-11T12:23:22.000000Z",
- "umask": 4,
- "model": "Attachment",
- "attachable": {
- "id": 2,
- "hash": "952d544cd1d50a3937b903ee9f0322808baba201",
- "name": "Turnover",
- "model": "Measure"
}, - "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"
}
}, - {
- "id": 32,
- "hash": "598dd474cbcc426119ea299df64ec7571370ba43",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "5a4a3a39aaed32c9e9162bfb60e5972bab84e9d423a435de4eab06b4c5abf5de",
- "created_time": "2022-08-15T11:35:17.000000Z",
- "modified_time": "2022-08-15T11:35:17.000000Z",
- "modified_user_time": "2022-08-15T11:35:17.000000Z",
- "umask": 4,
- "model": "Attachment",
- "attachable": {
- "id": 1,
- "hash": "7ce83d4d4d933305a5410a7311a6a6f133f37dd5",
- "name": "Working Capital",
- "model": "MeasurePackage"
}, - "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"
}
}, - {
- "id": 33,
- "hash": "e052a01c21efe7f90f3b301e2ead34abcc0e1ed1",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "5a4a3a39aaed32c9e9162bfb60e5792abb84e9d423a435de4eab06b4c5abf5de",
- "created_time": "2022-08-15T12:02:46.000000Z",
- "modified_time": "2022-08-15T12:02:46.000000Z",
- "modified_user_time": "2022-08-15T12:02:46.000000Z",
- "umask": 4,
- "model": "Attachment",
- "attachable": {
- "id": 1,
- "hash": "1650600bd010a50897b50572382460965fed588a",
- "name": "Airborne",
- "model": "Program"
}, - "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"
}
}, - {
- "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": "Attachment",
- "attachable": {
- "id": 1,
- "hash": "583bf59445f18e7bf566020aa8134ddfa7c79113",
- "name": "Phoenix",
- "model": "Project"
}, - "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"
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 6,
- "total": 6,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1772729918210
}Get an attachment.
Returns either the attachment object or the binary file content, depending on the API server endpoint.
| disposition | string Default: "attachment" The content-disposition for the requested file. Only applicable when downloading a file from the Storage API. For |
Successful operation
Not Found
Unprocessable Content
{- "success": true,
- "hash": "1280b87bda7d9bd2c08ac39717ee157e7dcdd403",
- "data": {
- "id": 11,
- "hash": "9bfc4e9ba43da5c8e9d23c21f716b2562bfc8ae3",
- "name": "Effekte.xlsx",
- "extension": "xlsx",
- "mime": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
- "size": 8,
- "checksum": "989fc0523ff3981a816aa178f7e4631cd54051e694db8b873118a80d05473f17",
- "created_time": "2022-07-11T15:55:44.000000Z",
- "modified_time": "2022-07-11T15:55:44.000000Z",
- "modified_user_time": "2022-07-11T15:55:44.000000Z",
- "model": "Attachment",
- "attachable": {
- "id": 1,
- "hash": "7ce83d4d4d933305a5410a7311a6a6f133f37dd5",
- "name": "Working Capital",
- "model": "MeasurePackage"
}, - "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"
}
}, - "timestamp": 1772729918210
}Update an attachment.
Successful operation
Not Found
Unprocessable Content
{- "name": "falcon_contract.pdf"
}{- "success": true,
- "hash": "309da39c208b9cca615e8363eb7e56b5274c0c06",
- "data": {
- "id": 26,
- "hash": "8a46a135d200f5fba5603f9cb1201dbccb01df2a",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "3cfd50c8f73e1ef11fdac50a979586e2626610c6d7d8c8e4a9e404869554c8cc",
- "created_time": "2022-08-11T09:17:25.000000Z",
- "modified_time": "2022-08-11T09:17:42.000000Z",
- "modified_user_time": "2022-08-11T09:17:42.000000Z",
- "model": "Attachment",
- "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"
}
}, - "timestamp": 1660209462494
}Copy an attachment into a tree element.
A JSON object containing attachment information.
Successful operation
Not Found
{- "project": "583bf59445f18e7bf566020aa8134ddfa7c79113"
}{- "success": true,
- "hash": "97d170e1550eee4afc0af065b78cda302a97674c",
- "data": { },
- "timestamp": 1733494665418
}Relocate an attachment to a new parent.
A JSON object containing attachment information.
Successful operation
Not Found
{- "measure_package": "7ce83d4d4d933305a5410a7311a6a6f133f37dd5"
}{- "success": true,
- "hash": "b3f40b2ebdeb9e690256e61aca14bc0df121e5a4",
- "data": {
- "id": 26,
- "hash": "8a46a135d200f5fba5603f9cb1201dbccb01df2a",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "3cfd50c8f73e1ef11fdac50a979586e2626610c6d7d8c8e4a9e404869554c8cc",
- "created_time": "2022-08-11T09:17:25.000000Z",
- "modified_time": "2024-12-06T14:29:41.000000Z",
- "modified_user_time": "2024-12-06T14:29:41.000000Z",
- "model": "Attachment",
- "attachable": {
- "id": 1,
- "hash": "7ce83d4d4d933305a5410a7311a6a6f133f37dd5",
- "name": "Working Capital",
- "model": "MeasurePackage"
}, - "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"
}
}, - "timestamp": 1733495381822
}Restore an attachment.
Successful operation
Not Found
{- "success": true,
- "hash": "8739602554c7f3241958e3cc9b57fdecb474d508",
- "data": { },
- "timestamp": 1660210113096
}