{"openapi":"3.1.0","info":{"title":"BuildOS API","version":"1.1.0","description":"API for a developer's own project website or mobile app (published projects, blocks, units, progress, lead submission) and the read-only Data API (/data/*) for integrations: every module of your company's BuildOS data, one data:<module>:read scope per module. Personal data fields are returned only with data:personal:read; secrets and file paths are never returned. Website endpoints return only published projects and visible units."},"servers":[{"url":"https://buildos.ge/api/v1"}],"security":[{"bearerAuth":[]},{"apiKeyHeader":[]}],"paths":{"/data":{"get":{"summary":"Data resources readable with this key","description":"Any `data:*` scope. Lists resource names, filters and whether personal fields are included.","responses":{"200":{"description":"OK"},"401":{"description":"Invalid key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/projects":{"get":{"tags":["data: projects"],"summary":"List projects","description":"Scope: `data:projects:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"project_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"city":{},"status":{},"project_type":{},"created_at":{},"resource_capacity":{},"address":{"description":"Only with scope data:personal:read"},"latitude":{"description":"Only with scope data:personal:read"},"longitude":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/projects/{id}":{"get":{"tags":["data: projects"],"summary":"Get one projects","description":"Scope: `data:projects:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"city":{},"status":{},"project_type":{},"created_at":{},"resource_capacity":{},"address":{"description":"Only with scope data:personal:read"},"latitude":{"description":"Only with scope data:personal:read"},"longitude":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_zones":{"get":{"tags":["data: projects"],"summary":"List project_zones","description":"Scope: `data:projects:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"name":{},"zone_type":{},"block":{},"floor":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_zones/{id}":{"get":{"tags":["data: projects"],"summary":"Get one project_zones","description":"Scope: `data:projects:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"name":{},"zone_type":{},"block":{},"floor":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_milestones":{"get":{"tags":["data: projects"],"summary":"List project_milestones","description":"Scope: `data:projects:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"target_date":{},"status":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_milestones/{id}":{"get":{"tags":["data: projects"],"summary":"Get one project_milestones","description":"Scope: `data:projects:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"target_date":{},"status":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_partners":{"get":{"tags":["data: projects"],"summary":"List project_partners","description":"Scope: `data:projects:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"company_id":{},"status":{},"partner_role":{},"accepted_at":{},"created_at":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_partners/{id}":{"get":{"tags":["data: projects"],"summary":"Get one project_partners","description":"Scope: `data:projects:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"company_id":{},"status":{},"partner_role":{},"accepted_at":{},"created_at":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/block_locations":{"get":{"tags":["data: projects"],"summary":"List block_locations","description":"Scope: `data:projects:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"block":{},"latitude":{},"longitude":{},"radius_m":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/block_locations/{id}":{"get":{"tags":["data: projects"],"summary":"Get one block_locations","description":"Scope: `data:projects:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"block":{},"latitude":{},"longitude":{},"radius_m":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/massing_blocks":{"get":{"tags":["data: projects"],"summary":"List massing_blocks","description":"Scope: `data:projects:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"block":{},"floor_height_m":{},"ground_commercial":{},"parking_levels":{},"pos_x":{},"pos_z":{},"rotation_deg":{},"width_m":{},"depth_m":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/massing_blocks/{id}":{"get":{"tags":["data: projects"],"summary":"Get one massing_blocks","description":"Scope: `data:projects:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"block":{},"floor_height_m":{},"ground_commercial":{},"parking_levels":{},"pos_x":{},"pos_z":{},"rotation_deg":{},"width_m":{},"depth_m":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/units":{"get":{"tags":["data: sales"],"summary":"List units","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"block","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_number":{},"block":{},"floor":{},"gross_m2":{},"land_m2":{},"rooms":{},"unit_type":{},"offer_type":{},"view_type":{},"facade":{},"features":{},"list_price":{},"sale_price":{},"discount_amount":{},"currency":{},"status":{},"reserved_at":{},"reserved_until":{},"sold_at":{},"handed_over_at":{},"warranty_months":{},"web_visible":{},"campaign_id":{},"customer_id":{},"updated_at":{},"customer_name":{"description":"Only with scope data:personal:read"},"customer_phone":{"description":"Only with scope data:personal:read"},"customer_email":{"description":"Only with scope data:personal:read"},"customer_tax_id":{"description":"Only with scope data:personal:read"},"payment_method":{"description":"Only with scope data:personal:read"},"bank_name":{"description":"Only with scope data:personal:read"},"loan_amount":{"description":"Only with scope data:personal:read"},"loan_status":{"description":"Only with scope data:personal:read"},"agent_name":{"description":"Only with scope data:personal:read"},"commission_pct":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/units/{id}":{"get":{"tags":["data: sales"],"summary":"Get one units","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_number":{},"block":{},"floor":{},"gross_m2":{},"land_m2":{},"rooms":{},"unit_type":{},"offer_type":{},"view_type":{},"facade":{},"features":{},"list_price":{},"sale_price":{},"discount_amount":{},"currency":{},"status":{},"reserved_at":{},"reserved_until":{},"sold_at":{},"handed_over_at":{},"warranty_months":{},"web_visible":{},"campaign_id":{},"customer_id":{},"updated_at":{},"customer_name":{"description":"Only with scope data:personal:read"},"customer_phone":{"description":"Only with scope data:personal:read"},"customer_email":{"description":"Only with scope data:personal:read"},"customer_tax_id":{"description":"Only with scope data:personal:read"},"payment_method":{"description":"Only with scope data:personal:read"},"bank_name":{"description":"Only with scope data:personal:read"},"loan_amount":{"description":"Only with scope data:personal:read"},"loan_status":{"description":"Only with scope data:personal:read"},"agent_name":{"description":"Only with scope data:personal:read"},"commission_pct":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_payments":{"get":{"tags":["data: sales"],"summary":"List unit_payments","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"kind":{},"installment_no":{},"due_date":{},"amount":{},"currency":{},"paid_at":{},"paid_amount":{},"due_basis":{},"milestone_id":{},"grace_days":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_payments/{id}":{"get":{"tags":["data: sales"],"summary":"Get one unit_payments","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"kind":{},"installment_no":{},"due_date":{},"amount":{},"currency":{},"paid_at":{},"paid_amount":{},"due_basis":{},"milestone_id":{},"grace_days":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_price_history":{"get":{"tags":["data: sales"],"summary":"List unit_price_history","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"old_price":{},"new_price":{},"reason":{},"note":{},"changed_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_price_history/{id}":{"get":{"tags":["data: sales"],"summary":"Get one unit_price_history","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"old_price":{},"new_price":{},"reason":{},"note":{},"changed_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_changes":{"get":{"tags":["data: sales"],"summary":"List unit_changes","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"title":{},"description":{},"category":{},"status":{},"currency":{},"customer_price":{},"payment_status":{},"done_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_changes/{id}":{"get":{"tags":["data: sales"],"summary":"Get one unit_changes","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"title":{},"description":{},"category":{},"status":{},"currency":{},"customer_price":{},"payment_status":{},"done_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_requests":{"get":{"tags":["data: sales"],"summary":"List unit_requests","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"kind":{},"status":{},"replied_at":{},"created_at":{},"message":{"description":"Only with scope data:personal:read"},"reply":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_requests/{id}":{"get":{"tags":["data: sales"],"summary":"Get one unit_requests","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"kind":{},"status":{},"replied_at":{},"created_at":{},"message":{"description":"Only with scope data:personal:read"},"reply":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_leases":{"get":{"tags":["data: sales"],"summary":"List unit_leases","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"monthly_rent":{},"currency":{},"start_date":{},"term_months":{},"ended_at":{},"created_at":{},"tenant_name":{"description":"Only with scope data:personal:read"},"tenant_phone":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_leases/{id}":{"get":{"tags":["data: sales"],"summary":"Get one unit_leases","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"unit_id":{},"project_id":{},"monthly_rent":{},"currency":{},"start_date":{},"term_months":{},"ended_at":{},"created_at":{},"tenant_name":{"description":"Only with scope data:personal:read"},"tenant_phone":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/customers":{"get":{"tags":["data: sales"],"summary":"List customers","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"kind":{},"locale":{},"created_at":{},"updated_at":{},"full_name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"tax_id":{"description":"Only with scope data:personal:read"},"address":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/customers/{id}":{"get":{"tags":["data: sales"],"summary":"Get one customers","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"kind":{},"locale":{},"created_at":{},"updated_at":{},"full_name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"tax_id":{"description":"Only with scope data:personal:read"},"address":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_leads":{"get":{"tags":["data: sales"],"summary":"List sales_leads","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"stage","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"source","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"customer_id":{},"source":{},"interested_type":{},"rooms":{},"budget":{},"currency":{},"stage":{},"reached_stage":{},"lost_reason":{},"follow_up_date":{},"closed_at":{},"created_at":{},"updated_at":{},"name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"},"lost_note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_leads/{id}":{"get":{"tags":["data: sales"],"summary":"Get one sales_leads","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"customer_id":{},"source":{},"interested_type":{},"rooms":{},"budget":{},"currency":{},"stage":{},"reached_stage":{},"lost_reason":{},"follow_up_date":{},"closed_at":{},"created_at":{},"updated_at":{},"name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"},"lost_note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_lead_activities":{"get":{"tags":["data: sales"],"summary":"List sales_lead_activities","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"lead_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"lead_id":{},"kind":{},"outcome":{},"duration_sec":{},"created_at":{},"body":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_lead_activities/{id}":{"get":{"tags":["data: sales"],"summary":"Get one sales_lead_activities","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"lead_id":{},"kind":{},"outcome":{},"duration_sec":{},"created_at":{},"body":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_quotes":{"get":{"tags":["data: sales"],"summary":"List sales_quotes","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"lead_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"lead_id":{},"quote_no":{},"lang":{},"currency":{},"items":{},"list_total":{},"discount_total":{},"net_total":{},"plan":{},"valid_until":{},"status":{},"sent_via":{},"sent_at":{},"viewed_at":{},"accepted_at":{},"campaign_id":{},"created_at":{},"updated_at":{},"customer_name":{"description":"Only with scope data:personal:read"},"customer_phone":{"description":"Only with scope data:personal:read"},"customer_email":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_quotes/{id}":{"get":{"tags":["data: sales"],"summary":"Get one sales_quotes","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"lead_id":{},"quote_no":{},"lang":{},"currency":{},"items":{},"list_total":{},"discount_total":{},"net_total":{},"plan":{},"valid_until":{},"status":{},"sent_via":{},"sent_at":{},"viewed_at":{},"accepted_at":{},"campaign_id":{},"created_at":{},"updated_at":{},"customer_name":{"description":"Only with scope data:personal:read"},"customer_phone":{"description":"Only with scope data:personal:read"},"customer_email":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_campaigns":{"get":{"tags":["data: sales"],"summary":"List sales_campaigns","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"name":{},"code":{},"kind":{},"value":{},"cash_only":{},"max_units":{},"starts_on":{},"ends_on":{},"active":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_campaigns/{id}":{"get":{"tags":["data: sales"],"summary":"Get one sales_campaigns","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"name":{},"code":{},"kind":{},"value":{},"cash_only":{},"max_units":{},"starts_on":{},"ends_on":{},"active":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_price_premiums":{"get":{"tags":["data: sales"],"summary":"List sales_price_premiums","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"kind":{},"floor_from":{},"floor_to":{},"match_value":{},"adjust_type":{},"amount":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_price_premiums/{id}":{"get":{"tags":["data: sales"],"summary":"Get one sales_price_premiums","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"kind":{},"floor_from":{},"floor_to":{},"match_value":{},"adjust_type":{},"amount":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_targets":{"get":{"tags":["data: sales"],"summary":"List sales_targets","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"month":{},"target_count":{},"target_amount":{},"currency":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_targets/{id}":{"get":{"tags":["data: sales"],"summary":"Get one sales_targets","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"month":{},"target_count":{},"target_amount":{},"currency":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_discount_requests":{"get":{"tags":["data: sales"],"summary":"List sales_discount_requests","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"lead_id":{},"list_price":{},"discount_amount":{},"currency":{},"reason":{},"status":{},"decided_at":{},"decision_note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/sales_discount_requests/{id}":{"get":{"tags":["data: sales"],"summary":"Get one sales_discount_requests","description":"Scope: `data:sales:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"lead_id":{},"list_price":{},"discount_amount":{},"currency":{},"reason":{},"status":{},"decided_at":{},"decision_note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_sales_settings":{"get":{"tags":["data: sales"],"summary":"List project_sales_settings","description":"Scope: `data:sales:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"project_id":{},"base_mode":{},"base_price":{},"reservation_days":{},"auto_release":{},"milestone_grace_days":{},"reminder_every_days":{},"late_interest_rate":{},"late_interest_basis":{},"late_interest_grace_days":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_contracts":{"get":{"tags":["data: contracts"],"summary":"List project_contracts","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"subcontractor_company_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"work_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"subcontractor_company_id":{},"employer_company_id":{},"title":{},"contract_number":{},"work_title":{},"work_type":{},"trade_code":{},"total_amount":{},"currency":{},"retention_rate":{},"overhead_pct":{},"profit_pct":{},"vat_pct":{},"penalty_per_day":{},"advance_amount":{},"advance_deduction_pct":{},"advance_base":{},"materials_by_contractor":{},"status":{},"doc_status":{},"doc_version":{},"signed_date":{},"deadline":{},"tender_id":{},"created_at":{},"customer_legal_name":{"description":"Only with scope data:personal:read"},"customer_tax_id":{"description":"Only with scope data:personal:read"},"contractor_legal_name":{"description":"Only with scope data:personal:read"},"contractor_tax_id":{"description":"Only with scope data:personal:read"},"cadastral_code":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_contracts/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one project_contracts","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"subcontractor_company_id":{},"employer_company_id":{},"title":{},"contract_number":{},"work_title":{},"work_type":{},"trade_code":{},"total_amount":{},"currency":{},"retention_rate":{},"overhead_pct":{},"profit_pct":{},"vat_pct":{},"penalty_per_day":{},"advance_amount":{},"advance_deduction_pct":{},"advance_base":{},"materials_by_contractor":{},"status":{},"doc_status":{},"doc_version":{},"signed_date":{},"deadline":{},"tender_id":{},"created_at":{},"customer_legal_name":{"description":"Only with scope data:personal:read"},"customer_tax_id":{"description":"Only with scope data:personal:read"},"contractor_legal_name":{"description":"Only with scope data:personal:read"},"contractor_tax_id":{"description":"Only with scope data:personal:read"},"cadastral_code":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/contract_items":{"get":{"tags":["data: contracts"],"summary":"List contract_items","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"section","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"contract_id":{},"code":{},"section":{},"is_section":{},"title":{},"title_alt":{},"unit":{},"quantity":{},"unit_price":{},"material_unit_price":{},"labor_unit_price":{},"machinery_unit_price":{},"recipe_id":{},"change_order_id":{},"parent_item_id":{},"parent_ratio":{},"sort_order":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/contract_items/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one contract_items","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"contract_id":{},"code":{},"section":{},"is_section":{},"title":{},"title_alt":{},"unit":{},"quantity":{},"unit_price":{},"material_unit_price":{},"labor_unit_price":{},"machinery_unit_price":{},"recipe_id":{},"change_order_id":{},"parent_item_id":{},"parent_ratio":{},"sort_order":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/change_orders":{"get":{"tags":["data: contracts"],"summary":"List change_orders","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"contract_id":{},"title":{},"description":{},"cost_impact":{},"schedule_impact_days":{},"status":{},"recorded_at":{},"items_applied_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/change_orders/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one change_orders","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"contract_id":{},"title":{},"description":{},"cost_impact":{},"schedule_impact_days":{},"status":{},"recorded_at":{},"items_applied_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/change_order_items":{"get":{"tags":["data: contracts"],"summary":"List change_order_items","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"change_order_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"change_order_id":{},"code":{},"title":{},"title_alt":{},"unit":{},"quantity":{},"material_unit_price":{},"labor_unit_price":{},"machinery_unit_price":{},"sort_order":{},"target_item_id":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/change_order_items/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one change_order_items","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"change_order_id":{},"code":{},"title":{},"title_alt":{},"unit":{},"quantity":{},"material_unit_price":{},"labor_unit_price":{},"machinery_unit_price":{},"sort_order":{},"target_item_id":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/progress_payments":{"get":{"tags":["data: contracts"],"summary":"List progress_payments","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"contract_id":{},"act_number":{},"period_title":{},"period_end":{},"source":{},"status":{},"currency":{},"exchange_rate_to_gel":{},"base_amount":{},"gross_amount":{},"overhead_amount":{},"profit_amount":{},"vat_amount":{},"retention_rate":{},"retention_amount":{},"penalty_deductions":{},"advance_deduction":{},"net_payable":{},"paid_on":{},"paid_amount":{},"submitted_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/progress_payments/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one progress_payments","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"contract_id":{},"act_number":{},"period_title":{},"period_end":{},"source":{},"status":{},"currency":{},"exchange_rate_to_gel":{},"base_amount":{},"gross_amount":{},"overhead_amount":{},"profit_amount":{},"vat_amount":{},"retention_rate":{},"retention_amount":{},"penalty_deductions":{},"advance_deduction":{},"net_payable":{},"paid_on":{},"paid_amount":{},"submitted_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/progress_payment_items":{"get":{"tags":["data: contracts"],"summary":"List progress_payment_items","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"progress_payment_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_item_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"review_status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"progress_payment_id":{},"contract_item_id":{},"code":{},"section":{},"title":{},"title_alt":{},"unit":{},"contract_qty":{},"qty_previous":{},"qty_period":{},"qty_claimed":{},"qty_cumulative":{},"unit_price":{},"material_unit_price":{},"labor_unit_price":{},"machinery_unit_price":{},"amount":{},"sort_order":{},"review_status":{},"review_note":{},"reviewed_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/progress_payment_items/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one progress_payment_items","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"progress_payment_id":{},"contract_item_id":{},"code":{},"section":{},"title":{},"title_alt":{},"unit":{},"contract_qty":{},"qty_previous":{},"qty_period":{},"qty_claimed":{},"qty_cumulative":{},"unit_price":{},"material_unit_price":{},"labor_unit_price":{},"machinery_unit_price":{},"amount":{},"sort_order":{},"review_status":{},"review_note":{},"reviewed_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/subcontractor_compliance_documents":{"get":{"tags":["data: contracts"],"summary":"List subcontractor_compliance_documents","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"document_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"contract_id":{},"document_type":{},"title":{},"expiry_date":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/subcontractor_compliance_documents/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one subcontractor_compliance_documents","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"contract_id":{},"document_type":{},"title":{},"expiry_date":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/budget_lines":{"get":{"tags":["data: contracts"],"summary":"List budget_lines","description":"Scope: `data:contracts:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"category":{},"planned_amount":{},"actual_amount":{},"currency":{},"notes":{},"tracks_direct_labor":{},"tracks_procurement":{},"tracks_equipment":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/budget_lines/{id}":{"get":{"tags":["data: contracts"],"summary":"Get one budget_lines","description":"Scope: `data:contracts:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"category":{},"planned_amount":{},"actual_amount":{},"currency":{},"notes":{},"tracks_direct_labor":{},"tracks_procurement":{},"tracks_equipment":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/takeoff_entries":{"get":{"tags":["data: takeoff"],"summary":"List takeoff_entries","description":"Scope: `data:takeoff:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"zone_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"recipe_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"zone_id":{},"recipe_id":{},"contract_item_id":{},"title":{},"category":{},"trade":{},"quantity":{},"unit":{},"measurements":{},"notes":{},"recorded_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/takeoff_entries/{id}":{"get":{"tags":["data: takeoff"],"summary":"Get one takeoff_entries","description":"Scope: `data:takeoff:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"zone_id":{},"recipe_id":{},"contract_item_id":{},"title":{},"category":{},"trade":{},"quantity":{},"unit":{},"measurements":{},"notes":{},"recorded_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/takeoff_recipes":{"get":{"tags":["data: takeoff"],"summary":"List takeoff_recipes","description":"Scope: `data:takeoff:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"title":{},"category":{},"unit":{},"notes":{},"sort_order":{},"is_active":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/takeoff_recipes/{id}":{"get":{"tags":["data: takeoff"],"summary":"Get one takeoff_recipes","description":"Scope: `data:takeoff:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"title":{},"category":{},"unit":{},"notes":{},"sort_order":{},"is_active":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/takeoff_recipe_materials":{"get":{"tags":["data: takeoff"],"summary":"List takeoff_recipe_materials","description":"Scope: `data:takeoff:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"recipe_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"recipe_id":{},"material_id":{},"material_name":{},"unit":{},"qty_per_unit":{},"waste_pct":{},"pack_size":{},"pack_label":{},"sort_order":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/takeoff_recipe_materials/{id}":{"get":{"tags":["data: takeoff"],"summary":"Get one takeoff_recipe_materials","description":"Scope: `data:takeoff:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"recipe_id":{},"material_id":{},"material_name":{},"unit":{},"qty_per_unit":{},"waste_pct":{},"pack_size":{},"pack_label":{},"sort_order":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_work_items":{"get":{"tags":["data: takeoff"],"summary":"List unit_work_items","description":"Scope: `data:takeoff:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"zone_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"zone_id":{},"contract_id":{},"title":{},"category":{},"trade":{},"is_done":{},"done_at":{},"done_by_company_id":{},"is_skipped":{},"skip_reason":{},"is_critical":{},"planned_date":{},"notes":{},"sort_order":{},"created_at":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/unit_work_items/{id}":{"get":{"tags":["data: takeoff"],"summary":"Get one unit_work_items","description":"Scope: `data:takeoff:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"zone_id":{},"contract_id":{},"title":{},"category":{},"trade":{},"is_done":{},"done_at":{},"done_by_company_id":{},"is_skipped":{},"skip_reason":{},"is_critical":{},"planned_date":{},"notes":{},"sort_order":{},"created_at":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/work_item_catalog":{"get":{"tags":["data: takeoff"],"summary":"List work_item_catalog","description":"Scope: `data:takeoff:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"scope","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"scope":{},"title":{},"category":{},"sort_order":{},"is_active":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/work_item_catalog/{id}":{"get":{"tags":["data: takeoff"],"summary":"Get one work_item_catalog","description":"Scope: `data:takeoff:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"scope":{},"title":{},"category":{},"sort_order":{},"is_active":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/materials":{"get":{"tags":["data: procurement"],"summary":"List materials","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"unit":{},"pack_size":{},"pack_label":{},"min_stock":{},"unit_cost":{},"unit_cost_currency":{},"is_active":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/materials/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one materials","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"unit":{},"pack_size":{},"pack_label":{},"min_stock":{},"unit_cost":{},"unit_cost_currency":{},"is_active":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/catalog_items":{"get":{"tags":["data: procurement"],"summary":"List catalog_items","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"category":{},"name":{},"spec":{},"size":{},"brand":{},"unit":{},"is_active":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/catalog_items/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one catalog_items","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"category":{},"name":{},"spec":{},"size":{},"brand":{},"unit":{},"is_active":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/suppliers":{"get":{"tags":["data: procurement"],"summary":"List suppliers","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"created_at":{},"contact_name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"tax_id":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/suppliers/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one suppliers","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"created_at":{},"contact_name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"tax_id":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/material_requests":{"get":{"tags":["data: procurement"],"summary":"List material_requests","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"supplier_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"item_name":{},"quantity":{},"unit":{},"status":{},"material_id":{},"catalog_item_id":{},"supplier_id":{},"supplier_name":{},"order_no":{},"ordered_at":{},"unit_price":{},"order_currency":{},"domestic_price_est":{},"import_price_est":{},"received_qty":{},"received_at":{},"needed_by":{},"source_activity_id":{},"rejected_reason":{},"rejected_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/material_requests/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one material_requests","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"item_name":{},"quantity":{},"unit":{},"status":{},"material_id":{},"catalog_item_id":{},"supplier_id":{},"supplier_name":{},"order_no":{},"ordered_at":{},"unit_price":{},"order_currency":{},"domestic_price_est":{},"import_price_est":{},"received_qty":{},"received_at":{},"needed_by":{},"source_activity_id":{},"rejected_reason":{},"rejected_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/material_quotes":{"get":{"tags":["data: procurement"],"summary":"List material_quotes","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"request_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"supplier_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"request_id":{},"supplier_id":{},"supplier_name":{},"unit_price":{},"currency":{},"lead_days":{},"note":{},"selected":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/material_quotes/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one material_quotes","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"request_id":{},"supplier_id":{},"supplier_name":{},"unit_price":{},"currency":{},"lead_days":{},"note":{},"selected":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/goods_receipts":{"get":{"tags":["data: procurement"],"summary":"List goods_receipts","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"request_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"request_id":{},"item_name":{},"unit":{},"quantity":{},"waybill_no":{},"rs_waybill_id":{},"supplier_name":{},"gross_kg":{},"tare_kg":{},"net_kg":{},"delivered_at":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/goods_receipts/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one goods_receipts","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"request_id":{},"item_name":{},"unit":{},"quantity":{},"waybill_no":{},"rs_waybill_id":{},"supplier_name":{},"gross_kg":{},"tare_kg":{},"net_kg":{},"delivered_at":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warehouses":{"get":{"tags":["data: procurement"],"summary":"List warehouses","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"created_at":{},"address":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warehouses/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one warehouses","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"created_at":{},"address":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warehouse_projects":{"get":{"tags":["data: procurement"],"summary":"List warehouse_projects","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"project_id":{},"warehouse_id":{},"is_default":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/site_inventory":{"get":{"tags":["data: procurement"],"summary":"List site_inventory","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"material_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"warehouse_id":{},"material_id":{},"item_name":{},"unit":{},"quantity_on_hand":{},"min_threshold":{},"avg_cost":{},"cost_currency":{},"notes":{},"created_at":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/site_inventory/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one site_inventory","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"warehouse_id":{},"material_id":{},"item_name":{},"unit":{},"quantity_on_hand":{},"min_threshold":{},"avg_cost":{},"cost_currency":{},"notes":{},"created_at":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_movements":{"get":{"tags":["data: procurement"],"summary":"List stock_movements","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"material_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"work_log_entry_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"warehouse_id":{},"inventory_item_id":{},"work_log_entry_id":{},"material_id":{},"material_name":{},"unit":{},"kind":{},"delta":{},"quantity_needed":{},"quantity_deducted":{},"unit_cost":{},"cost_currency":{},"status":{},"ref":{},"note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_movements/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one stock_movements","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"warehouse_id":{},"inventory_item_id":{},"work_log_entry_id":{},"material_id":{},"material_name":{},"unit":{},"kind":{},"delta":{},"quantity_needed":{},"quantity_deducted":{},"unit_cost":{},"cost_currency":{},"status":{},"ref":{},"note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_aliases":{"get":{"tags":["data: procurement"],"summary":"List stock_aliases","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"material_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"source_name":{},"source_key":{},"source_unit":{},"material_id":{},"factor":{},"created_at":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_aliases/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one stock_aliases","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"source_name":{},"source_key":{},"source_unit":{},"material_id":{},"factor":{},"created_at":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/internal_transfers":{"get":{"tags":["data: procurement"],"summary":"List internal_transfers","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"from_warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"to_warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"waybill_id":{},"waybill_number":{},"from_warehouse_id":{},"to_warehouse_id":{},"items":{},"status":{},"created_at":{},"applied_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/internal_transfers/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one internal_transfers","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"waybill_id":{},"waybill_number":{},"from_warehouse_id":{},"to_warehouse_id":{},"items":{},"status":{},"created_at":{},"applied_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_counts":{"get":{"tags":["data: procurement"],"summary":"List stock_counts","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"warehouse_id":{},"project_id":{},"count_no":{},"count_date":{},"note":{},"applied":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_counts/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one stock_counts","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"warehouse_id":{},"project_id":{},"count_no":{},"count_date":{},"note":{},"applied":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_count_lines":{"get":{"tags":["data: procurement"],"summary":"List stock_count_lines","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"count_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"count_id":{},"inventory_item_id":{},"item_name":{},"unit":{},"book_qty":{},"counted_qty":{},"diff":{},"pct":{},"level":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/stock_count_lines/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one stock_count_lines","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"count_id":{},"inventory_item_id":{},"item_name":{},"unit":{},"book_qty":{},"counted_qty":{},"diff":{},"pct":{},"level":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/writeoff_acts":{"get":{"tags":["data: procurement"],"summary":"List writeoff_acts","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"progress_payment_id":{},"number":{},"payment_act_number":{},"contract_title":{},"period_from":{},"period_to":{},"status":{},"totals":{},"documented_count":{},"partial_count":{},"undocumented_count":{},"generated_at":{},"submitted_at":{},"verified_at":{},"approved_at":{},"created_at":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/writeoff_acts/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one writeoff_acts","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"progress_payment_id":{},"number":{},"payment_act_number":{},"contract_title":{},"period_from":{},"period_to":{},"status":{},"totals":{},"documented_count":{},"partial_count":{},"undocumented_count":{},"generated_at":{},"submitted_at":{},"verified_at":{},"approved_at":{},"created_at":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/petty_cash_entries":{"get":{"tags":["data: procurement"],"summary":"List petty_cash_entries","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"kind":{},"amount":{},"vat_amount":{},"currency":{},"entry_date":{},"vendor":{},"description":{},"category":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/petty_cash_entries/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one petty_cash_entries","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"kind":{},"amount":{},"vat_amount":{},"currency":{},"entry_date":{},"vendor":{},"description":{},"category":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/petty_cash_closings":{"get":{"tags":["data: procurement"],"summary":"List petty_cash_closings","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"month":{},"system_balance":{},"counted_amount":{},"difference":{},"note":{},"closed_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/petty_cash_closings/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one petty_cash_closings","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"month":{},"system_balance":{},"counted_amount":{},"difference":{},"note":{},"closed_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/rs_waybill_imports":{"get":{"tags":["data: procurement"],"summary":"List rs_waybill_imports","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"waybill_id":{},"waybill_number":{},"waybill_date":{},"project_id":{},"warehouse_id":{},"seller_name":{},"seller_tin":{},"amount":{},"status":{},"imported_at":{},"decided_at":{},"note":{},"rs_alert":{},"rs_alert_at":{},"rs_new_amount":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/rs_waybill_imports/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one rs_waybill_imports","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"waybill_id":{},"waybill_number":{},"waybill_date":{},"project_id":{},"warehouse_id":{},"seller_name":{},"seller_tin":{},"amount":{},"status":{},"imported_at":{},"decided_at":{},"note":{},"rs_alert":{},"rs_alert_at":{},"rs_new_amount":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/rs_returns":{"get":{"tags":["data: procurement"],"summary":"List rs_returns","description":"Scope: `data:procurement:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"warehouse_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"import_id":{},"waybill_id":{},"waybill_number":{},"warehouse_id":{},"items":{},"status":{},"created_at":{},"applied_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/rs_returns/{id}":{"get":{"tags":["data: procurement"],"summary":"Get one rs_returns","description":"Scope: `data:procurement:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"import_id":{},"waybill_id":{},"waybill_number":{},"warehouse_id":{},"items":{},"status":{},"created_at":{},"applied_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/workers":{"get":{"tags":["data: hr"],"summary":"List workers","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"team_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"trade","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"is_active","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"employment_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"trade":{},"team_id":{},"employment_type":{},"is_active":{},"hire_date":{},"termination_date":{},"created_at":{},"full_name":{"description":"Only with scope data:personal:read"},"daily_rate":{"description":"Only with scope data:personal:read"},"currency":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/workers/{id}":{"get":{"tags":["data: hr"],"summary":"Get one workers","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"trade":{},"team_id":{},"employment_type":{},"is_active":{},"hire_date":{},"termination_date":{},"created_at":{},"full_name":{"description":"Only with scope data:personal:read"},"daily_rate":{"description":"Only with scope data:personal:read"},"currency":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_teams":{"get":{"tags":["data: hr"],"summary":"List worker_teams","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"foreman_worker_id":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_teams/{id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_teams","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"foreman_worker_id":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_attendance":{"get":{"tags":["data: hr"],"summary":"List worker_attendance","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"worker_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"work_date","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"worker_id":{},"project_id":{},"work_date":{},"hours":{},"overtime_hours":{},"activity_id":{},"unit_id":{},"zone_id":{},"takeoff_entry_id":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_attendance/{id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_attendance","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"worker_id":{},"project_id":{},"work_date":{},"hours":{},"overtime_hours":{},"activity_id":{},"unit_id":{},"zone_id":{},"takeoff_entry_id":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_checkins":{"get":{"tags":["data: hr"],"summary":"List worker_checkins","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"worker_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"worker_id":{},"project_id":{},"kind":{},"at":{},"method":{},"flagged":{},"distance_m":{},"created_at":{},"lat":{"description":"Only with scope data:personal:read"},"lng":{"description":"Only with scope data:personal:read"},"accuracy_m":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_checkins/{id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_checkins","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"worker_id":{},"project_id":{},"kind":{},"at":{},"method":{},"flagged":{},"distance_m":{},"created_at":{},"lat":{"description":"Only with scope data:personal:read"},"lng":{"description":"Only with scope data:personal:read"},"accuracy_m":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_leaves":{"get":{"tags":["data: hr"],"summary":"List worker_leaves","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"worker_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"leave_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"worker_id":{},"leave_type":{},"start_date":{},"end_date":{},"status":{},"requested_by_worker":{},"decided_at":{},"created_at":{},"note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_leaves/{id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_leaves","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"worker_id":{},"leave_type":{},"start_date":{},"end_date":{},"status":{},"requested_by_worker":{},"decided_at":{},"created_at":{},"note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_payroll_items":{"get":{"tags":["data: hr"],"summary":"List worker_payroll_items","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"worker_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"period","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"worker_id":{},"period":{},"kind":{},"created_at":{},"amount":{"description":"Only with scope data:personal:read"},"currency":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_payroll_items/{id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_payroll_items","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"worker_id":{},"period":{},"kind":{},"created_at":{},"amount":{"description":"Only with scope data:personal:read"},"currency":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_documents":{"get":{"tags":["data: hr"],"summary":"List worker_documents","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"worker_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"doc_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"worker_id":{},"doc_type":{},"title":{},"issue_date":{},"expiry_date":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_documents/{id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_documents","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"worker_id":{},"doc_type":{},"title":{},"issue_date":{},"expiry_date":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_assets":{"get":{"tags":["data: hr"],"summary":"List worker_assets","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"worker_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"worker_id":{},"category":{},"item_name":{},"quantity":{},"issued_at":{},"returned_at":{},"note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_assets/{id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_assets","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"worker_id":{},"category":{},"item_name":{},"quantity":{},"issued_at":{},"returned_at":{},"note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_profiles":{"get":{"tags":["data: hr"],"summary":"List worker_profiles","description":"Scope: `data:hr:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"worker_id":{},"gender":{},"nationality":{},"city":{},"education":{},"shirt_size":{},"shoe_size":{},"updated_at":{},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"personal_id":{"description":"Only with scope data:personal:read"},"birth_date":{"description":"Only with scope data:personal:read"},"address":{"description":"Only with scope data:personal:read"},"emergency_name":{"description":"Only with scope data:personal:read"},"emergency_phone":{"description":"Only with scope data:personal:read"},"marital_status":{"description":"Only with scope data:personal:read"},"blood_type":{"description":"Only with scope data:personal:read"},"iban":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/worker_profiles/{worker_id}":{"get":{"tags":["data: hr"],"summary":"Get one worker_profiles","description":"Scope: `data:hr:read`. 404 if the record belongs to another company.","parameters":[{"name":"worker_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"worker_id":{},"gender":{},"nationality":{},"city":{},"education":{},"shirt_size":{},"shoe_size":{},"updated_at":{},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"personal_id":{"description":"Only with scope data:personal:read"},"birth_date":{"description":"Only with scope data:personal:read"},"address":{"description":"Only with scope data:personal:read"},"emergency_name":{"description":"Only with scope data:personal:read"},"emergency_phone":{"description":"Only with scope data:personal:read"},"marital_status":{"description":"Only with scope data:personal:read"},"blood_type":{"description":"Only with scope data:personal:read"},"iban":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/work_log_entries":{"get":{"tags":["data: site"],"summary":"List work_log_entries","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"zone_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"qc_status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"entry_date","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"company_id":{},"contract_id":{},"contract_item_id":{},"takeoff_entry_id":{},"task_id":{},"activity_id":{},"progress_payment_id":{},"unit_id":{},"zone_id":{},"block":{},"floor":{},"entry_date":{},"description":{},"quantity":{},"unit":{},"notes":{},"qc_status":{},"qc_reason":{},"reviewed_at":{},"recorded_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/work_log_entries/{id}":{"get":{"tags":["data: site"],"summary":"Get one work_log_entries","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"company_id":{},"contract_id":{},"contract_item_id":{},"takeoff_entry_id":{},"task_id":{},"activity_id":{},"progress_payment_id":{},"unit_id":{},"zone_id":{},"block":{},"floor":{},"entry_date":{},"description":{},"quantity":{},"unit":{},"notes":{},"qc_status":{},"qc_reason":{},"reviewed_at":{},"recorded_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/site_daily_logs":{"get":{"tags":["data: site"],"summary":"List site_daily_logs","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"log_date","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"log_date":{},"weather_summary":{},"is_work_halted":{},"daily_workers_count":{},"equipment_hours":{},"notes":{},"personnel":{},"machine_counts":{},"work_items":{},"recorded_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/site_daily_logs/{id}":{"get":{"tags":["data: site"],"summary":"Get one site_daily_logs","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"log_date":{},"weather_summary":{},"is_work_halted":{},"daily_workers_count":{},"equipment_hours":{},"notes":{},"personnel":{},"machine_counts":{},"work_items":{},"recorded_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/daily_report_settings":{"get":{"tags":["data: site"],"summary":"List daily_report_settings","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"project_id":{},"company_id":{},"employer_name":{},"project_title":{},"logos":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/daily_report_settings/{project_id}":{"get":{"tags":["data: site"],"summary":"Get one daily_report_settings","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"project_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"project_id":{},"company_id":{},"employer_name":{},"project_title":{},"logos":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/punch_list_items":{"get":{"tags":["data: site"],"summary":"List punch_list_items","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"severity","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"zone_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"assigned_subcontractor_id":{},"unit_id":{},"zone_id":{},"work_item_id":{},"title":{},"description":{},"location":{},"severity":{},"status":{},"work_category":{},"trade":{},"due_date":{},"resolved_at":{},"resolution_notes":{},"resolved_by_company_id":{},"repair_cost":{},"reopened_at":{},"reopen_note":{},"overdue_alerted_on":{},"handover_protocol_id":{},"recorded_at":{},"created_at":{},"reported_by_name":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/punch_list_items/{id}":{"get":{"tags":["data: site"],"summary":"Get one punch_list_items","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"assigned_subcontractor_id":{},"unit_id":{},"zone_id":{},"work_item_id":{},"title":{},"description":{},"location":{},"severity":{},"status":{},"work_category":{},"trade":{},"due_date":{},"resolved_at":{},"resolution_notes":{},"resolved_by_company_id":{},"repair_cost":{},"reopened_at":{},"reopen_note":{},"overdue_alerted_on":{},"handover_protocol_id":{},"recorded_at":{},"created_at":{},"reported_by_name":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/inspections":{"get":{"tags":["data: site"],"summary":"List inspections","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"template_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"template_id":{},"contract_id":{},"unit_id":{},"zone_id":{},"title":{},"inspected_at":{},"status":{},"notes":{},"created_at":{},"inspector_name":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/inspections/{id}":{"get":{"tags":["data: site"],"summary":"Get one inspections","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"template_id":{},"contract_id":{},"unit_id":{},"zone_id":{},"title":{},"inspected_at":{},"status":{},"notes":{},"created_at":{},"inspector_name":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/inspection_results":{"get":{"tags":["data: site"],"summary":"List inspection_results","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"inspection_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"result","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"inspection_id":{},"sort_order":{},"item_title":{},"hold_point":{},"result":{},"note":{},"punch_item_id":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/inspection_results/{id}":{"get":{"tags":["data: site"],"summary":"Get one inspection_results","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"inspection_id":{},"sort_order":{},"item_title":{},"hold_point":{},"result":{},"note":{},"punch_item_id":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/inspection_templates":{"get":{"tags":["data: site"],"summary":"List inspection_templates","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"work_category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"title":{},"work_category":{},"items":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/inspection_templates/{id}":{"get":{"tags":["data: site"],"summary":"Get one inspection_templates","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"title":{},"work_category":{},"items":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/equipment":{"get":{"tags":["data: site"],"summary":"List equipment","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"equipment_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"name":{},"equipment_type":{},"status":{},"last_maintenance_date":{},"next_maintenance_date":{},"service_interval_hours":{},"hours_at_last_service":{},"hourly_rate":{},"rate_currency":{},"operator_worker_id":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/equipment/{id}":{"get":{"tags":["data: site"],"summary":"Get one equipment","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"name":{},"equipment_type":{},"status":{},"last_maintenance_date":{},"next_maintenance_date":{},"service_interval_hours":{},"hours_at_last_service":{},"hourly_rate":{},"rate_currency":{},"operator_worker_id":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/equipment_fuel_logs":{"get":{"tags":["data: site"],"summary":"List equipment_fuel_logs","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"equipment_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"equipment_id":{},"project_id":{},"log_date":{},"liters":{},"unit_price":{},"currency":{},"meter_reading":{},"worker_id":{},"note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/equipment_fuel_logs/{id}":{"get":{"tags":["data: site"],"summary":"Get one equipment_fuel_logs","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"equipment_id":{},"project_id":{},"log_date":{},"liters":{},"unit_price":{},"currency":{},"meter_reading":{},"worker_id":{},"note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/equipment_checklists":{"get":{"tags":["data: site"],"summary":"List equipment_checklists","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"equipment_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"equipment_id":{},"check_date":{},"items":{},"failed_items":{},"failed_critical":{},"worker_id":{},"note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/equipment_checklists/{id}":{"get":{"tags":["data: site"],"summary":"Get one equipment_checklists","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"equipment_id":{},"check_date":{},"items":{},"failed_items":{},"failed_critical":{},"worker_id":{},"note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concealed_acts":{"get":{"tags":["data: site"],"summary":"List concealed_acts","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"zone_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"act_no":{},"act_date":{},"lang":{},"unit_id":{},"zone_id":{},"location":{},"work_title":{},"drawings":{},"materials":{},"deviations":{},"next_work":{},"status":{},"decision_note":{},"decided_at":{},"replaces_act_id":{},"created_at":{},"contractor_rep":{"description":"Only with scope data:personal:read"},"supervisor_rep":{"description":"Only with scope data:personal:read"},"designer_rep":{"description":"Only with scope data:personal:read"},"decided_by_name":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concealed_acts/{id}":{"get":{"tags":["data: site"],"summary":"Get one concealed_acts","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"act_no":{},"act_date":{},"lang":{},"unit_id":{},"zone_id":{},"location":{},"work_title":{},"drawings":{},"materials":{},"deviations":{},"next_work":{},"status":{},"decision_note":{},"decided_at":{},"replaces_act_id":{},"created_at":{},"contractor_rep":{"description":"Only with scope data:personal:read"},"supervisor_rep":{"description":"Only with scope data:personal:read"},"designer_rep":{"description":"Only with scope data:personal:read"},"decided_by_name":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concealed_act_items":{"get":{"tags":["data: site"],"summary":"List concealed_act_items","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"act_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"act_id":{},"takeoff_entry_id":{},"title":{},"quantity":{},"unit":{},"position":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concealed_act_items/{id}":{"get":{"tags":["data: site"],"summary":"Get one concealed_act_items","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"act_id":{},"takeoff_entry_id":{},"title":{},"quantity":{},"unit":{},"position":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concrete_pours":{"get":{"tags":["data: site"],"summary":"List concrete_pours","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"zone_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"grade","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"pour_no":{},"poured_on":{},"unit_id":{},"zone_id":{},"location":{},"element":{},"grade":{},"required_mpa":{},"volume_m3":{},"supplier":{},"waybill_no":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concrete_pours/{id}":{"get":{"tags":["data: site"],"summary":"Get one concrete_pours","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"pour_no":{},"poured_on":{},"unit_id":{},"zone_id":{},"location":{},"element":{},"grade":{},"required_mpa":{},"volume_m3":{},"supplier":{},"waybill_no":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concrete_tests":{"get":{"tags":["data: site"],"summary":"List concrete_tests","description":"Scope: `data:site:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"pour_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"age_days","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"pour_id":{},"age_days":{},"due_on":{},"tested_on":{},"strength_mpa":{},"punch_item_id":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/concrete_tests/{id}":{"get":{"tags":["data: site"],"summary":"Get one concrete_tests","description":"Scope: `data:site:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"pour_id":{},"age_days":{},"due_on":{},"tested_on":{},"strength_mpa":{},"punch_item_id":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/schedule_activities":{"get":{"tags":["data: schedule"],"summary":"List schedule_activities","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"phase","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"zone_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"parent_activity_id":{},"phase":{},"category":{},"title":{},"trade":{},"contract_id":{},"contract_item_id":{},"milestone_id":{},"unit_id":{},"zone_id":{},"block":{},"floor":{},"planned_start":{},"planned_end":{},"baseline_start":{},"baseline_end":{},"actual_start":{},"actual_end":{},"start_time":{},"progress_pct":{},"progress_mode":{},"target_qty":{},"predecessor_ids":{},"predecessor_links":{},"resources":{},"notes":{},"sort_order":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/schedule_activities/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one schedule_activities","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"parent_activity_id":{},"phase":{},"category":{},"title":{},"trade":{},"contract_id":{},"contract_item_id":{},"milestone_id":{},"unit_id":{},"zone_id":{},"block":{},"floor":{},"planned_start":{},"planned_end":{},"baseline_start":{},"baseline_end":{},"actual_start":{},"actual_end":{},"start_time":{},"progress_pct":{},"progress_mode":{},"target_qty":{},"predecessor_ids":{},"predecessor_links":{},"resources":{},"notes":{},"sort_order":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tasks":{"get":{"tags":["data: schedule"],"summary":"List tasks","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"assigned_subcontractor_id":{},"title":{},"description":{},"trade":{},"block":{},"floor":{},"status":{},"approved_at":{},"recorded_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tasks/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one tasks","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"assigned_subcontractor_id":{},"title":{},"description":{},"trade":{},"block":{},"floor":{},"status":{},"approved_at":{},"recorded_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/risks":{"get":{"tags":["data: schedule"],"summary":"List risks","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"activity_id":{},"title":{},"description":{},"category":{},"probability":{},"impact":{},"risk_score":{},"mitigation_strategy":{},"status":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/risks/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one risks","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"activity_id":{},"title":{},"description":{},"category":{},"probability":{},"impact":{},"risk_score":{},"mitigation_strategy":{},"status":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/meetings":{"get":{"tags":["data: schedule"],"summary":"List meetings","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"held_at":{},"notes":{},"created_by_company_id":{},"created_at":{},"attendees":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/meetings/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one meetings","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"held_at":{},"notes":{},"created_by_company_id":{},"created_at":{},"attendees":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/meeting_actions":{"get":{"tags":["data: schedule"],"summary":"List meeting_actions","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"meeting_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"meeting_id":{},"project_id":{},"title":{},"due_date":{},"done_at":{},"instruction_id":{},"created_at":{},"owner_name":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/meeting_actions/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one meeting_actions","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"meeting_id":{},"project_id":{},"title":{},"due_date":{},"done_at":{},"instruction_id":{},"created_at":{},"owner_name":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/rfis":{"get":{"tags":["data: schedule"],"summary":"List rfis","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"priority","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"raised_by_company_id":{},"subject":{},"question":{},"response":{},"priority":{},"status":{},"responded_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/rfis/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one rfis","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"raised_by_company_id":{},"subject":{},"question":{},"response":{},"priority":{},"status":{},"responded_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/submittals":{"get":{"tags":["data: schedule"],"summary":"List submittals","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"kind":{},"title":{},"description":{},"status":{},"submitted_by_company_id":{},"decided_at":{},"decision_note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/submittals/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one submittals","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"kind":{},"title":{},"description":{},"status":{},"submitted_by_company_id":{},"decided_at":{},"decision_note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/site_instructions":{"get":{"tags":["data: schedule"],"summary":"List site_instructions","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"entry_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"entry_type":{},"title":{},"details":{},"contract_id":{},"addressed_to":{},"unit_id":{},"zone_id":{},"activity_id":{},"task_id":{},"punch_item_id":{},"drawing_id":{},"trade":{},"priority":{},"due_at":{},"status":{},"acknowledged_at":{},"done_at":{},"verified_at":{},"recorded_at":{},"created_at":{},"given_by":{"description":"Only with scope data:personal:read"},"location":{"description":"Only with scope data:personal:read"},"worker_id":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/site_instructions/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one site_instructions","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"entry_type":{},"title":{},"details":{},"contract_id":{},"addressed_to":{},"unit_id":{},"zone_id":{},"activity_id":{},"task_id":{},"punch_item_id":{},"drawing_id":{},"trade":{},"priority":{},"due_at":{},"status":{},"acknowledged_at":{},"done_at":{},"verified_at":{},"recorded_at":{},"created_at":{},"given_by":{"description":"Only with scope data:personal:read"},"location":{"description":"Only with scope data:personal:read"},"worker_id":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/announcements":{"get":{"tags":["data: schedule"],"summary":"List announcements","description":"Scope: `data:schedule:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"target_contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"body":{},"target_contract_id":{},"activity_id":{},"recorded_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/announcements/{id}":{"get":{"tags":["data: schedule"],"summary":"Get one announcements","description":"Scope: `data:schedule:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"body":{},"target_contract_id":{},"activity_id":{},"recorded_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_documents":{"get":{"tags":["data: documents"],"summary":"List project_documents","description":"Scope: `data:documents:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"category":{},"file_name":{},"file_size_bytes":{},"uploaded_by_company_id":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_documents/{id}":{"get":{"tags":["data: documents"],"summary":"Get one project_documents","description":"Scope: `data:documents:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"category":{},"file_name":{},"file_size_bytes":{},"uploaded_by_company_id":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_drawings":{"get":{"tags":["data: documents"],"summary":"List project_drawings","description":"Scope: `data:documents:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"discipline","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"drawing_stage","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"approval_status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"block","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"discipline":{},"revision":{},"revision_note":{},"issued_date":{},"file_name":{},"file_size_bytes":{},"unit_id":{},"zone_id":{},"block":{},"trade":{},"drawing_stage":{},"approval_status":{},"approval_note":{},"approved_at":{},"uploaded_by_company_id":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/project_drawings/{id}":{"get":{"tags":["data: documents"],"summary":"Get one project_drawings","description":"Scope: `data:documents:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"discipline":{},"revision":{},"revision_note":{},"issued_date":{},"file_name":{},"file_size_bytes":{},"unit_id":{},"zone_id":{},"block":{},"trade":{},"drawing_stage":{},"approval_status":{},"approval_note":{},"approved_at":{},"uploaded_by_company_id":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/drawing_pins":{"get":{"tags":["data: documents"],"summary":"List drawing_pins","description":"Scope: `data:documents:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"drawing_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"drawing_id":{},"project_id":{},"x":{},"y":{},"kind":{},"title":{},"entity_id":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/drawing_pins/{id}":{"get":{"tags":["data: documents"],"summary":"Get one drawing_pins","description":"Scope: `data:documents:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"drawing_id":{},"project_id":{},"x":{},"y":{},"kind":{},"title":{},"entity_id":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/attachments":{"get":{"tags":["data: documents"],"summary":"List attachments","description":"Scope: `data:documents:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"entity_type","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"entity_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"entity_type":{},"entity_id":{},"file_name":{},"mime_type":{},"size_bytes":{},"is_image":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/attachments/{id}":{"get":{"tags":["data: documents"],"summary":"Get one attachments","description":"Scope: `data:documents:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"entity_type":{},"entity_id":{},"file_name":{},"mime_type":{},"size_bytes":{},"is_image":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/floor_plans":{"get":{"tags":["data: documents"],"summary":"List floor_plans","description":"Scope: `data:documents:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"block","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"floor","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"block":{},"floor":{},"aspect":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/floor_plans/{id}":{"get":{"tags":["data: documents"],"summary":"Get one floor_plans","description":"Scope: `data:documents:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"block":{},"floor":{},"aspect":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/floor_plan_units":{"get":{"tags":["data: documents"],"summary":"List floor_plan_units","description":"Scope: `data:documents:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"plan_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"plan_id":{},"unit_id":{},"points":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/floor_plan_units/{id}":{"get":{"tags":["data: documents"],"summary":"Get one floor_plan_units","description":"Scope: `data:documents:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"plan_id":{},"unit_id":{},"points":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/hse_incidents":{"get":{"tags":["data: hse"],"summary":"List hse_incidents","description":"Scope: `data:hse:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"severity","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"incident_type","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"unit_id":{},"zone_id":{},"incident_type":{},"severity":{},"occurred_at":{},"description":{},"root_cause":{},"corrective_action":{},"corrective_owner":{},"corrective_due":{},"corrective_done_at":{},"is_osha_recordable":{},"status":{},"created_at":{},"worker_id":{"description":"Only with scope data:personal:read"},"location":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/hse_incidents/{id}":{"get":{"tags":["data: hse"],"summary":"Get one hse_incidents","description":"Scope: `data:hse:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"unit_id":{},"zone_id":{},"incident_type":{},"severity":{},"occurred_at":{},"description":{},"root_cause":{},"corrective_action":{},"corrective_owner":{},"corrective_due":{},"corrective_done_at":{},"is_osha_recordable":{},"status":{},"created_at":{},"worker_id":{"description":"Only with scope data:personal:read"},"location":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/hse_documents":{"get":{"tags":["data: hse"],"summary":"List hse_documents","description":"Scope: `data:hse:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"doc_type","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"doc_type":{},"doc_no":{},"title":{},"lang":{},"doc_date":{},"valid_until":{},"status":{},"created_at":{},"updated_at":{},"payload":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/hse_documents/{id}":{"get":{"tags":["data: hse"],"summary":"Get one hse_documents","description":"Scope: `data:hse:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"doc_type":{},"doc_no":{},"title":{},"lang":{},"doc_date":{},"valid_until":{},"status":{},"created_at":{},"updated_at":{},"payload":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/hse_custom_rules":{"get":{"tags":["data: hse"],"summary":"List hse_custom_rules","description":"Scope: `data:hse:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"category":{},"title":{},"body":{},"source_note":{},"is_active":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/hse_custom_rules/{id}":{"get":{"tags":["data: hse"],"summary":"Get one hse_custom_rules","description":"Scope: `data:hse:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"category":{},"title":{},"body":{},"source_note":{},"is_active":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_slots":{"get":{"tags":["data: warranty"],"summary":"List handover_slots","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"starts_at":{},"duration_min":{},"capacity":{},"note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_slots/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one handover_slots","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"starts_at":{},"duration_min":{},"capacity":{},"note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_bookings":{"get":{"tags":["data: warranty"],"summary":"List handover_bookings","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"slot_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"slot_id":{},"unit_id":{},"status":{},"created_at":{},"buyer_note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_bookings/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one handover_bookings","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"slot_id":{},"unit_id":{},"status":{},"created_at":{},"buyer_note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_protocols":{"get":{"tags":["data: warranty"],"summary":"List handover_protocols","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"status":{},"lang":{},"checklist":{},"meters":{},"keys":{},"defects":{},"notes":{},"signed_at":{},"final_at":{},"created_at":{},"updated_at":{},"buyer_name":{"description":"Only with scope data:personal:read"},"staff_name":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_protocols/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one handover_protocols","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"status":{},"lang":{},"checklist":{},"meters":{},"keys":{},"defects":{},"notes":{},"signed_at":{},"final_at":{},"created_at":{},"updated_at":{},"buyer_name":{"description":"Only with scope data:personal:read"},"staff_name":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_templates":{"get":{"tags":["data: warranty"],"summary":"List handover_templates","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"unit_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"unit_type":{},"rooms":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/handover_templates/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one handover_templates","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"unit_type":{},"rooms":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warranty_terms":{"get":{"tags":["data: warranty"],"summary":"List warranty_terms","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"contract_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"category":{},"months":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warranty_terms/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one warranty_terms","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"contract_id":{},"category":{},"months":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warranty_sla":{"get":{"tags":["data: warranty"],"summary":"List warranty_sla","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"priority","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"priority":{},"response_hours":{},"resolve_hours":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warranty_tickets":{"get":{"tags":["data: warranty"],"summary":"List warranty_tickets","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"priority","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"assigned_company_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"contract_id":{},"assigned_company_id":{},"category":{},"room":{},"priority":{},"status":{},"coverage":{},"assigned_at":{},"visit_at":{},"quote_amount":{},"quote_currency":{},"quote_status":{},"fix_note":{},"response_due_at":{},"resolve_due_at":{},"first_response_at":{},"fixed_at":{},"closed_at":{},"reopen_count":{},"created_at":{},"updated_at":{},"description":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warranty_tickets/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one warranty_tickets","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"contract_id":{},"assigned_company_id":{},"category":{},"room":{},"priority":{},"status":{},"coverage":{},"assigned_at":{},"visit_at":{},"quote_amount":{},"quote_currency":{},"quote_status":{},"fix_note":{},"response_due_at":{},"resolve_due_at":{},"first_response_at":{},"fixed_at":{},"closed_at":{},"reopen_count":{},"created_at":{},"updated_at":{},"description":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warranty_ticket_events":{"get":{"tags":["data: warranty"],"summary":"List warranty_ticket_events","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"ticket_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"ticket_id":{},"kind":{},"note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/warranty_ticket_events/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one warranty_ticket_events","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"ticket_id":{},"kind":{},"note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/satisfaction_surveys":{"get":{"tags":["data: warranty"],"summary":"List satisfaction_surveys","description":"Scope: `data:warranty:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"context","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"context":{},"ticket_id":{},"score":{},"created_at":{},"comment":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/satisfaction_surveys/{id}":{"get":{"tags":["data: warranty"],"summary":"Get one satisfaction_surveys","description":"Scope: `data:warranty:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"unit_id":{},"context":{},"ticket_id":{},"score":{},"created_at":{},"comment":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tenders":{"get":{"tags":["data: tenders"],"summary":"List tenders","description":"Scope: `data:tenders:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"description":{},"budget_estimate":{},"currency":{},"status":{},"bid_deadline":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tenders/{id}":{"get":{"tags":["data: tenders"],"summary":"Get one tenders","description":"Scope: `data:tenders:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"project_id":{},"title":{},"description":{},"budget_estimate":{},"currency":{},"status":{},"bid_deadline":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tender_items":{"get":{"tags":["data: tenders"],"summary":"List tender_items","description":"Scope: `data:tenders:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"tender_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"tender_id":{},"code":{},"title":{},"unit":{},"quantity":{},"category":{},"sort_order":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tender_items/{id}":{"get":{"tags":["data: tenders"],"summary":"Get one tender_items","description":"Scope: `data:tenders:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"tender_id":{},"code":{},"title":{},"unit":{},"quantity":{},"category":{},"sort_order":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tender_bids":{"get":{"tags":["data: tenders"],"summary":"List tender_bids","description":"Scope: `data:tenders:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"tender_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"subcontractor_company_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"tender_id":{},"subcontractor_company_id":{},"amount":{},"message":{},"status":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tender_bids/{id}":{"get":{"tags":["data: tenders"],"summary":"Get one tender_bids","description":"Scope: `data:tenders:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"tender_id":{},"subcontractor_company_id":{},"amount":{},"message":{},"status":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tender_bid_items":{"get":{"tags":["data: tenders"],"summary":"List tender_bid_items","description":"Scope: `data:tenders:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"bid_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"tender_item_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"bid_id":{},"tender_item_id":{},"unit_price":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/tender_bid_items/{id}":{"get":{"tags":["data: tenders"],"summary":"Get one tender_bid_items","description":"Scope: `data:tenders:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"bid_id":{},"tender_item_id":{},"unit_price":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estates":{"get":{"tags":["data: estate"],"summary":"List estates","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"source_project_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"city":{},"source_project_id":{},"developer_company_id":{},"currency":{},"ref_prefix":{},"status":{},"share_owner_contacts":{},"expense_four_eyes":{},"handed_over_at":{},"created_at":{},"updated_at":{},"address":{"description":"Only with scope data:personal:read"},"iban":{"description":"Only with scope data:personal:read"},"bank_name":{"description":"Only with scope data:personal:read"},"account_holder":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estates/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estates","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"city":{},"source_project_id":{},"developer_company_id":{},"currency":{},"ref_prefix":{},"status":{},"share_owner_contacts":{},"expense_four_eyes":{},"handed_over_at":{},"created_at":{},"updated_at":{},"address":{"description":"Only with scope data:personal:read"},"iban":{"description":"Only with scope data:personal:read"},"bank_name":{"description":"Only with scope data:personal:read"},"account_holder":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_units":{"get":{"tags":["data: estate"],"summary":"List estate_units","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"block","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"source_unit_id":{},"block":{},"unit_number":{},"floor":{},"unit_type":{},"area_m2":{},"share_pct":{},"allocated_to_unit_id":{},"charges_from":{},"payment_ref":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_units/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_units","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"source_unit_id":{},"block":{},"unit_number":{},"floor":{},"unit_type":{},"area_m2":{},"share_pct":{},"allocated_to_unit_id":{},"charges_from":{},"payment_ref":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_contacts":{"get":{"tags":["data: estate"],"summary":"List estate_contacts","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"role","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"role":{},"source":{},"lang":{},"is_resident":{},"active":{},"created_at":{},"updated_at":{},"full_name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"plates":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_contacts/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_contacts","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"role":{},"source":{},"lang":{},"is_resident":{},"active":{},"created_at":{},"updated_at":{},"full_name":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"plates":{"description":"Only with scope data:personal:read"},"notes":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_budgets":{"get":{"tags":["data: estate"],"summary":"List estate_budgets","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"year","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"year":{},"status":{},"notes":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_budgets/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_budgets","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"year":{},"status":{},"notes":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_budget_lines":{"get":{"tags":["data: estate"],"summary":"List estate_budget_lines","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"budget_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"budget_id":{},"name":{},"category":{},"annual_amount":{},"allocation_key":{},"unit_types":{},"is_reserve":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_budget_lines/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_budget_lines","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"budget_id":{},"name":{},"category":{},"annual_amount":{},"allocation_key":{},"unit_types":{},"is_reserve":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_charges":{"get":{"tags":["data: estate"],"summary":"List estate_charges","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"period","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"budget_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"budget_id":{},"period":{},"amount":{},"reserve_amount":{},"breakdown":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_charges/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_charges","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"budget_id":{},"period":{},"amount":{},"reserve_amount":{},"breakdown":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_payments":{"get":{"tags":["data: estate"],"summary":"List estate_payments","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"method","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"source","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"amount":{},"paid_on":{},"method":{},"source":{},"created_at":{},"payer":{"description":"Only with scope data:personal:read"},"reference":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_payments/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_payments","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"amount":{},"paid_on":{},"method":{},"source":{},"created_at":{},"payer":{"description":"Only with scope data:personal:read"},"reference":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_expenses":{"get":{"tags":["data: estate"],"summary":"List estate_expenses","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"category":{},"supplier_name":{},"invoice_no":{},"invoice_date":{},"amount":{},"paid_from":{},"status":{},"note":{},"approved_at":{},"paid_on":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_expenses/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_expenses","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"category":{},"supplier_name":{},"invoice_no":{},"invoice_date":{},"amount":{},"paid_from":{},"status":{},"note":{},"approved_at":{},"paid_on":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_cash_entries":{"get":{"tags":["data: estate"],"summary":"List estate_cash_entries","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"kind","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"kind":{},"amount":{},"entry_date":{},"note":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_cash_entries/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_cash_entries","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"kind":{},"amount":{},"entry_date":{},"note":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_reports":{"get":{"tags":["data: estate"],"summary":"List estate_reports","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"period","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"published","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"period":{},"data":{},"published":{},"published_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_reports/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_reports","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"period":{},"data":{},"published":{},"published_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_equipment":{"get":{"tags":["data: estate"],"summary":"List estate_equipment","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"source_equipment_id":{},"name":{},"category":{},"brand":{},"model":{},"serial_no":{},"location":{},"installed_on":{},"warranty_until":{},"period_months":{},"last_service_on":{},"next_due_on":{},"certificate_expires_on":{},"vendor_name":{},"notes":{},"created_at":{},"vendor_phone":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_equipment/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_equipment","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"source_equipment_id":{},"name":{},"category":{},"brand":{},"model":{},"serial_no":{},"location":{},"installed_on":{},"warranty_until":{},"period_months":{},"last_service_on":{},"next_due_on":{},"certificate_expires_on":{},"vendor_name":{},"notes":{},"created_at":{},"vendor_phone":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_work_orders":{"get":{"tags":["data: estate"],"summary":"List estate_work_orders","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"priority","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"category","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"equipment_id":{},"source":{},"category":{},"title":{},"description":{},"location":{},"priority":{},"status":{},"assignee_vendor":{},"due_at":{},"planned_for":{},"resolved_at":{},"resolution_note":{},"created_at":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_work_orders/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_work_orders","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"unit_id":{},"equipment_id":{},"source":{},"category":{},"title":{},"description":{},"location":{},"priority":{},"status":{},"assignee_vendor":{},"due_at":{},"planned_for":{},"resolved_at":{},"resolution_note":{},"created_at":{},"updated_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_announcements":{"get":{"tags":["data: estate"],"summary":"List estate_announcements","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"published","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"title":{},"body":{},"published":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_announcements/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_announcements","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"title":{},"body":{},"published":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_votes":{"get":{"tags":["data: estate"],"summary":"List estate_votes","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"title":{},"description":{},"options":{},"weight_basis":{},"quorum_pct":{},"status":{},"closes_at":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_votes/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_votes","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"title":{},"description":{},"options":{},"weight_basis":{},"quorum_pct":{},"status":{},"closes_at":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_resources":{"get":{"tags":["data: estate"],"summary":"List estate_resources","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"name":{},"rules":{},"slot_minutes":{},"open_from":{},"open_to":{},"max_per_week":{},"active":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_resources/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_resources","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"name":{},"rules":{},"slot_minutes":{},"open_from":{},"open_to":{},"max_per_week":{},"active":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_bookings":{"get":{"tags":["data: estate"],"summary":"List estate_bookings","description":"Scope: `data:estate:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"estate_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"resource_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"unit_id","in":"query","schema":{"type":"string"},"description":"Equality filter"},{"name":"status","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"estate_id":{},"resource_id":{},"unit_id":{},"starts_at":{},"ends_at":{},"status":{},"created_at":{},"contact_id":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/estate_bookings/{id}":{"get":{"tags":["data: estate"],"summary":"Get one estate_bookings","description":"Scope: `data:estate:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"estate_id":{},"resource_id":{},"unit_id":{},"starts_at":{},"ends_at":{},"status":{},"created_at":{},"contact_id":{"description":"Only with scope data:personal:read"},"note":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/companies":{"get":{"tags":["data: settings"],"summary":"List companies","description":"Scope: `data:settings:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"country":{},"default_currency":{},"website":{},"created_at":{},"tax_number":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"address":{"description":"Only with scope data:personal:read"},"iban":{"description":"Only with scope data:personal:read"}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/companies/{id}":{"get":{"tags":["data: settings"],"summary":"Get one companies","description":"Scope: `data:settings:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"country":{},"default_currency":{},"website":{},"created_at":{},"tax_number":{"description":"Only with scope data:personal:read"},"phone":{"description":"Only with scope data:personal:read"},"email":{"description":"Only with scope data:personal:read"},"address":{"description":"Only with scope data:personal:read"},"iban":{"description":"Only with scope data:personal:read"}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/company_modules":{"get":{"tags":["data: settings"],"summary":"List company_modules","description":"Scope: `data:settings:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"module_key","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"module_key":{},"enabled":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/approval_policies":{"get":{"tags":["data: settings"],"summary":"List approval_policies","description":"Scope: `data:settings:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"}},{"name":"doc_type","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"doc_type":{},"enabled":{},"verify_roles":{},"approve_roles":{},"amount_threshold":{},"threshold_currency":{},"updated_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/role_templates":{"get":{"tags":["data: settings"],"summary":"List role_templates","description":"Scope: `data:settings:read`. Only your company's records.","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"base_role","in":"query","schema":{"type":"string"},"description":"Equality filter"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{},"name":{},"base_role":{},"grants":{},"created_at":{}}}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"400":{"description":"Invalid parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data/role_templates/{id}":{"get":{"tags":["data: settings"],"summary":"Get one role_templates","description":"Scope: `data:settings:read`. 404 if the record belongs to another company.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{},"name":{},"base_role":{},"grants":{},"created_at":{}}}}}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects":{"get":{"summary":"List published projects","description":"Scope: `projects:read`","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only records changed at or after this time"}],"responses":{"200":{"description":"OK (ETag; 304 on If-None-Match)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}":{"get":{"summary":"Get a published project","description":"Scope: `projects:read`","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK (ETag; 304 on If-None-Match)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Project"}}}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/blocks":{"get":{"summary":"Blocks and floors with unit counts","description":"Scope: `units:read`","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK (ETag; 304 on If-None-Match)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Block"}}}}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/units":{"get":{"summary":"List visible units","description":"Scope: `units:read`","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}},{"name":"updated_since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only records changed at or after this time"},{"name":"status","in":"query","schema":{"type":"string","enum":["available","reserved","sold"]}},{"name":"block","in":"query","schema":{"type":"string"}},{"name":"floor","in":"query","schema":{"type":"integer"}}],"responses":{"200":{"description":"OK (ETag; 304 on If-None-Match)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Unit"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/milestones":{"get":{"summary":"Public construction milestones","description":"Scope: `projects:read`","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"offset","in":"query","schema":{"type":"integer","minimum":0,"default":0}}],"responses":{"200":{"description":"OK (ETag; 304 on If-None-Match)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Milestone"}},"pagination":{"$ref":"#/components/schemas/Pagination"}}}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/massing":{"get":{"summary":"Automatic 3D massing and floor plans (geometry parameters, unit slots, status, price if available, plan polygons)","description":"Scope: `massing:read`","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK (ETag; 304 on If-None-Match)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Massing"}}}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/units/{id}":{"get":{"summary":"Get a visible unit","description":"Scope: `units:read`","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK (ETag; 304 on If-None-Match)","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Unit"}}}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/leads":{"post":{"summary":"Submit a lead from a website form","description":"Scope: `leads:write`. Creates a sales lead (source: website) and notifies the sales team. Duplicate contacts on the same project are merged. Rate limit: 5 per 10 minutes per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LeadInput"}}}},"responses":{"201":{"description":"Accepted","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"accepted":{"type":"boolean"}}}}}}}},"400":{"description":"Invalid body","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid, revoked or expired key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Origin not allowed or scope missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Project/unit not found or not published","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{"unit.status_changed":{"post":{"summary":"Unit status changed","description":"Signed with header BuildOS-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, t + '.' + body)>","responses":{"200":{"description":"Return 2xx to acknowledge"}}}},"unit.price_changed":{"post":{"summary":"Price of an available unit changed","responses":{"200":{"description":"Return 2xx"}}}},"lead.created":{"post":{"summary":"A lead was created (no personal data in payload)","responses":{"200":{"description":"Return 2xx"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API key from Company Settings > API"},"apiKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized","forbidden","origin_not_allowed","insufficient_scope","not_found","invalid_request","rate_limited","server_error"]},"message":{"type":"string"}}}}},"Pagination":{"type":"object","properties":{"limit":{"type":"integer"},"offset":{"type":"integer"},"next_offset":{"type":["integer","null"]}}},"UnitCounts":{"type":"object","properties":{"total":{"type":"integer"},"available":{"type":"integer"},"reserved":{"type":"integer"},"sold":{"type":"integer"}}},"Project":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"type":{"type":["string","null"]},"city":{"type":["string","null"]},"address":{"type":["string","null"]},"location":{"type":["object","null"],"properties":{"lat":{"type":"number"},"lng":{"type":"number"}}},"description":{"type":["string","null"]},"status":{"type":["string","null"]},"progress_pct":{"type":["integer","null"],"description":"0-100, from the construction schedule"},"photos":{"type":"array","items":{"type":"string","format":"uri"},"description":"Signed URLs, valid 1 hour"},"units":{"$ref":"#/components/schemas/UnitCounts"},"updated_at":{"type":"string","format":"date-time"}}},"Unit":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"project_id":{"type":"string","format":"uuid"},"number":{"type":"string"},"block":{"type":["string","null"]},"floor":{"type":["integer","null"]},"type":{"type":"string","enum":["apartment","villa","office","shop","parking","storage","hotel_room"]},"offer_type":{"type":"string","enum":["sale","lease"]},"rooms":{"type":["integer","null"]},"area_m2":{"type":"number"},"land_m2":{"type":["number","null"]},"view":{"type":["string","null"]},"facade":{"type":["string","null"]},"features":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["available","reserved","sold"]},"price":{"type":["number","null"],"description":"Only for available units; null when reserved or sold"},"currency":{"type":"string"},"floor_plan_url":{"type":["string","null"],"format":"uri","description":"Signed URL, valid 1 hour"},"updated_at":{"type":"string","format":"date-time"}}},"Block":{"type":"object","properties":{"block":{"type":["string","null"]},"counts":{"$ref":"#/components/schemas/UnitCounts"},"floors":{"type":"array","items":{"type":"object","properties":{"floor":{"type":["integer","null"]},"counts":{"$ref":"#/components/schemas/UnitCounts"}}}}}},"Milestone":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"title":{"type":"string"},"target_date":{"type":["string","null"],"format":"date"},"status":{"type":"string","enum":["planned","in_progress","completed"]}}},"LeadInput":{"type":"object","required":["project_id","name"],"description":"phone or email is required","properties":{"project_id":{"type":"string","format":"uuid"},"unit_id":{"type":["string","null"],"format":"uuid"},"name":{"type":"string","maxLength":120},"phone":{"type":["string","null"],"maxLength":40},"email":{"type":["string","null"],"format":"email"},"message":{"type":["string","null"],"maxLength":2000},"source":{"type":["string","null"],"maxLength":80,"description":"e.g. landing page or campaign name"},"website":{"type":"string","description":"Honeypot: render hidden, leave empty"},"turnstile_token":{"type":"string","description":"Cloudflare Turnstile token (browser forms, when enabled)"}}},"Massing":{"type":"object","properties":{"project_id":{"type":"string","format":"uuid"},"blocks":{"type":"array","items":{"type":"object","properties":{"block":{"type":["string","null"]},"floor_height_m":{"type":"number"},"ground_commercial":{"type":"boolean"},"parking_levels":{"type":"integer"},"position":{"type":"object","properties":{"x_m":{"type":"number"},"z_m":{"type":"number"}},"description":"Block centre on the site plan"},"rotation_deg":{"type":"number","description":"Rotation around the vertical axis"},"footprint":{"type":"object","properties":{"width_m":{"type":"number"},"depth_m":{"type":"number"}}},"height_m":{"type":"number"},"floors":{"type":"array","items":{"type":"object","properties":{"floor":{"type":"integer"},"units":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"number":{"type":"string"},"slot":{"type":"integer","description":"Order on the floor (0-based, natural unit-number order)"},"type":{"type":"string"},"rooms":{"type":["integer","null"]},"area_m2":{"type":"number"},"status":{"type":"string","enum":["available","reserved","sold"]},"price":{"type":["number","null"],"description":"Only for available units"},"currency":{"type":"string"},"floor_plan_url":{"type":["string","null"],"description":"Signed URL, valid 1 hour"},"box":{"type":"object","description":"Unit box in block-local metres: centre (x, y, z) and size (w, h, d). x = width axis, z = depth axis (front facade at +z), y = up from ground.","properties":{"x":{"type":"number"},"y":{"type":"number"},"z":{"type":"number"},"w":{"type":"number"},"h":{"type":"number"},"d":{"type":"number"}}}}}}}}}}}},"floor_plans":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"block":{"type":["string","null"]},"floor":{"type":"integer"},"image_url":{"type":"string","description":"Signed URL, valid 1 hour"},"aspect":{"type":"number","description":"Image width / height"},"polygons":{"type":"array","items":{"type":"object","properties":{"unit_id":{"type":"string","format":"uuid"},"points":{"type":"array","description":"[x, y] pairs normalised 0..1 (x from left, y from top of the image)","items":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2}}}}}}}}}}}}}