{"openapi":"3.1.0","info":{"title":"Call-Off API","version":"0.1.0"},"paths":{"/projects":{"post":{"tags":["Projects"],"summary":"Create Project Route","operationId":"create_project_route_projects_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Projects"],"summary":"List Projects Route","operationId":"list_projects_route_projects_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProjectRead"},"title":"Response List Projects Route Projects Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}":{"get":{"tags":["Projects"],"summary":"Get Project Route","operationId":"get_project_route_projects__project_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Projects"],"summary":"Update Project Route","operationId":"update_project_route_projects__project_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Projects"],"summary":"Delete Project Route","operationId":"delete_project_route_projects__project_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages":{"post":{"tags":["Work Packages"],"summary":"Create Work Package Route","operationId":"create_work_package_route_projects__project_id__work_packages_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkPackageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkPackageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Work Packages"],"summary":"List Work Packages Route","operationId":"list_work_packages_route_projects__project_id__work_packages_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkPackageRead"},"title":"Response List Work Packages Route Projects  Project Id  Work Packages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages/{work_package_id}":{"get":{"tags":["Work Packages"],"summary":"Get Work Package Route","operationId":"get_work_package_route_projects__project_id__work_packages__work_package_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkPackageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Work Packages"],"summary":"Update Work Package Route","operationId":"update_work_package_route_projects__project_id__work_packages__work_package_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkPackageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkPackageRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Work Packages"],"summary":"Delete Work Package Route","operationId":"delete_work_package_route_projects__project_id__work_packages__work_package_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/programme/activities":{"post":{"tags":["Programme Activities"],"summary":"Create Activity Route","operationId":"create_activity_route_projects__project_id__programme_activities_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgrammeActivityCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgrammeActivityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Programme Activities"],"summary":"List Activities Route","operationId":"list_activities_route_projects__project_id__programme_activities_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProgrammeActivityRead"},"title":"Response List Activities Route Projects  Project Id  Programme Activities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/programme/activities/{activity_id}":{"get":{"tags":["Programme Activities"],"summary":"Get Activity Route","operationId":"get_activity_route_projects__project_id__programme_activities__activity_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Activity Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgrammeActivityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Programme Activities"],"summary":"Update Activity Route","operationId":"update_activity_route_projects__project_id__programme_activities__activity_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Activity Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgrammeActivityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgrammeActivityRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Programme Activities"],"summary":"Delete Activity Route","operationId":"delete_activity_route_projects__project_id__programme_activities__activity_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"activity_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Activity Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages/{work_package_id}/deliverables":{"post":{"tags":["Deliverables"],"summary":"Create Deliverable Route","operationId":"create_deliverable_route_projects__project_id__work_packages__work_package_id__deliverables_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Deliverables"],"summary":"List Deliverables Route","operationId":"list_deliverables_route_projects__project_id__work_packages__work_package_id__deliverables_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeliverableRead"},"title":"Response List Deliverables Route Projects  Project Id  Work Packages  Work Package Id  Deliverables Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages/{work_package_id}/deliverables/{deliverable_id}":{"get":{"tags":["Deliverables"],"summary":"Get Deliverable Route","operationId":"get_deliverable_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Deliverables"],"summary":"Update Deliverable Route","operationId":"update_deliverable_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Deliverables"],"summary":"Delete Deliverable Route","operationId":"delete_deliverable_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages/{work_package_id}/deliverables/{deliverable_id}/revisions":{"post":{"tags":["Deliverable Revisions"],"summary":"Create Deliverable Revision Route","operationId":"create_deliverable_revision_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRevisionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRevisionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Deliverable Revisions"],"summary":"List Deliverable Revisions Route","operationId":"list_deliverable_revisions_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DeliverableRevisionRead"},"title":"Response List Deliverable Revisions Route Projects  Project Id  Work Packages  Work Package Id  Deliverables  Deliverable Id  Revisions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages/{work_package_id}/deliverables/{deliverable_id}/revisions/{revision_id}":{"get":{"tags":["Deliverable Revisions"],"summary":"Get Deliverable Revision Route","operationId":"get_deliverable_revision_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRevisionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Deliverable Revisions"],"summary":"Update Deliverable Revision Route","operationId":"update_deliverable_revision_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRevisionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliverableRevisionRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Deliverable Revisions"],"summary":"Delete Deliverable Revision Route","operationId":"delete_deliverable_revision_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages/{work_package_id}/deliverables/{deliverable_id}/revisions/{revision_id}/approvals":{"post":{"tags":["Approvals"],"summary":"Create Approval Route","operationId":"create_approval_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__approvals_post","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Approvals"],"summary":"List Approvals Route","operationId":"list_approvals_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__approvals_get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":100,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApprovalRead"},"title":"Response List Approvals Route Projects  Project Id  Work Packages  Work Package Id  Deliverables  Deliverable Id  Revisions  Revision Id  Approvals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/projects/{project_id}/work-packages/{work_package_id}/deliverables/{deliverable_id}/revisions/{revision_id}/approvals/{approval_id}":{"get":{"tags":["Approvals"],"summary":"Get Approval Route","operationId":"get_approval_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__approvals__approval_id__get","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}},{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Approvals"],"summary":"Update Approval Route","operationId":"update_approval_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__approvals__approval_id__patch","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}},{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Approvals"],"summary":"Delete Approval Route","operationId":"delete_approval_route_projects__project_id__work_packages__work_package_id__deliverables__deliverable_id__revisions__revision_id__approvals__approval_id__delete","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Project Id"}},{"name":"work_package_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Work Package Id"}},{"name":"deliverable_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Deliverable Id"}},{"name":"revision_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Revision Id"}},{"name":"approval_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Approval Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ApprovalCreate":{"properties":{"approval_stage":{"type":"string","maxLength":100,"minLength":1,"title":"Approval Stage","default":"external_review"},"reviewer_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reviewer Name"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"pending"},"submitted_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Submitted Date"},"response_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Response Due Date"},"response_received_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Response Received Date"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"}},"type":"object","title":"ApprovalCreate"},"ApprovalRead":{"properties":{"approval_stage":{"type":"string","maxLength":100,"minLength":1,"title":"Approval Stage","default":"external_review"},"reviewer_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reviewer Name"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"pending"},"submitted_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Submitted Date"},"response_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Response Due Date"},"response_received_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Response Received Date"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"},"id":{"type":"string","format":"uuid","title":"Id"},"revision_id":{"type":"string","format":"uuid","title":"Revision Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","revision_id","created_at","updated_at"],"title":"ApprovalRead"},"ApprovalUpdate":{"properties":{"approval_stage":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Approval Stage"},"reviewer_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Reviewer Name"},"status":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Status"},"submitted_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Submitted Date"},"response_due_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Response Due Date"},"response_received_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Response Received Date"},"comments":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comments"}},"type":"object","title":"ApprovalUpdate"},"DeliverableCreate":{"properties":{"reference":{"type":"string","maxLength":150,"minLength":1,"title":"Reference"},"name":{"type":"string","maxLength":250,"minLength":1,"title":"Name"},"deliverable_type":{"type":"string","maxLength":100,"minLength":1,"title":"Deliverable Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"not_started"},"planned_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Issue Date"},"required_approval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Required Approval Date"}},"type":"object","required":["reference","name","deliverable_type"],"title":"DeliverableCreate"},"DeliverableRead":{"properties":{"reference":{"type":"string","maxLength":150,"minLength":1,"title":"Reference"},"name":{"type":"string","maxLength":250,"minLength":1,"title":"Name"},"deliverable_type":{"type":"string","maxLength":100,"minLength":1,"title":"Deliverable Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"not_started"},"planned_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Issue Date"},"required_approval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Required Approval Date"},"id":{"type":"string","format":"uuid","title":"Id"},"work_package_id":{"type":"string","format":"uuid","title":"Work Package Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["reference","name","deliverable_type","id","work_package_id","created_at","updated_at"],"title":"DeliverableRead"},"DeliverableRevisionCreate":{"properties":{"revision_code":{"type":"string","maxLength":30,"minLength":1,"title":"Revision Code"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"draft"},"issue_purpose":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Issue Purpose"},"issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Issue Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["revision_code"],"title":"DeliverableRevisionCreate"},"DeliverableRevisionRead":{"properties":{"revision_code":{"type":"string","maxLength":30,"minLength":1,"title":"Revision Code"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"draft"},"issue_purpose":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Issue Purpose"},"issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Issue Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"deliverable_id":{"type":"string","format":"uuid","title":"Deliverable Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["revision_code","id","deliverable_id","created_at","updated_at"],"title":"DeliverableRevisionRead"},"DeliverableRevisionUpdate":{"properties":{"revision_code":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Revision Code"},"status":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Status"},"issue_purpose":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Issue Purpose"},"issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Issue Date"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"DeliverableRevisionUpdate"},"DeliverableUpdate":{"properties":{"reference":{"anyOf":[{"type":"string","maxLength":150,"minLength":1},{"type":"null"}],"title":"Reference"},"name":{"anyOf":[{"type":"string","maxLength":250,"minLength":1},{"type":"null"}],"title":"Name"},"deliverable_type":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Deliverable Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Status"},"planned_issue_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Issue Date"},"required_approval_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Required Approval Date"}},"type":"object","title":"DeliverableUpdate"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ProgrammeActivityCreate":{"properties":{"activity_code":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Activity Code","description":"Leave blank to auto-generate the next available code (A-00010, A-00020, ...)."},"name":{"type":"string","maxLength":250,"minLength":1,"title":"Name"},"activity_type":{"type":"string","maxLength":50,"minLength":1,"title":"Activity Type","default":"task"},"work_package_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Work Package Id","description":"Compatibility field for the current single-Package Programme Activity link. New Package-identification workflows must not treat this as canonical; the target relationship is many-to-many."},"parent_activity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Activity Id"},"planned_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned Finish"},"is_milestone":{"type":"boolean","title":"Is Milestone","default":false},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"not_started"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","required":["name"],"title":"ProgrammeActivityCreate"},"ProgrammeActivityRead":{"properties":{"activity_code":{"type":"string","maxLength":100,"minLength":1,"title":"Activity Code"},"name":{"type":"string","maxLength":250,"minLength":1,"title":"Name"},"activity_type":{"type":"string","maxLength":50,"minLength":1,"title":"Activity Type","default":"task"},"work_package_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Work Package Id","description":"Compatibility field for the current single-Package Programme Activity link. New Package-identification workflows must not treat this as canonical; the target relationship is many-to-many."},"parent_activity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Activity Id"},"planned_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned Finish"},"is_milestone":{"type":"boolean","title":"Is Milestone","default":false},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"not_started"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"},"id":{"type":"string","format":"uuid","title":"Id"},"programme_revision_id":{"type":"string","format":"uuid","title":"Programme Revision Id"},"is_summary":{"type":"boolean","title":"Is Summary"},"percent_complete":{"type":"integer","title":"Percent Complete"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["activity_code","name","id","programme_revision_id","is_summary","percent_complete","created_at","updated_at"],"title":"ProgrammeActivityRead"},"ProgrammeActivityUpdate":{"properties":{"activity_code":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Activity Code"},"name":{"anyOf":[{"type":"string","maxLength":250,"minLength":1},{"type":"null"}],"title":"Name"},"activity_type":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Activity Type"},"work_package_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Work Package Id","description":"Compatibility field for the current single-Package Programme Activity link. New Package-identification workflows must not treat this as canonical; the target relationship is many-to-many."},"parent_activity_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Parent Activity Id"},"planned_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Planned Finish"},"is_milestone":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Milestone"},"status":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Status"},"notes":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notes"}},"type":"object","title":"ProgrammeActivityUpdate"},"ProjectCreate":{"properties":{"code":{"type":"string","maxLength":50,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"active"},"planned_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Finish"}},"additionalProperties":false,"type":"object","required":["code","name"],"title":"ProjectCreate"},"ProjectRead":{"properties":{"code":{"type":"string","maxLength":50,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"active"},"planned_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Finish"},"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","title":"Organization Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["code","name","id","organization_id","created_at","updated_at"],"title":"ProjectRead"},"ProjectUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"client_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Client Name"},"status":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Status"},"planned_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Finish"}},"type":"object","title":"ProjectUpdate"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WorkPackageCreate":{"properties":{"code":{"type":"string","maxLength":50,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"package_type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Package Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"active"},"planned_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Finish"},"required_on_site_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Required On Site Date"}},"type":"object","required":["code","name"],"title":"WorkPackageCreate"},"WorkPackageRead":{"properties":{"code":{"type":"string","maxLength":50,"minLength":1,"title":"Code"},"name":{"type":"string","maxLength":200,"minLength":1,"title":"Name"},"package_type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Package Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"type":"string","maxLength":30,"minLength":1,"title":"Status","default":"active"},"planned_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Finish"},"required_on_site_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Required On Site Date"},"id":{"type":"string","format":"uuid","title":"Id"},"project_id":{"type":"string","format":"uuid","title":"Project Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["code","name","id","project_id","created_at","updated_at"],"title":"WorkPackageRead"},"WorkPackageUpdate":{"properties":{"code":{"anyOf":[{"type":"string","maxLength":50,"minLength":1},{"type":"null"}],"title":"Code"},"name":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Name"},"package_type":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Package Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"type":"string","maxLength":30,"minLength":1},{"type":"null"}],"title":"Status"},"planned_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Start"},"planned_finish":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Planned Finish"},"required_on_site_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Required On Site Date"}},"type":"object","title":"WorkPackageUpdate"}}}}