Create a new attachment or update an existing attachment for a measure package.
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 measure package attachment information
Successful operation
Successful operation
Not Found
Unprocessable Content
{- "success": true,
- "hash": "2f33f85a6993dc4f7023cb47afa2be0c0ed28f1e",
- "data": {
- "id": 32,
- "hash": "598dd474cbcc426119ea299df64ec7571370ba43",
- "name": "falcon_contract.pdf",
- "extension": "pdf",
- "mime": "application/pdf",
- "size": 527267,
- "checksum": "51a15cf6cc9da00c5051089fda7add657e86ebab4ab0e88ee9637c51cc67153b",
- "created_time": "2022-08-15T11:35:17.000000Z",
- "modified_time": "2022-11-16T15:09:43.000000Z",
- "modified_user_time": "2022-11-16T15:09:43.000000Z",
- "umask": 4,
- "model": "MeasurePackageAttachment",
- "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": 1668611383434
}
Get all attachments for a measure package.
Successful operation
Unprocessable Content
{- "success": true,
- "hash": "88fac7a7628414acde5ac3baeadf54adad0ed798",
- "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": "MeasurePackageAttachment",
- "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"
}, - "measure_package": {
- "id": 1,
- "hash": "7ce83d4d4d933305a5410a7311a6a6f133f37dd5",
- "name": "Working Capital",
- "paused": false,
- "locked": false,
- "model": "MeasurePackage",
- "project": {
- "id": 1,
- "hash": "583bf59445f18e7bf566020aa8134ddfa7c79113",
- "name": "Phoenix",
- "model": "Project",
- "program": {
- "id": 1,
- "hash": "1650600bd010a50897b50572382460965fed588a",
- "name": "Airborne",
- "model": "Program"
}
}
}
}, - {
- "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": "MeasurePackageAttachment",
- "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"
}, - "measure_package": {
- "id": 1,
- "hash": "7ce83d4d4d933305a5410a7311a6a6f133f37dd5",
- "name": "Working Capital",
- "paused": false,
- "locked": false,
- "model": "MeasurePackage",
- "project": {
- "id": 1,
- "hash": "583bf59445f18e7bf566020aa8134ddfa7c79113",
- "name": "Phoenix",
- "model": "Project",
- "program": {
- "id": 1,
- "hash": "1650600bd010a50897b50572382460965fed588a",
- "name": "Airborne",
- "model": "Program"
}
}
}
}
], - "meta": {
- "page": 1,
- "first": 1,
- "last": 2,
- "total": 2,
- "limit": 1000,
- "pages": 1
}, - "timestamp": 1660563632838
}