cURL
curl --request POST \ --url https://api.n-3.co.uk/reports/drawdown \ --header 'Content-Type: application/json' \ --data '{ "project_id": {}, "month": 123, "year": 123, "edition": 123, "comments": "<string>", "aggregate": { "amount": 123, "surplus_shortfall": 123 }, "facility": [ { "facility_id": {}, "amount": 123, "surplus_shortfall": 123 } ], "riskStatus": [ { "input_setting_id": {}, "risk_status_legend_id": {}, "notes": "<string>" } ], "visit": { "date": "<string>", "notes": "<string>", "files": [ { "filename": "<string>", "s3_location": "<string>", "file_size": 123, "mime_type": "<string>" } ] } }'
{ "400": {}, "403": {}, "404": {}, "id": {}, "created_date": "<string>", "project_id": {}, "month": 123, "year": 123, "edition": 123, "template_id": {}, "type": "<string>" }
Create a new interim report with comprehensive drawdown tracking, risk assessments, and site visit documentation
Show aggregate
Show facility items
Show riskStatus items
Show visit
Show files items
{ "project_id": "123456789", "month": 6, "year": 2024, "edition": 1, "comments": "Q2 progress showing strong advancement on main structure", "aggregate": { "amount": 150000, "surplus_shortfall": 5000 }, "facility": [ { "facility_id": "987654321", "amount": 75000, "surplus_shortfall": 2500 }, { "facility_id": "987654322", "amount": 75000, "surplus_shortfall": 2500 } ], "riskStatus": [ { "input_setting_id": "111", "risk_status_legend_id": "222", "notes": "Risk level maintained at low due to good weather conditions" }, { "input_setting_id": "333", "risk_status_legend_id": "444", "notes": "Material delivery risk increased due to supply chain delays" } ], "visit": { "date": "2024-06-15", "notes": "Foundation work completed ahead of schedule. Steel frame installation proceeding well. No safety issues observed.", "files": [ { "filename": "foundation_complete.jpg", "s3_location": "projects/123456789/site-visits/2024-06/foundation_complete.jpg", "file_size": 2048576, "mime_type": "image/jpeg" }, { "filename": "steel_frame_progress.jpg", "s3_location": "projects/123456789/site-visits/2024-06/steel_frame_progress.jpg", "file_size": 1536789, "mime_type": "image/jpeg" } ] } }
{ "id": "789012345", "created_date": "2024-06-20T10:30:00.000Z", "project_id": "123456789", "month": 6, "year": 2024, "edition": 1, "template_id": "555666777", "type": "INTERIM_REPORT" }
REPORT_UPLOADED
{ "statusCode": 400, "message": "Project ID is required", "error": "Bad Request" }
{ "statusCode": 403, "message": "User does not have access to this project", "error": "Forbidden" }
{ "statusCode": 404, "message": "Project not found", "error": "Not Found" }
visit