{"components":{"schemas":{"BuildingTotal":{"properties":{"kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"metered_kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the metered kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"metered_quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the metered quantity field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"months":{"description":"Value for the months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/MonthRes"},"type":"array"},"months_missing":{"description":"Value for the months missing field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis."},"unallocated_kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the unallocated kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"unallocated_quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the unallocated quantity field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["quantity","metered_quantity","unallocated_quantity","kwh","metered_kwh","unallocated_kwh","months_missing","months"],"type":"object"},"ChartSpec":{"properties":{"columns":{"description":"Value for the columns field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"format":"int64","type":"integer"},"type":"array"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","maxLength":64,"type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","maxLength":255,"type":"string"}},"required":["kind","columns"],"type":"object"},"ColumnSpec":{"properties":{"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"expr":{"description":"Value for the expr field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":500,"type":"string"},"measure":{"description":"Value for the measure field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"},"terms":{"description":"Value for the terms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/TermSpec"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","maxLength":255,"type":"string"},"virtual_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"type":"object"},"CostLine":{"properties":{"base_fee":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the base fee field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"gross":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the gross field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"month":{"description":"Value for the month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"net":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the net field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"note":{"description":"Optional operator-entered note associated with the resource or operation.","type":"string"},"price":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Price or rate; the operation contract defines its currency, unit, and tax treatment."},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis."},"tariff_code":{"description":"Value for the tariff code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"tariff_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"tiers":{"description":"Value for the tiers field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/TierLine"},"type":"array"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"},"vat":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the vat field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"zones":{"description":"Value for the zones field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ZoneLine"},"type":"array"}},"required":["month","quantity","price","net","vat","gross"],"type":"object"},"CostResult":{"properties":{"complete":{"description":"Whether the associated operation or dataset is complete.","type":"boolean"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"gross":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the gross field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"lines":{"description":"Value for the lines field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/CostLine"},"type":"array"},"net":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the net field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"vat":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the vat field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["net","vat","gross","lines","complete"],"type":"object"},"CredentialDescriptor":{"properties":{"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":{"description":"Value type or category; the schema lists allowed values when finite.","type":"string"}},"required":["type","id"],"type":"object"},"DiscoveredStatusRequest":{"properties":{"field":{"description":"Value for the field field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":128,"type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","maxLength":8,"type":"string"}},"required":["field","status"],"type":"object"},"Energy":{"properties":{"gcal":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the Gcal field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"gj":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the GJ field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"months_missing":{"description":"Value for the months missing field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"mwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the MWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["kwh","gcal","gj","mwh","months_missing"],"type":"object"},"Enrolment":{"properties":{"secret":{"description":"Secret credential material; returned only by operations that explicitly issue a one-time secret.","type":"string"},"uri":{"description":"Value for the uri field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["secret","uri"],"type":"object"},"Error":{"properties":{"error":{"description":"Structured error details returned for an unsuccessful request.","properties":{"code":{"description":"Stable machine-readable error code; clients should branch on this value rather than reason.","type":"string"},"correlation_id":{"description":"Request correlation identifier for support and server logs.","type":"string"},"fields":{"description":"Present for validation errors; identifies each invalid input.","items":{"properties":{"in":{"description":"Where the invalid value was supplied.","enum":["body","query","path"],"type":"string"},"path":{"description":"JSON field path, including list indices where relevant; query/path inputs use their parameter name.","type":"string"},"reason":{"description":"Localized explanation of the validation failure.","type":"string"}},"required":["in","path","reason"],"type":"object"},"type":"array"},"reason":{"description":"Localized human-readable explanation.","type":"string"}},"required":["code","reason","correlation_id"],"type":"object"}},"required":["error"],"type":"object"},"Form":{"properties":{"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"legal_basis_ref":{"description":"Value for the legal basis ref field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"params":{"description":"Value for the params field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Param"},"type":"array"},"review_status":{"description":"Value for the review status field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"schema_version":{"description":"Value for the schema version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["kind","title","params","legal_basis_ref","review_status","schema_version"],"type":"object"},"ImportRow":{"properties":{"line":{"description":"One-based source-file line number associated with the import result.","format":"int64","type":"integer"},"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"outcome":{"description":"Value for the outcome field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"reason":{"description":"Human-readable reason for the requested or completed operation.","type":"string"}},"required":["line","number","outcome"],"type":"object"},"ImportRow2":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"line":{"description":"One-based source-file line number associated with the import result.","format":"int64","type":"integer"},"outcome":{"description":"Value for the outcome field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"reason":{"description":"Human-readable reason for the requested or completed operation.","type":"string"}},"required":["line","code","outcome"],"type":"object"},"JSONValue":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"items":{"$ref":"#/components/schemas/JSONValue"},"type":"array"},{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"type":"object"},{"type":"null"}],"description":"Any valid JSON value, including null."},"LatestReading":{"properties":{"month":{"description":"Value for the month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"value":{"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract.","type":"string"}},"required":["month","value"],"type":"object"},"List":{"description":"Every list uses items + page. Supported query parameters are documented per route; unsupported parameters are rejected. Headers: X-Total-Count, Link rel=next.","properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"type":"object"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"type":"object"},"LoginOptions":{"properties":{"allowCredentials":{"description":"Value for the allowCredentials field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/CredentialDescriptor"},"type":"array"},"challenge":{"description":"Value for the challenge field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"rpId":{"description":"Value for the rpId field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"timeout":{"description":"Value for the timeout field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"userVerification":{"description":"Value for the userVerification field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["challenge","rpId","userVerification","timeout"],"type":"object"},"LoginResponse":{"properties":{"authenticatorData":{"description":"Value for the authenticatorData field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"clientDataJSON":{"description":"Value for the clientDataJSON field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"signature":{"description":"Value for the signature field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["id","clientDataJSON","authenticatorData","signature"],"type":"object"},"MFAGap":{"properties":{"display_name":{"description":"Name displayed to users in the interface.","type":"string"},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"templates":{"description":"Value for the templates field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"}},"required":["person_id","display_name","email","templates"],"type":"object"},"Manifest":{"properties":{"cells":{"description":"Value for the cells field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"complete":{"description":"Whether the associated operation or dataset is complete.","type":"boolean"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"generated_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"legal_basis_ref":{"description":"Value for the legal basis ref field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"params_sha256":{"description":"Lowercase hexadecimal SHA-256 digest of the associated content.","type":"string"},"review_status":{"description":"Value for the review status field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"rows":{"description":"Value for the rows field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"schema_version":{"description":"Value for the schema version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"table_sha256":{"description":"Lowercase hexadecimal SHA-256 digest of the associated content.","type":"string"},"unknown_cells":{"description":"Value for the unknown cells field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["generated_at","kind","legal_basis_ref","review_status","params_sha256","table_sha256","schema_version","rows","cells","unknown_cells","complete"],"type":"object"},"MonthRes":{"properties":{"kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"metered_kwh":{"description":"Value for the metered kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"metered_quantity":{"description":"Value for the metered quantity field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"month":{"description":"Value for the month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","type":"string"},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis."},"unallocated_kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the unallocated kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["quantity","metered_quantity","month","kwh","metered_kwh","unallocated_kwh"],"type":"object"},"Page":{"properties":{"count":{"description":"Number of records represented by this result or group.","format":"int64","type":"integer"},"limit":{"description":"Maximum number of records requested for one page; endpoint-specific bounds are in the schema.","format":"int64","type":"integer"},"next_cursor":{"description":"Opaque cursor for requesting the next page; omitted when no further page is available.","type":"string"},"total":{"anyOf":[{"format":"int64","type":"integer"},{"type":"null"}],"description":"Total number of matching records, when provided by the operation."}},"required":["limit","count"],"type":"object"},"Param":{"properties":{"name":{"description":"Human-readable name or label of this resource.","type":"string"},"required":{"description":"Whether the associated value or action is required.","type":"boolean"},"type":{"description":"Value type or category; the schema lists allowed values when finite.","type":"string"}},"required":["name","type","required"],"type":"object"},"Params":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"chart":{"anyOf":[{"$ref":"#/components/schemas/ChartSpec"},{"type":"null"}],"description":"Value for the chart field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"columns":{"description":"Value for the columns field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ColumnSpec"},"type":"array"},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"energy_unit":{"description":"Value for the energy unit field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"month":{"description":"Value for the month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":7,"type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","maxLength":32,"type":"string"},"signers":{"description":"Value for the signers field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Signer"},"type":"array"},"span":{"description":"Value for the span field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":7,"type":"string"},"template_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"template_version":{"description":"Value for the template version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":1000000,"minimum":1,"type":"integer"},"to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["building_id"],"type":"object"},"PointReading":{"properties":{"closing":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the closing field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"complete":{"description":"Whether the associated operation or dataset is complete.","type":"boolean"},"consumption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the consumption field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"cost_complete":{"description":"Value for the cost complete field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"gross":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the gross field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"latest":{"anyOf":[{"$ref":"#/components/schemas/LatestReading"},{"type":"null"}],"description":"Value for the latest field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"months":{"description":"Value for the months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ReadingMonth"},"type":"array"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"net":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the net field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"opening":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the opening field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"resource":{"description":"Value for the resource field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"tariff_code":{"description":"Value for the tariff code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"},"vat":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the vat field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"zone_totals":{"description":"Value for the zone totals field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ZoneQty"},"type":"array"}},"required":["id","resource","name","unit","opening","closing","consumption","latest","net","vat","gross","cost_complete","complete","months"],"type":"object"},"PointZone":{"properties":{"key":{"description":"Stable machine-readable key for this value or configuration entry.","maxLength":64,"type":"string"},"terms":{"description":"Value for the terms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Term"},"type":"array"}},"required":["key","terms"],"type":"object"},"Policy":{"properties":{"enforced_from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"grace_days":{"description":"Value for the grace days field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":30,"minimum":0,"type":"integer"},"in_grace":{"description":"Value for the in grace field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"operation_confirmation":{"description":"How people confirm sensitive operations in this organisation. Automatic requires only a configured second factor, falling back to the password when none is set up.","enum":["automatic","none","password","second_factor","password_and_factor"],"type":"string"},"require_mfa":{"description":"Value for the require MFA field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"secure_mode_allowed":{"description":"People may turn a confirmation into a mode of their session for a limited time, in which sensitive operations are not asked again.","type":"boolean"}},"required":["require_mfa","operation_confirmation","secure_mode_allowed"],"type":"object"},"PolicyUpdate":{"properties":{"grace_days":{"anyOf":[{"format":"int64","maximum":30,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Days members have to set up the second factor before the MFA requirement starts."},"operation_confirmation":{"description":"How sensitive operations are confirmed. Automatic requires only a configured second factor, falling back to the password when none is set up.","enum":["automatic","none","password","second_factor","password_and_factor"],"type":"string"},"require_mfa":{"description":"Require a second factor for administrative, control and audit permissions.","type":"boolean"},"secure_mode_allowed":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether people may turn on the secure mode here; omitted keeps the current rule."}},"required":["require_mfa"],"type":"object"},"PremisesMonth":{"properties":{"cost":{"anyOf":[{"$ref":"#/components/schemas/CostLine"},{"type":"null"}],"description":"Value for the cost field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"heated_m2":{"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema.","type":"string"},"kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"method":{"description":"Value for the method field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"month":{"description":"Value for the month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis."}},"required":["quantity","month","heated_m2","method","kwh"],"type":"object"},"PremisesReadings":{"properties":{"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"meters":{"description":"Value for the meters field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/PointReading"},"type":"array"},"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["id","number","meters"],"type":"object"},"PremisesRes":{"properties":{"complete":{"description":"Whether the associated operation or dataset is complete.","type":"boolean"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"gcal":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the Gcal field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"gross":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the gross field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"heated_m2":{"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"months":{"description":"Value for the months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/PremisesMonth"},"type":"array"},"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis."},"scope":{"description":"Resource scope to which the grant or operation applies.","type":"string"}},"required":["quantity","id","number","kind","scope","heated_m2","kwh","gcal","gross","complete","months"],"type":"object"},"ReadingMonth":{"properties":{"closing":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the closing field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"consumption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the consumption field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"cost":{"anyOf":[{"$ref":"#/components/schemas/CostLine"},{"type":"null"}],"description":"Value for the cost field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"inactive":{"description":"Value for the inactive field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"month":{"description":"Value for the month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"opening":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the opening field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"zone_consumption":{"description":"Value for the zone consumption field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ZoneQty"},"type":"array"}},"required":["month","opening","closing","consumption"],"type":"object"},"Readings":{"properties":{"building":{"description":"Value for the building field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/PointReading"},"type":"array"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"premises":{"description":"Value for the premises field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/PremisesReadings"},"type":"array"}},"required":["period","building","premises"],"type":"object"},"RegisterOptions":{"properties":{"attestation":{"description":"Value for the attestation field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"authenticatorSelection":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Value for the authenticatorSelection field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"challenge":{"description":"Value for the challenge field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"excludeCredentials":{"description":"Value for the excludeCredentials field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/CredentialDescriptor"},"type":"array"},"pubKeyCredParams":{"description":"Value for the pubKeyCredParams field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"type":"object"},"type":"array"},"rp":{"additionalProperties":{"type":"string"},"description":"Value for the rp field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"timeout":{"description":"Value for the timeout field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"user":{"additionalProperties":{"type":"string"},"description":"Value for the user field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"}},"required":["rp","user","authenticatorSelection","challenge","attestation","pubKeyCredParams","excludeCredentials","timeout"],"type":"object"},"ReminderResult":{"properties":{"failed":{"description":"Value for the failed field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"sent":{"description":"Value for the sent field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"skipped":{"description":"Value for the skipped field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["sent","skipped","failed"],"type":"object"},"Request":{"properties":{"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"message_id":{"description":"Identifier of the associated message; platform resource IDs use ULID format unless stated otherwise.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"payload":{"description":"Value for the payload field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"payload_encoding":{"description":"Value for the payload encoding field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"received_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp when the server received the data in RFC 3339 date-time format."}},"required":["org_id","device_id","message_id","received_at","payload","payload_encoding"],"type":"object"},"Resolved":{"properties":{"bits":{"description":"Value for the bits field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"format":"int64","type":"integer"},"type":"array"},"flags":{"description":"Value for the flags field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"known":{"description":"Value for the known field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"label":{"description":"Value for the label field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract."}},"required":["known"],"type":"object"},"Response":{"properties":{"duplicate":{"description":"Value for the duplicate field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"missing":{"description":"Value for the missing field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"receipt_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"},"stored":{"description":"Value for the stored field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["receipt_id","state","stored","duplicate"],"type":"object"},"Result":{"properties":{"building":{"$ref":"#/components/schemas/BuildingTotal","description":"Value for the building field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"notes":{"description":"Value for the notes field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"premises":{"description":"Value for the premises field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/PremisesRes"},"type":"array"},"resource":{"description":"Value for the resource field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"}},"required":["resource","unit","period","building","premises","notes"],"type":"object"},"Result2":{"properties":{"class":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the class field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"complete":{"description":"Whether the associated operation or dataset is complete.","type":"boolean"},"cost":{"anyOf":[{"$ref":"#/components/schemas/CostResult"},{"type":"null"}],"description":"Value for the cost field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"degree_days":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the degree days field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"energy":{"$ref":"#/components/schemas/Energy","description":"Value for the energy field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"heated_m2":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema."},"kwh_per_m2":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema."},"kwh_per_m2_per_degree_day":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the kWh per m² per degree day field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"notes":{"description":"Value for the notes field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"quantity":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis."},"resource":{"description":"Value for the resource field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"scale":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the scale field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"}},"required":["resource","unit","quantity","energy","notes","period","heated_m2","kwh_per_m2","kwh_per_m2_per_degree_day","degree_days","class","complete"],"type":"object"},"Row":{"properties":{"cells":{"description":"Value for the cells field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"array"},"label":{"description":"Value for the label field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["label","cells"],"type":"object"},"Signer":{"properties":{"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"},"role":{"description":"Role assigned to the person or service; allowed values are defined by the operation.","maxLength":64,"type":"string"}},"required":["role"],"type":"object"},"StepUpRequirements":{"properties":{"operation_confirmation":{"description":"The organisation's current confirmation mode for sensitive operations.","enum":["automatic","none","password","second_factor","password_and_factor"],"type":"string"},"passkey":{"description":"Whether this account has a registered passkey that can confirm an operation.","type":"boolean"},"secure_mode_allowed":{"description":"Whether the secure mode counts in this organisation.","type":"boolean"},"totp":{"description":"Whether this account has a confirmed authenticator app that can confirm an operation.","type":"boolean"}},"required":["operation_confirmation","totp","passkey","secure_mode_allowed"],"type":"object"},"Table":{"properties":{"header":{"description":"Value for the header field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"rows":{"description":"Value for the rows field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Row"},"type":"array"}},"required":["header","rows"],"type":"object"},"Term":{"properties":{"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"factor":{"description":"Value for the factor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"},"to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["device_id","metric","factor"],"type":"object"},"TermSpec":{"properties":{"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"factor":{"description":"Value for the factor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"}},"required":["device_id","metric"],"type":"object"},"TierLine":{"properties":{"price":{"description":"Price or rate; the operation contract defines its currency, unit, and tax treatment.","type":"string"},"quantity":{"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis.","type":"string"},"up_to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["quantity","price"],"type":"object"},"ZoneLine":{"properties":{"gross":{"description":"Value for the gross field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"net":{"description":"Value for the net field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"price":{"description":"Price or rate; the operation contract defines its currency, unit, and tax treatment.","type":"string"},"quantity":{"description":"Measured or billable quantity; the operation contract defines its unit and calculation basis.","type":"string"},"vat":{"description":"Value for the vat field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"zone":{"description":"Value for the zone field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["zone","quantity","price","net","vat","gross"],"type":"object"},"ZoneQty":{"properties":{"consumption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the consumption field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"zone":{"description":"Value for the zone field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["zone","consumption"],"type":"object"},"ZoneSuggestion":{"properties":{"key":{"description":"Stable machine-readable key for this value or configuration entry.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"terms":{"description":"Value for the terms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Term"},"type":"array"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"},"virtual_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"zone":{"description":"Value for the zone field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["zone","virtual_id","key","name","unit","terms"],"type":"object"},"aboutModelDTO":{"properties":{"description":{"description":"Human-readable explanation of the resource or value.","type":"string"},"document_url":{"description":"Value for the document URL field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"files":{"description":"Value for the files field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/modelFileDTO"},"type":"array"},"known":{"description":"The device is of a catalogue model.","type":"boolean"},"manufacturer":{"description":"Value for the manufacturer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"model":{"description":"Value for the model field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"support":{"description":"Value for the support field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["supported","deprecated"],"type":"string"}},"required":["known","files"],"type":"object"},"acceptInvitationRequest":{"properties":{"accepted_terms":{"description":"The legal documents that were shown and are accepted, each in the version shown. Required for those not accepted before.","items":{"$ref":"#/components/schemas/legalRefDTO"},"type":"array"},"password":{"description":"A new account chooses its password; an existing account enters its own.","maxLength":1024,"type":"string"},"token":{"description":"Secret or bearer token; treat it as credential material and do not expose it in logs.","maxLength":512,"type":"string"}},"required":["token","password","accepted_terms"],"type":"object"},"acceptLegalRequest":{"properties":{"accepted_terms":{"description":"Every document that was pending, each in the version shown; nothing is recorded unless all are accepted.","items":{"$ref":"#/components/schemas/legalRefDTO"},"type":"array"}},"required":["accepted_terms"],"type":"object"},"acceptedLegalDTO":{"properties":{"accepted_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"can_withdraw":{"description":"Only the latest version, while the acceptance stands, can be withdrawn.","type":"boolean"},"checksum":{"description":"SHA-256 of the text that was accepted (UTF-8, lower-case hex), saved with the version when it was published.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"current":{"description":"This is the version in force now.","type":"boolean"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"language":{"description":"The language of the text that was accepted.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"org_name":{"description":"The organisation, for its own terms.","type":"string"},"published_at":{"description":"When this version came into force.","format":"date-time","type":"string"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["platform","organization"],"type":"string"},"source":{"description":"Value for the source field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["registration","invitation","update"],"type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"withdrawn_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the person withdrew the acceptance; absent while it stands."}},"required":["id","scope","country","language","version","title","published_at","accepted_at","checksum","source","current","can_withdraw"],"type":"object"},"acceptedLegalDetailDTO":{"properties":{"accepted_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"can_withdraw":{"description":"Only the latest version, while the acceptance stands, can be withdrawn.","type":"boolean"},"checksum":{"description":"SHA-256 of the text that was accepted (UTF-8, lower-case hex), saved with the version when it was published.","type":"string"},"content":{"description":"The text, in the language that was accepted, of exactly the version that was accepted.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"current":{"description":"This is the version in force now.","type":"boolean"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"language":{"description":"The language of the text that was accepted.","type":"string"},"main_language":{"description":"Value for the main language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"org_name":{"description":"The organisation, for its own terms.","type":"string"},"published_at":{"description":"When this version came into force.","format":"date-time","type":"string"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["platform","organization"],"type":"string"},"source":{"description":"Value for the source field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["registration","invitation","update"],"type":"string"},"texts":{"description":"Value for the texts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/legalTextDTO"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"verified":{"description":"The text still has the checksum that was saved with it.","type":"boolean"},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"withdrawn_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the person withdrew the acceptance; absent while it stands."}},"required":["id","scope","country","language","version","title","published_at","accepted_at","checksum","source","current","can_withdraw","content","verified","main_language","texts"],"type":"object"},"accessibilityDTO":{"properties":{"contrast":{"description":"Stronger text and frames than the usual.","type":"boolean"},"links":{"description":"Links are underlined everywhere, not only on hover.","type":"boolean"},"motion":{"description":"No transitions or animations.","type":"boolean"},"targets":{"description":"Buttons, menu rows and fields are at least 44 px tall.","type":"boolean"}},"required":["contrast","motion","links","targets"],"type":"object"},"ackRequest":{"properties":{"reason":{"description":"Human-readable reason for the requested or completed operation.","maxLength":500,"type":"string"}},"required":["reason"],"type":"object"},"activateDeviceRequest":{"properties":{"replace_device_id":{"description":"An active device to switch off at the same moment, so that two devices change places with one switch.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"type":"object"},"addDomainRequest":{"properties":{"host":{"description":"The host name for the organisation's own site, such as portal.example.com.","maxLength":253,"type":"string"}},"required":["host"],"type":"object"},"addEmailRequest":{"properties":{"email":{"description":"The second address; a code is mailed to it. An account has at most two addresses.","maxLength":254,"type":"string"}},"required":["email"],"type":"object"},"addGrantRequest":{"properties":{"role_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-one-of":"template_or_role"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["organization","building"],"type":"string"},"scope_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-when":{"field":"scope","in":["building"]}},"template":{"description":"Value for the template field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string","x-one-of":"template_or_role"},"valid_to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of the validity period in RFC 3339 date-time format."}},"required":["valid_to","template","role_id","scope","scope_id"],"type":"object"},"addPersonRequest":{"properties":{"display_name":{"description":"Name displayed to users in the interface.","maxLength":255,"type":"string"},"email":{"description":"Email address associated with the account or recipient.","maxLength":254,"type":"string"},"password":{"description":"Secret credential supplied for authentication; never returned by the API.","maxLength":1024,"type":"string"},"role_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-one-of":"template_or_role"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["organization","building"],"type":"string"},"scope_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-when":{"field":"scope","in":["building"]}},"template":{"description":"Value for the template field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string","x-one-of":"template_or_role"},"valid_to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of the validity period in RFC 3339 date-time format."}},"required":["valid_to","display_name","email","password","template","role_id","scope","scope_id"],"type":"object"},"adoptRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"}},"required":["building_id","name"],"type":"object"},"allowRequest":{"properties":{"entries":{"description":"Value for the entries field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"}},"required":["entries"],"type":"object"},"amountDTO":{"properties":{"before":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Consumption over the period before it."},"now":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Consumption over the period; omitted when there is no data."},"partial":{"description":"Days are missing: the two are not to be compared.","type":"boolean"}},"required":["partial"],"type":"object"},"applicationDTO":{"properties":{"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"comment":{"description":"What the person added.","type":"string"},"confirmed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the person confirmed their address."},"created_at":{"description":"Sent.","format":"date-time","type":"string"},"decided_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it was decided."},"decision_note":{"description":"The reason the person was told when declined.","type":"string"},"email":{"description":"Confirmed address.","type":"string"},"entrance":{"description":"Entrance as the person wrote it.","type":"string"},"id":{"description":"Request.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Name as the person wrote it.","type":"string"},"phone":{"description":"Telephone.","type":"string"},"premises_number":{"description":"Number of the premises as the person wrote it.","type":"string"},"relation":{"description":"How the person says they are related to the premises.","enum":["owner","tenant","family","other"],"type":"string"},"state":{"description":"State.","enum":["pending","approved","rejected"],"type":"string"}},"required":["created_at","id","building_id","name","email","phone","entrance","premises_number","relation","comment","state","decision_note"],"type":"object"},"applicationDetailDTO":{"properties":{"application":{"$ref":"#/components/schemas/applicationDTO","description":"The request."},"decided_by_name":{"description":"Who decided it.","type":"string"},"related":{"description":"Other requests from the same address, or about the same number in the same building.","items":{"$ref":"#/components/schemas/applicationDTO"},"type":"array"}},"required":["application","decided_by_name","related"],"type":"object"},"applyRequest":{"properties":{"comment":{"description":"Anything the organisation should know.","maxLength":512,"type":"string"},"consent":{"description":"You agree that the organisation processes what you wrote to consider the request.","type":"boolean"},"email":{"description":"Your e-mail address; it is confirmed by a letter.","maxLength":255,"type":"string"},"entrance":{"description":"Entrance or section.","maxLength":32,"type":"string"},"lang":{"description":"The language to write to you in.","maxLength":16,"type":"string"},"link":{"description":"The token of the building's link.","maxLength":64,"type":"string"},"name":{"description":"Your name.","maxLength":128,"minLength":1,"type":"string"},"phone":{"description":"Telephone.","maxLength":32,"type":"string"},"premises_number":{"description":"Number of the flat or other premises.","maxLength":32,"minLength":1,"type":"string"},"relation":{"description":"How you are related to the premises.","enum":["owner","tenant","family","other"],"type":"string"}},"required":["link","name","email","premises_number","relation","consent"],"type":"object"},"applyTemplateRequest":{"properties":{"task_template_id":{"description":"The kind of work whose checklist the task gets.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["task_template_id"],"type":"object"},"approveRequest":{"properties":{"from_on":{"description":"The first day of the record.","type":"string"},"premises_id":{"description":"The premises the request is about.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["premises_id","from_on"],"type":"object"},"areaDTO":{"properties":{"heated_m2":{"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema.","maxLength":32,"type":"string"},"valid_from":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"}},"required":["valid_from","heated_m2"],"type":"object"},"areaDTO2":{"properties":{"heated_m2":{"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema.","maxLength":32,"type":"string"},"valid_from":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"}},"required":["valid_from","heated_m2"],"type":"object"},"askPlatformRequest":{"properties":{"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","maxLength":16,"type":"string"},"message":{"description":"Human-readable message or text associated with the operation.","maxLength":3000,"type":"string"},"subject":{"description":"The topic, 3 to 200 characters.","maxLength":200,"type":"string"}},"required":["kind","subject","message"],"type":"object"},"assetImportRowDTO":{"properties":{"code":{"description":"Building code read from the CSV row.","type":"string"},"line":{"description":"One-based source line number in the CSV.","format":"int64","minimum":1,"type":"integer"},"outcome":{"description":"Row outcome: new, exists, duplicate, invalid, created, or failed depending on preview versus apply.","enum":["new","exists","duplicate","invalid","created","failed"],"type":"string"},"reason":{"description":"Explanation for an invalid or failed row; omitted when no explanation is needed.","type":"string"}},"required":["line","code","outcome"],"type":"object"},"attemptDTO":{"properties":{"attempt_no":{"description":"Value for the attempt no field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"failure_code":{"description":"Value for the failure code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"failure_detail":{"description":"Value for the failure detail field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"finished_at":{"description":"Completion timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"instance_id":{"description":"Identifier of the associated instance; platform resource IDs use ULID format unless stated otherwise.","type":"string"},"items_good":{"description":"Value for the items good field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"items_total":{"description":"Value for the items total field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"outcome":{"description":"Value for the outcome field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"received_at":{"description":"Timestamp when the server received the data in RFC 3339 date-time format.","format":"date-time","type":"string"},"started_at":{"description":"Start timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"}},"required":["started_at","finished_at","received_at","outcome","instance_id","attempt_no","items_total","items_good"],"type":"object"},"attentionBuildingDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"critical":{"description":"Value for the critical field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"open":{"description":"Value for the open field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["building_id","open","critical"],"type":"object"},"attentionItemDTO":{"properties":{"acknowledged_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"acknowledged_by":{"description":"Value for the acknowledged by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"cause":{"description":"Value for the cause field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"cleared":{"description":"Value for the cleared field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"cleared_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"closed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"closed_by":{"description":"Value for the closed by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"detect_count":{"description":"Value for the detect count field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"follow_up":{"description":"Value for the follow up field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"needs":{"description":"Value for the needs field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"opened_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"reopen_count":{"description":"Value for the reopen count field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"resolution":{"description":"Value for the resolution field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["manual","auto_cleared"],"type":"string"},"resolved_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"resolved_by":{"description":"Value for the resolved by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"severity":{"description":"Severity level assigned to the event or finding; allowed values are defined by the operation.","type":"string"},"sla_breached":{"description":"Value for the sla breached field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"sla_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","type":"integer"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"},"substation_id":{"description":"The heating substation a deviation incident is about.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"updated_at":{"description":"Last update timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"waiting_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","type":"integer"}},"required":["opened_at","updated_at","id","building_id","kind","severity","state","title","detect_count","reopen_count","follow_up","needs","waiting_seconds","cleared","sla_seconds","sla_breached"],"type":"object"},"attentionResponseDTO":{"properties":{"buildings":{"description":"Value for the buildings field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/attentionBuildingDTO"},"type":"array"},"critical":{"description":"Value for the critical field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"info":{"description":"Value for the info field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"items":{"description":"Value for the items field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/attentionItemDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Value for the page field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"sla_breached":{"description":"Value for the sla breached field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"truncated":{"description":"Value for the truncated field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"unacknowledged":{"description":"Value for the unacknowledged field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"warning":{"description":"Value for the warning field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["items","page","buildings","critical","warning","info","unacknowledged","sla_breached","truncated"],"type":"object"},"backfillRequest":{"properties":{"archive":{"description":"Value for the archive field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["hourly","daily"],"type":"string"},"from":{"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"reason":{"description":"Human-readable reason for the requested or completed operation.","maxLength":500,"type":"string"},"to":{"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"}},"required":["archive","from","to","reason"],"type":"object"},"balanceDTO":{"properties":{"days":{"description":"Days that should have readings.","format":"int64","type":"integer"},"difference":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Released minus received; omitted while there are issues. It is not by itself a loss."},"difference_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The difference as a share of what was released."},"ends":{"description":"The source first, then the supplied buildings.","items":{"$ref":"#/components/schemas/balanceEndDTO"},"type":"array"},"from":{"description":"First day.","type":"string"},"id":{"description":"The link.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"issues":{"description":"Why there is no difference.","items":{"enum":["no_meter","bound_later","hidden","no_data","gaps","incomplete","not_counter","units","other_supply"],"type":"string"},"type":"array"},"kind":{"description":"What is supplied.","enum":["heating","hot_water","water","electricity","gas","ventilation","cooling","other"],"type":"string"},"measured_buildings":{"description":"Supplied ends that have an amount.","format":"int64","type":"integer"},"name":{"description":"Its name.","type":"string"},"received":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What reached the supplied buildings that are measured."},"released":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What left the source."},"supplied_buildings":{"description":"Supplied ends of the link.","format":"int64","type":"integer"},"timezone":{"description":"Time zone of the days: the source building's.","type":"string"},"to":{"description":"Last day, included.","type":"string"},"unit":{"description":"Unit of the totals.","type":"string"}},"required":["id","name","kind","from","to","timezone","days","measured_buildings","supplied_buildings","issues","ends"],"type":"object"},"balanceEndDTO":{"properties":{"amount":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What its meter counted in the period, in the meter's unit."},"building_id":{"description":"Building at this end.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"building_name":{"description":"Its name.","type":"string"},"converted":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The amount in the unit of the balance."},"days_measured":{"description":"Days of the period that have a reading.","format":"int64","type":"integer"},"devices":{"description":"Names of the meters counted.","items":{"type":"string"},"type":"array"},"editable":{"description":"The person may change what measures here.","type":"boolean"},"issues":{"description":"Why this end cannot be relied on.","items":{"enum":["no_meter","bound_later","hidden","no_data","gaps","incomplete","not_counter","units","other_supply"],"type":"string"},"type":"array"},"source":{"description":"This is where the supply starts.","type":"boolean"},"system_id":{"description":"System at this end.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"system_name":{"description":"Its name.","type":"string"},"unit":{"description":"Unit of that meter.","type":"string"}},"required":["building_id","building_name","system_id","system_name","devices","days_measured","issues"],"type":"object"},"balanceEntryDTO":{"properties":{"actor":{"description":"Platform-only author identifier.","type":"string"},"amount_minor":{"description":"Signed amount in minor units.","format":"int64","type":"integer"},"created_at":{"description":"Time this movement was recorded.","format":"date-time","type":"string"},"currency":{"description":"Currency of the movement.","type":"string"},"id":{"description":"Immutable movement identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"invoice, invoice_void, payment, payment_reverse, deposit, deposit_reverse, plan_credit or plan_credit_reverse.","type":"string"},"reason":{"description":"Reason for the movement, visible to the customer.","type":"string"},"reference":{"description":"Bank or invoice reference.","type":"string"},"reversed":{"description":"Whether this deposit has already been reversed.","type":"boolean"},"source_id":{"description":"Linked invoice, payment or deposit operation identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","currency","amount_minor","kind","source_id","reference","reason","reversed","created_at"],"type":"object"},"balanceResponse":{"properties":{"accounts":{"description":"Balances by currency, without conversion.","items":{"$ref":"#/components/schemas/balanceTotalDTO"},"type":"array"}},"required":["accounts"],"type":"object"},"balanceTotalDTO":{"properties":{"amount_minor":{"description":"Signed balance: positive is advance funds, negative is debt; minor currency units.","format":"int64","type":"integer"},"currency":{"description":"Currency of this independent account.","type":"string"}},"required":["currency","amount_minor"],"type":"object"},"bandDTO":{"properties":{"class":{"description":"Value for the class field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"},"upto":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the upto field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["class"],"type":"object"},"bindRequest":{"properties":{"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"},"secret_ref":{"description":"Reference to protected secret material; the secret value itself is not returned.","maxLength":255,"type":"string"}},"required":["name","secret_ref"],"type":"object"},"bindRequest2":{"properties":{"device_id":{"description":"A device of the building at that end.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"metric":{"description":"A channel of that device.","maxLength":64,"type":"string"},"quantity":{"description":"A meter's running total or a pressure.","enum":["total","pressure"],"type":"string"},"system_id":{"description":"The end of the link: its source system or a supplied one.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["system_id","quantity","device_id","metric"],"type":"object"},"boundDTO":{"properties":{"id":{"description":"Measuring point.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"valid_from":{"description":"From when it measures.","format":"date-time","type":"string"}},"required":["valid_from","id"],"type":"object"},"brandDTO":{"properties":{"accent_color":{"description":"Value for the accent color field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":7,"type":"string"},"default_lang":{"description":"Value for the default lang field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":2,"type":"string"},"legal_line":{"description":"Value for the legal line field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":400,"type":"string"},"logo_url":{"description":"Value for the logo URL field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":500,"type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":120,"type":"string"},"support_email":{"description":"Value for the support email field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":255,"type":"string"},"support_phone":{"description":"Value for the support phone field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":40,"type":"string"},"support_url":{"description":"Value for the support URL field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":500,"type":"string"}},"required":["accent_color","logo_url","support_email","support_url","support_phone","legal_line","default_lang","name"],"type":"object"},"brandResponse":{"properties":{"brand":{"anyOf":[{"$ref":"#/components/schemas/brandDTO"},{"type":"null"}],"description":"Value for the brand field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"}},"required":["enabled","brand"],"type":"object"},"breachDTO":{"properties":{"incident_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","enum":["limit","deviation"],"type":"string"},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"opened_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"severity":{"description":"Severity level assigned to the event or finding; allowed values are defined by the operation.","enum":["info","warning","critical"],"type":"string"},"spans":{"description":"The times outside within the period.","items":{"$ref":"#/components/schemas/spanDTO"},"type":"array"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","enum":["open","acknowledged","resolved","closed"],"type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["opened_at","incident_id","metric","kind","severity","state","title","spans"],"type":"object"},"bucketDTO":{"properties":{"avg":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the avg field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"delta":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the delta field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"first":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the first field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"flags":{"description":"Value for the flags field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"good":{"description":"Value for the good field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"last":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the last field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the max field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the min field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"start":{"description":"Value for the start field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["first","last","min","max","avg","delta","start","flags","good"],"type":"object"},"bucketsResponseDTO":{"properties":{"buckets":{"description":"Value for the buckets field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/bucketDTO"},"type":"array"},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"truncated":{"description":"Value for the truncated field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["metric","period","buckets","truncated"],"type":"object"},"buildingDTO":{"properties":{"alias":{"description":"Short building alias of four characters 0-9 a-z, unique on the platform and made by the server; a printed QR code carries it instead of the long id. Omitted for a building that has none yet.","type":"string"},"city":{"description":"City or locality, required and up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"code":{"description":"Operator-facing unique building code within the organization, up to 64 characters.","maxLength":64,"minLength":1,"type":"string"},"country":{"description":"Uppercase ISO 3166-1 alpha-2 country code; immutable after building creation.","maxLength":2,"minLength":2,"pattern":"^[A-Z]{2}$","type":"string"},"id":{"description":"Stable building identifier within the platform.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Building display name, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"postal_code":{"description":"Postal or ZIP code, up to 16 characters; omitted when not recorded.","maxLength":16,"type":"string"},"revision":{"description":"Building revision used for optimistic concurrency on updates.","format":"int64","minimum":1,"type":"integer"},"street":{"description":"Street address, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"timezone":{"description":"IANA time zone used for this building's schedules and local display, for example Europe/Kyiv.","type":"string"},"use_kind":{"description":"Country-specific building use-profile code used to initialize building structure.","type":"string"},"use_profile_version":{"description":"Version of the country-specific use profile applied when the building structure was initialized.","format":"int32","minimum":0,"type":"integer"}},"required":["id","code","name","country","city","street","timezone","use_kind","use_profile_version","revision"],"type":"object"},"buildingHoldRequest":{"properties":{"expected_end":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Out of service only: when it is meant to come back.","x-shown-when":{"field":"mode","in":["service"]}},"minutes":{"description":"Manual only: how long; an hour when omitted.","format":"int64","maximum":1440,"minimum":5,"type":"integer","x-shown-when":{"field":"mode","in":["manual"]}},"mode":{"description":"manual: pause what the platform does by itself; service: take out of service.","enum":["manual","service"],"type":"string"},"reason":{"description":"Why, shown to everyone and kept in the audit trail.","maxLength":500,"minLength":3,"type":"string"}},"required":["mode","reason"],"type":"object"},"buildingPartDTO":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive time in RFC 3339 UTC format; omitted while active."},"building_id":{"description":"Building that owns this part.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation time in RFC 3339 UTC format.","format":"date-time","type":"string"},"floor_range":{"description":"Optional human-readable floor range, up to 64 characters.","maxLength":64,"type":"string"},"id":{"description":"Stable building-part identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Finite building-part category such as entrance, section, wing, facility, or floor group.","type":"string"},"name":{"description":"Operator-facing name for the entrance, wing, section, or other part; required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Part revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"},"structure_revision":{"description":"Building structure revision used to reject edits prepared against stale structure.","format":"int64","minimum":1,"type":"integer"}},"required":["id","building_id","kind","name","revision","structure_revision","created_at"],"type":"object"},"buildingPartDTOVariant":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive time in UTC; omitted while active."},"building_id":{"description":"Building that owns this part.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation time in UTC.","format":"date-time","type":"string"},"floor_range":{"description":"Optional human-readable range of floors covered by this part.","maxLength":64,"type":"string"},"id":{"description":"Stable identifier of this building part.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Building part type.","enum":["entrance","facility","floor_group","main_entrance","other","secondary_entrance","section","wing"],"type":"string"},"name":{"description":"Operator-facing part name, commonly an entrance or section label.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Revision used for optimistic concurrency on this part.","format":"int64","minimum":1,"type":"integer"},"structure_revision":{"description":"Building structure revision used to detect concurrent structure edits.","format":"int64","minimum":1,"type":"integer"}},"required":["id","building_id","kind","name","revision","structure_revision","created_at"],"type":"object"},"buildingPartRequest":{"properties":{"floor_range":{"description":"Optional human-readable floor range, up to 64 characters.","maxLength":64,"type":"string"},"kind":{"description":"Part category from the building-part kind catalogue.","type":"string"},"name":{"description":"Operator-facing part name, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Current part revision for update concurrency checks; omitted on creation.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"structure_revision":{"description":"Current building structure revision required to reject stale topology edits.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["kind","structure_revision"],"type":"object"},"buildingPartRequestVariant":{"properties":{"floor_range":{"description":"Optional human-readable range of floors served by this part.","maxLength":64,"type":"string"},"kind":{"description":"Building part type. A building can have only one active main_entrance; use secondary_entrance for additional doors.","enum":["entrance","facility","floor_group","main_entrance","other","secondary_entrance","section","wing"],"type":"string"},"name":{"description":"Operator-facing name of this building part.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Current part revision for update concurrency checks; omitted on creation.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"structure_revision":{"description":"Current building structure revision; prevents writes based on stale structure.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["kind","structure_revision"],"type":"object"},"buildingPartRequestVariant2":{"properties":{"floor_range":{"description":"Optional human-readable range of floors served by this part.","maxLength":64,"type":"string"},"kind":{"description":"Building part type. A building can have only one active main_entrance; use secondary_entrance for additional doors.","enum":["entrance","facility","floor_group","main_entrance","other","secondary_entrance","section","wing"],"type":"string"},"name":{"description":"Operator-facing name of this building part.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Revision of the part currently shown to the caller; used for optimistic concurrency.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"structure_revision":{"description":"Current building structure revision; prevents writes based on stale structure.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["kind","structure_revision"],"type":"object"},"buildingPartRestoreRequest":{"properties":{"revision":{"description":"Current archived-part revision shown to the caller; required to reject stale restoration.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"structure_revision":{"description":"Current building structure revision shown to the caller; required to reject stale topology edits.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["revision","structure_revision"],"type":"object"},"buildingPlanRequest":{"properties":{"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":86400,"minimum":10,"type":"integer"}},"required":["interval_seconds","enabled"],"type":"object"},"buildingPollingDTO":{"properties":{"devices":{"description":"Value for the devices field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"failed":{"description":"Value for the failed field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"}},"required":["devices","failed"],"type":"object"},"buildingSystemCreateRequest":{"properties":{"code":{"description":"Unique short system code within the building, up to 64 characters; made from the building code and the kind (for example B19-HEAT1) when omitted.","maxLength":64,"minLength":1,"type":"string"},"kind":{"description":"Utility/technical system category from the supported building-system catalogue.","type":"string"},"name":{"description":"Operator-facing system name, up to 255 characters; the name of the kind (for example Heating) when omitted.","maxLength":255,"minLength":1,"type":"string"},"own_source":{"description":"The system makes the resource itself: a boiler house in or on this building.","type":"boolean"},"part_ids":{"description":"Building parts served by this system; must match scope_kind and belong to the same building.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array","x-when":{"field":"scope_kind","in":["selected_parts"]}},"scope_kind":{"description":"building means the whole building and requires an empty part_ids list; selected_parts requires at least one part ID.","enum":["building","selected_parts"],"type":"string"},"technical_room_id":{"description":"Optional technical room containing the system; the room must belong to the same building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["kind","scope_kind"],"type":"object"},"buildingSystemCreateRequestVariant":{"properties":{"code":{"description":"Unique short system code within the building.","maxLength":64,"minLength":1,"type":"string"},"kind":{"description":"Utility or technical system category.","enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"},"name":{"description":"Operator-facing name, such as Heating, Ventilation, Electricity, Water, or Gas.","maxLength":255,"minLength":1,"type":"string"},"own_source":{"description":"The system makes the resource itself: a boiler house in or on this building.","type":"boolean"},"part_ids":{"description":"Building parts served by this system; empty means the system is not restricted to listed parts.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array","x-when":{"field":"scope_kind","in":["selected_parts"]}},"scope_kind":{"description":"Whether this system serves the whole building or selected building parts.","enum":["building","selected_parts"],"type":"string"},"technical_room_id":{"description":"Optional room containing the system; a system may be associated with a shared or remote room through the building model.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["kind","scope_kind"],"type":"object"},"buildingSystemDTO":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive time in RFC 3339 UTC format; omitted while active."},"building_id":{"description":"Building that owns this system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"Unique short system code within the building, up to 64 characters; made from the building code and the kind (for example B19-HEAT1) when omitted.","maxLength":64,"minLength":1,"type":"string"},"created_at":{"description":"Creation time in RFC 3339 UTC format.","format":"date-time","type":"string"},"id":{"description":"Stable system identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"System type such as heating, ventilation, hot water, water, electricity, gas, cooling, or other.","type":"string"},"name":{"description":"Operator-facing name of the utility or technical system, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"own_source":{"description":"The system makes the resource itself: a boiler house in or on this building.","type":"boolean"},"part_ids":{"description":"Building-part IDs served by this system; empty for building scope, non-empty for selected_parts scope.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array"},"revision":{"description":"System revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"},"scope_kind":{"description":"Whether the system serves the whole building or selected building parts.","type":"string"},"technical_room_id":{"description":"Room containing this system, when recorded; omitted when unknown or elsewhere.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","building_id","code","name","kind","scope_kind","own_source","part_ids","revision","created_at"],"type":"object"},"buildingSystemDTOVariant":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive time in RFC 3339 UTC format; omitted while active."},"building_id":{"description":"Building that owns this system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"Unique short system code within the building.","maxLength":64,"minLength":1,"type":"string"},"created_at":{"description":"Creation time in UTC.","format":"date-time","type":"string"},"id":{"description":"Stable identifier of this system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Utility or technical system category.","enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"},"name":{"description":"Operator-facing system name.","maxLength":255,"minLength":1,"type":"string"},"own_source":{"description":"The system makes the resource itself: a boiler house in or on this building.","type":"boolean"},"part_ids":{"description":"Building parts served by this system.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array"},"revision":{"description":"Revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"},"scope_kind":{"description":"Whether the system serves the whole building or selected building parts.","enum":["building","selected_parts"],"type":"string"},"technical_room_id":{"description":"Room containing the system, when recorded; omitted when unknown or elsewhere.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","building_id","code","name","kind","scope_kind","own_source","part_ids","revision","created_at"],"type":"object"},"buildingSystemRestoreRequest":{"properties":{"revision":{"description":"Current archived-system revision shown to the caller; required to reject stale restoration.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"},"buildingSystemUpdateRequest":{"properties":{"code":{"description":"Unique short system code within the building, up to 64 characters; made from the building code and the kind (for example B19-HEAT1) when omitted.","maxLength":64,"minLength":1,"type":"string"},"kind":{"description":"Utility/technical system category from the supported building-system catalogue.","type":"string"},"name":{"description":"Operator-facing system name, up to 255 characters; the name of the kind (for example Heating) when omitted.","maxLength":255,"minLength":1,"type":"string"},"own_source":{"description":"The system makes the resource itself: a boiler house in or on this building.","type":"boolean"},"part_ids":{"description":"Building parts served by this system; must match scope_kind and belong to the same building.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array","x-when":{"field":"scope_kind","in":["selected_parts"]}},"revision":{"description":"Current system revision shown to the caller; required for optimistic concurrency.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"scope_kind":{"description":"building means the whole building and requires an empty part_ids list; selected_parts requires at least one part ID.","enum":["building","selected_parts"],"type":"string"},"technical_room_id":{"description":"Optional technical room containing the system; the room must belong to the same building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["kind","scope_kind","revision"],"type":"object"},"buildingSystemUpdateRequestVariant":{"properties":{"code":{"description":"Unique short system code within the building.","maxLength":64,"minLength":1,"type":"string"},"kind":{"description":"Utility or technical system category.","enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"},"name":{"description":"Operator-facing system name.","maxLength":255,"minLength":1,"type":"string"},"own_source":{"description":"The system makes the resource itself: a boiler house in or on this building.","type":"boolean"},"part_ids":{"description":"Building parts served by this system.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array","x-when":{"field":"scope_kind","in":["selected_parts"]}},"revision":{"description":"Revision of the system currently shown to the caller; used for optimistic concurrency.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"scope_kind":{"description":"Whether this system serves the whole building or selected building parts.","enum":["building","selected_parts"],"type":"string"},"technical_room_id":{"description":"Optional room containing the system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["kind","scope_kind","revision"],"type":"object"},"buildingTagsRequest":{"properties":{"part_id":{"description":"A part of the building; at most one of part, system and room. None: the building itself.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"system_id":{"description":"An engineering system of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"tags":{"description":"All the tags the object is to wear; an empty list takes them off. At most 20, each up to 40 characters with no comma.","items":{"type":"string"},"type":"array"},"technical_room_id":{"description":"A technical room of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["tags"],"type":"object"},"buildingUseProfileDTO":{"properties":{"code":{"description":"Stable profile code used as the building use_kind.","type":"string"},"country":{"description":"Uppercase ISO 3166-1 alpha-2 country code that owns this building-use profile.","maxLength":2,"minLength":2,"pattern":"^[A-Z]{2}$","type":"string"},"default_part_kind":{"description":"Default building-part category created for this use profile, when applicable.","type":"string"},"default_part_name_en":{"description":"Default English name for the initial building part, when applicable.","type":"string"},"default_part_name_uk":{"description":"Default Ukrainian name for the initial building part, when applicable.","type":"string"},"label_en":{"description":"English label for the building use category.","type":"string"},"label_uk":{"description":"Ukrainian label for the building use category.","type":"string"},"version":{"description":"Published version of this country-specific structure template.","format":"int32","minimum":1,"type":"integer"}},"required":["country","code","version","label_uk","label_en"],"type":"object"},"calendarDTO":{"properties":{"critical_round_clock":{"description":"Value for the critical round clock field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"end":{"description":"A time of day in HH:MM format (24:00 is the end of the day).","format":"time","type":"string"},"exceptions":{"description":"Value for the exceptions field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/exceptionDTO"},"type":"array"},"start":{"description":"A time of day in HH:MM format (24:00 is the end of the day).","format":"time","type":"string"},"timezone":{"description":"IANA time-zone identifier used to interpret local schedules and dates.","maxLength":64,"type":"string"},"weekdays":{"description":"Value for the weekdays field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"enum":["mon","tue","wed","thu","fri","sat","sun"],"type":"string"},"type":"array"}},"required":["enabled","critical_round_clock"],"type":"object"},"cancelRequest":{"properties":{"reason":{"description":"Human-readable reason for the requested or completed operation.","maxLength":500,"type":"string"}},"required":["reason"],"type":"object"},"cardDTO":{"properties":{"fields":{"description":"The fields a card of this kind has.","items":{"enum":["model","serial","installed_on","replace_on","note"],"type":"string"},"type":"array"},"installed_on":{"description":"The day it was put in, YYYY-MM-DD; empty if not said.","format":"date","type":"string"},"may_edit":{"description":"Whether the person may change it.","type":"boolean"},"model":{"description":"Maker and model of the equipment.","type":"string"},"note":{"description":"What the engineer on site should know.","type":"string"},"replace_on":{"description":"The day it is to be replaced, YYYY-MM-DD; empty if not said.","format":"date","type":"string"},"revision":{"description":"0 while nothing was written.","format":"int64","type":"integer"},"serial":{"description":"Serial number of the equipment.","type":"string"}},"required":["fields","model","serial","installed_on","replace_on","note","revision","may_edit"],"type":"object"},"cardRequest":{"properties":{"installed_on":{"description":"YYYY-MM-DD; not for a building or a place in it.","format":"date","type":"string"},"model":{"description":"Maker and model; only for a line, a system and a substation.","maxLength":128,"type":"string"},"note":{"description":"What the engineer on site should know.","maxLength":200,"type":"string"},"replace_on":{"description":"YYYY-MM-DD, not before installed_on; not for a building or a place in it.","format":"date","type":"string"},"revision":{"description":"The revision of the card as read; 0 while nothing was written.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"serial":{"description":"Serial number; only for a line, a system and a substation.","maxLength":64,"type":"string"}},"required":["revision"],"type":"object"},"catalogueDTO":{"properties":{"forms":{"description":"Value for the forms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Form"},"type":"array"}},"required":["forms"],"type":"object"},"causeRequest":{"properties":{"cause":{"description":"Value for the cause field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":255,"type":"string"}},"required":["cause"],"type":"object"},"changePasswordRequest":{"properties":{"current_password":{"description":"Current secret credential supplied for an authenticated password change; never returned by the API.","maxLength":1024,"type":"string"},"new_password":{"description":"New secret credential supplied for an authenticated password change; never returned by the API.","maxLength":1024,"type":"string"}},"required":["current_password","new_password"],"type":"object"},"channelDTO":{"properties":{"changed_at":{"description":"RFC 3339 UTC timestamp of the latest device-specific channel setting change.","format":"date-time","type":"string"},"changed_by":{"description":"Actor reference that made the latest device-specific channel setting change.","type":"string"},"control_approved_at":{"description":"RFC 3339 UTC timestamp when the control proof was recorded.","format":"date-time","type":"string"},"control_approved_by":{"description":"Actor reference that recorded the channel's device-specific control proof.","type":"string"},"customized":{"description":"True when this device has an override from its profile defaults.","type":"boolean"},"default_enabled":{"description":"Whether the profile enables collection for this channel by default.","type":"boolean"},"enabled":{"description":"Whether collection is currently enabled after applying the profile default and device override.","type":"boolean"},"group":{"description":"Optional presentation group from profile metadata.","type":"string"},"history":{"description":"Whether accepted readings are retained in the channel's time series.","type":"boolean"},"interval_seconds":{"anyOf":[{"const":0,"type":"integer"},{"maximum":604800,"minimum":10,"type":"integer"}],"description":"Effective interval for reading this channel; 0 means every device poll."},"key":{"description":"Stable channel key from the device profile.","type":"string"},"name":{"description":"Human-readable metric label from the device profile.","type":"string"},"norm":{"anyOf":[{"$ref":"#/components/schemas/normDTO"},{"type":"null"}],"description":"Effective monitoring bounds for this channel; null means no configured norm."},"paused":{"description":"Whether organization settings explicitly pause collection for this channel.","type":"boolean"},"read_only":{"description":"True when the metric is informational and must not be written to the device.","type":"boolean"},"reason":{"description":"Audit reason supplied for the latest channel setting change.","maxLength":255,"type":"string"},"report":{"description":"Whether this metric is included in report-oriented views by default.","type":"boolean"},"unit":{"description":"Engineering unit of the metric value.","type":"string"},"writable":{"description":"True only when the profile permits writes and a device-specific control proof is present.","type":"boolean"}},"required":["name","unit","key","interval_seconds","history","writable","customized","read_only","report","default_enabled","paused","enabled"],"type":"object"},"channelDTO2":{"properties":{"config":{"additionalProperties":{"type":"string"},"description":"Value for the config field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"secret_ref":{"description":"Reference to protected secret material; the secret value itself is not returned.","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"}},"required":["id","kind","name","config","secret_ref","status"],"type":"object"},"channelHealthDTO":{"properties":{"last_good_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"measured_at":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Timestamp of the measurement in RFC 3339 date-time format."},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"norm_max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the norm max field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"norm_min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the norm min field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"norm_source":{"description":"Value for the norm source field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"stale_after_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","type":"integer"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract."}},"required":["metric","status","value","measured_at","last_good_at","norm_min","norm_max","stale_after_seconds"],"type":"object"},"channelRequest":{"properties":{"clear_norm":{"description":"When true, remove the device-specific norm and return to the profile norm; mutually exclusive with norm.","type":"boolean"},"history":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Override whether readings from this channel are retained in time-series history."},"interval_seconds":{"anyOf":[{"const":0,"type":"integer"},{"maximum":604800,"minimum":10,"type":"integer"},{"type":"null"}],"description":"Optional channel interval in seconds: 0 is every poll or message of the device, otherwise 10 to 604800."},"norm":{"anyOf":[{"$ref":"#/components/schemas/normRequestDTO"},{"type":"null"}],"description":"Replace the complete device-specific norm. Omit to leave unchanged; use clear_norm to inherit profile defaults."},"reason":{"description":"Audit reason for the setting change; required when pausing, up to 255 characters.","maxLength":255,"type":"string"},"report":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Override whether this channel is included in report-oriented views."},"state":{"anyOf":[{"enum":["enabled","paused"],"type":"string"},{"type":"null"}],"description":"Set collection state to enabled or paused. Pausing requires a non-empty audit reason."}},"type":"object"},"channelStatusRequest":{"properties":{"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","maxLength":32,"type":"string"}},"required":["status"],"type":"object"},"channelTestDTO":{"properties":{"delivered":{"description":"Value for the delivered field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["delivered"],"type":"object"},"chargeDTO":{"properties":{"amount_minor":{"description":"What is to be paid, tax included.","format":"int64","type":"integer"},"billing_months":{"description":"Value for the billing months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"buyer":{"anyOf":[{"$ref":"#/components/schemas/partyDTO"},{"type":"null"}],"description":"Only in the invoice."},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"credit_minor":{"description":"What the amount was reduced by: the unused paid part of the period before a plan changed at once.","format":"int64","type":"integer"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"due_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"footer":{"description":"Value for the footer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"hold_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Until when a reported payment keeps the suspension off while it is checked."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"invoice_number":{"description":"The invoice's number from the country's yearly sequence; empty for a charge made before invoices.","type":"string"},"issued_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"late":{"description":"The period was invoiced after it had begun, because an earlier run missed it.","type":"boolean"},"lines":{"description":"Only in the invoice: the monthly price as it was made up.","items":{"$ref":"#/components/schemas/invoiceLineDTO"},"type":"array"},"net_minor":{"description":"Value for the net minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","type":"string"},"org_id":{"description":"Only in the platform's list of every organisation's charges.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"org_name":{"description":"Value for the org name field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"package_title":{"description":"Value for the package title field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"paid_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"paid_minor":{"description":"Value for the paID minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"payments":{"description":"Value for the payments field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/paymentRecordDTO"},"type":"array"},"period_end":{"description":"Value for the period end field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"period_start":{"description":"Value for the period start field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"reference":{"description":"Value for the reference field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"remaining_minor":{"description":"Value for the remaining minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"seller":{"anyOf":[{"$ref":"#/components/schemas/partyDTO"},{"type":"null"}],"description":"Only in the invoice."},"settled_by":{"description":"Value for the settled by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"status":{"description":"pending: awaiting payment; reported: a payment the organisation reported is being checked; overdue: unpaid past its due date; paid; void.","enum":["pending","reported","overdue","paid","void"],"type":"string"},"suspend_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the organisation is suspended if the invoice is still unpaid (and no reported payment is being checked)."},"tax_minor":{"description":"Value for the tax minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"tax_rate_bp":{"description":"Value for the tax rate bp field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["id","issued_at","period_start","period_end","due_at","package_title","billing_months","net_minor","tax_minor","tax_rate_bp","amount_minor","paid_minor","remaining_minor","currency","status","payments"],"type":"object"},"choiceDTO":{"properties":{"label":{"description":"What the model's dictionary calls it; omitted for a named command.","type":"string"},"reading":{"description":"What the channel reads as when it holds.","type":"string"},"value":{"description":"What is written to choose it.","type":"string"}},"required":["value","reading"],"type":"object"},"closeRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","maxLength":32,"type":"string"}},"required":["building_id","period"],"type":"object"},"closeRequest2":{"properties":{"valid_until":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string","x-not-before":"valid_from"}},"required":["valid_until"],"type":"object"},"commandGroupDTO":{"properties":{"cause":{"description":"Why it stopped; empty otherwise.","enum":["","failed","unknown","refused","stopped","interrupted"],"type":"string"},"ended_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it completed or stopped."},"ended_name":{"description":"Who stopped it, if a person did.","type":"string"},"id":{"description":"Group.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"items":{"description":"The commands in the order they are sent.","items":{"$ref":"#/components/schemas/groupItemDTO"},"type":"array"},"reason":{"description":"Why.","type":"string"},"started_at":{"description":"When it was started.","format":"date-time","type":"string"},"started_name":{"description":"Who started it, empty when unknown.","type":"string"},"state":{"description":"completed: every command was confirmed.","enum":["running","completed","stopped"],"type":"string"}},"required":["started_at","ended_at","id","reason","state","cause","started_name","ended_name","items"],"type":"object"},"commandGroupsDTO":{"properties":{"groups":{"description":"The latest groups of the building, the newest first.","items":{"$ref":"#/components/schemas/commandGroupDTO"},"type":"array"},"may_start":{"description":"The person may start a group here.","type":"boolean"},"may_stop":{"description":"The person may stop a running group here.","type":"boolean"}},"required":["groups","may_start","may_stop"],"type":"object"},"commandInfoDTO":{"properties":{"max":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Value for the max field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"min":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Value for the min field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"step":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Value for the step field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"wire":{"description":"Value for the wire field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"type":"object"},"commandMomentDTO":{"properties":{"at":{"description":"When it falls.","format":"date-time","type":"string"},"value":{"description":"What is sent then.","type":"string"}},"required":["at","value"],"type":"object"},"commandOptionDTO":{"properties":{"max":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Highest number of a range."},"min":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Lowest number of a range."},"name":{"description":"A named command; it is what is sent as the value.","type":"string"},"step":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Step of a range, counted from its lowest number."}},"type":"object"},"commandPointDTO":{"properties":{"day":{"description":"Day of the week, 1 is Monday and 7 is Sunday.","format":"int64","maximum":7,"minimum":1,"type":"integer"},"time":{"description":"Time on the clock of the building, HH:MM.","format":"time","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","type":"string"},"value":{"description":"What the channel is told at this moment: the name of one of its commands, or a number for a setpoint.","maxLength":64,"minLength":1,"type":"string"}},"required":["day","time","value"],"type":"object"},"commandRecordDTO":{"properties":{"by_kind":{"description":"Who asked.","enum":["person","schedule","group","system"],"type":"string"},"by_name":{"description":"The person's name, the schedule's name or the group command's reason; empty when unknown.","type":"string"},"completed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it was over."},"created_at":{"description":"When it was asked for.","format":"date-time","type":"string"},"detail":{"description":"Code saying why it failed or what is not known; empty otherwise.","type":"string"},"device_says":{"description":"What the device or driver wrote about a command that was not confirmed.","type":"string"},"id":{"description":"The operation.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"key":{"description":"Channel.","type":"string"},"previous":{"description":"What the channel was read as before the command; omitted when unknown.","type":"string"},"read_back":{"description":"What the channel was read as since the command ended (for its latest command).","type":"string"},"reason":{"description":"Why.","type":"string"},"result":{"description":"What became of it.","enum":["waiting","confirmed","failed","unknown"],"type":"string"},"value":{"description":"What was asked.","type":"string"}},"required":["created_at","id","key","value","reason","result","detail","by_kind","by_name"],"type":"object"},"commandRunDTO":{"properties":{"command_state":{"description":"The present state of that operation; empty when it is not kept any more.","type":"string"},"detail":{"description":"Why it was refused.","type":"string"},"due_at":{"description":"The moment.","format":"date-time","type":"string"},"job_id":{"description":"The operation of the command.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"outcome":{"description":"queued: a command was put in the queue; refused: the platform may not send it; missed: the platform was too late.","enum":["queued","refused","missed"],"type":"string"},"revision":{"description":"The approved revision that acted.","format":"int64","type":"integer"},"value":{"description":"What was to be sent.","type":"string"}},"required":["due_at","value","outcome","revision"],"type":"object"},"commandScheduleDTO":{"properties":{"approved_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it was enabled; only moments after this act."},"approved_by":{"description":"Who enabled it.","type":"string"},"edited_by":{"description":"Who wrote the current content; this person cannot enable it.","type":"string"},"id":{"description":"Identifier of the schedule.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"key":{"description":"The controlled channel.","type":"string"},"name":{"description":"Name of the schedule.","type":"string"},"next":{"anyOf":[{"$ref":"#/components/schemas/commandMomentDTO"},{"type":"null"}],"description":"The next moment of an active schedule."},"points":{"description":"The moments of the week in order.","items":{"$ref":"#/components/schemas/commandPointDTO"},"type":"array"},"revision":{"description":"Revision; changes with every write.","format":"int64","type":"integer"},"state":{"description":"draft sends nothing; active sends at its moments.","enum":["draft","active"],"type":"string"},"timezone":{"description":"The zone of the building, in which the times are read.","type":"string"},"updated_at":{"description":"Last change.","format":"date-time","type":"string"},"valid_minutes":{"description":"How long a command waits for its device.","format":"int64","type":"integer"}},"required":["id","key","name","state","points","valid_minutes","revision","edited_by","timezone","updated_at"],"type":"object"},"commandTargetsDTO":{"properties":{"devices":{"description":"Devices of the building that take commands.","items":{"$ref":"#/components/schemas/targetDeviceDTO"},"type":"array"},"max_items":{"description":"How many commands a group takes at most.","format":"int64","type":"integer"},"may_start":{"description":"The person may command equipment of this building.","type":"boolean"}},"required":["devices","may_start","max_items"],"type":"object"},"conditionDTO":{"properties":{"op":{"description":"How its answer is compared: is, is_not, and for a number gt, ge, lt, le.","enum":["is","is_not","gt","ge","lt","le"],"type":"string"},"step":{"description":"The key of an earlier step.","maxLength":500,"type":"string"},"value":{"description":"What it is compared with: a number, one of the answers, the words, or done / na for a tick.","maxLength":500,"type":"string"}},"required":["step","op","value"],"type":"object"},"configDTO":{"properties":{"base_temp":{"description":"Value for the base temp field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"energy_virtual_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"resource":{"description":"Value for the resource field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"tariff_code":{"description":"Value for the tariff code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"temp_device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"temp_metric":{"description":"Value for the temp metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"}},"required":["energy_virtual_id"],"type":"object"},"confirmEmailRequest":{"properties":{"code":{"description":"The six digits mailed to the address.","maxLength":64,"type":"string"}},"required":["code"],"type":"object"},"confirmRequest":{"properties":{"token":{"description":"The token of the letter.","maxLength":64,"type":"string"}},"required":["token"],"type":"object"},"confirmRequest2":{"properties":{"paid_at":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"},"reference":{"description":"Value for the reference field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":128,"type":"string"}},"required":["paid_at","reference"],"type":"object"},"contactAnswerRequest":{"properties":{"accept":{"description":"Whether to be told of incidents.","type":"boolean"},"token":{"description":"The token of the link.","maxLength":100,"minLength":20,"type":"string"}},"required":["token","accept"],"type":"object"},"contactDTO":{"properties":{"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"lang":{"description":"Language or locale code used for localized content.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"premises_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["created_at","id","name","email"],"type":"object"},"contactInvitationDTO":{"properties":{"building":{"description":"About which building.","type":"string"},"organisation":{"description":"Who asks.","type":"string"}},"required":["organisation","building"],"type":"object"},"contactRequest":{"properties":{"email":{"description":"Email address associated with the account or recipient.","type":"string"},"lang":{"description":"Language of the notices to this person; empty means the organisation's language.","maxLength":16,"type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"minLength":1,"type":"string"},"premises_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["premises_id","name","email"],"type":"object"},"contactStopRequest":{"properties":{"token":{"description":"The token of the stop link.","maxLength":100,"minLength":20,"type":"string"}},"required":["token"],"type":"object"},"contractDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"},"payer_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"premises_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"valid_from":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format.","x-not-before":"valid_from"}},"required":["created_at","valid_until","payer_id","building_id","number","valid_from"],"type":"object"},"controlProofRequest":{"properties":{"evidence":{"description":"Evidence that this specific device and channel have been verified writable, such as a bench test reference; required, 10 to 500 characters.","maxLength":500,"minLength":10,"type":"string"}},"required":["evidence"],"type":"object"},"countriesResponseDoc":{"properties":{"countries":{"description":"Value for the countries field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/countryResponseDoc"},"type":"array"}},"required":["countries"],"type":"object"},"countryResponseDoc":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"default_currency":{"description":"Value for the default currency field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"default_language":{"description":"Value for the default language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"ground_floor":{"description":"Number of the floor at the ground in the country: 0 or 1.","format":"int64","type":"integer"},"legal_ready":{"description":"Value for the legal ready field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"names":{"additionalProperties":{"type":"string"},"description":"Value for the names field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"profile_ready":{"description":"Value for the profile ready field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"profile_version":{"description":"Value for the profile version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"time_zone":{"description":"Value for the time zone field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"valid_from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Start of the validity period in RFC 3339 date-time format."}},"required":["code","enabled","legal_ready","profile_ready","ground_floor"],"type":"object"},"createCommandScheduleRequest":{"properties":{"key":{"description":"The channel of the device the schedule controls; a channel has at most one schedule.","maxLength":64,"minLength":1,"type":"string"},"name":{"description":"What people call the schedule; it is written into the reason of every command it sends.","maxLength":128,"minLength":1,"type":"string"},"points":{"description":"The moments of one week, each day and time at most once.","items":{"$ref":"#/components/schemas/commandPointDTO"},"maxItems":168,"minItems":1,"type":"array"},"valid_minutes":{"description":"How long a command waits for its device after its moment (never past the next moment); 15 when omitted.","format":"int64","maximum":120,"minimum":5,"type":"integer"}},"required":["key","name","points"],"type":"object"},"createDeviceRequest":{"properties":{"building_id":{"description":"Building that owns the device; must be within the active organization scope.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Operator-facing device name, up to 128 characters; made from the model and the address or serial number (for example Meter 5) when omitted.","maxLength":128,"minLength":1,"type":"string"},"path_id":{"description":"Communication path in the selected building; the path must be active and compatible with the profile.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-within":"building_id"},"primary_address":{"anyOf":[{"format":"int64","maximum":255,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Optional numeric primary protocol address. API range is 0–255; protocol-specific validation may require a value or a narrower range."},"profile_id":{"description":"Device profile defining the protocol driver, variant, and metric map.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"secondary_address":{"description":"Optional protocol-specific secondary address; M-Bus accepts eight hexadecimal characters, while other protocols may reject it.","pattern":"^[0-9A-Fa-f]{8}$","type":"string"},"serial":{"description":"Optional device serial number, up to 64 characters; unique among live devices in the organization when supplied.","maxLength":64,"type":"string"},"system_id":{"description":"Optional system within the selected building; empty or omitted assigns the device to no system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["building_id","path_id","profile_id"],"type":"object"},"createEndpointRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":255,"type":"string"},"serial_field":{"description":"Value for the serial field field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"}},"required":["building_id","name","serial_field"],"type":"object"},"createKeyRequest":{"properties":{"days":{"description":"Value for the days field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":365,"minimum":1,"type":"integer"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"}},"required":["name","days"],"type":"object"},"createPathRequest":{"properties":{"building_id":{"description":"Building that owns this physical communication path.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"endpoint":{"description":"TCP host:port or inbound listen address appropriate for kind; up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"kind":{"description":"Transport type supported by the device path API: tcp or inbound. HTTP push endpoints use the push-endpoints API.","enum":["tcp","inbound"],"type":"string"},"name":{"description":"Operator-facing name of the physical line or gateway, up to 128 characters; made from the kind and the endpoint (for example TCP 10.0.0.5:502) when omitted.","maxLength":128,"minLength":1,"type":"string"}},"required":["building_id","kind","endpoint"],"type":"object"},"createPathRequestVariant":{"properties":{"building_id":{"description":"Building that owns this physical communication path.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"endpoint":{"description":"TCP host:port or inbound listen address appropriate for kind; up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"kind":{"description":"Transport type supported by the device path API: tcp or inbound. HTTP push endpoints use the push-endpoints API.","enum":["inbound","tcp"],"type":"string"},"name":{"description":"Operator-facing name of the physical line or gateway, up to 128 characters; made from the kind and the endpoint (for example TCP 10.0.0.5:502) when omitted.","maxLength":128,"minLength":1,"type":"string"}},"required":["building_id","kind","endpoint"],"type":"object"},"createProfileRequest":{"properties":{"derived":{"description":"Calculated metric definitions evaluated from raw metrics and other calculated metrics; expressions must resolve without cycles, up to 64 calculated metrics.","items":{"$ref":"#/components/schemas/derivedDTO"},"maxItems":64,"type":"array"},"dictionaries":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Dictionary definitions keyed by alias. Dictionary values are JSON objects describing key_value, bit_flags, or point_map mappings.","type":"object"},"items":{"description":"Raw metric definitions acquired by the driver; 1 to 512 items, each with a unique stable key.","items":{"$ref":"#/components/schemas/itemDTO"},"maxItems":512,"minItems":1,"type":"array"},"name":{"description":"Human-readable device model/profile name; required, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"protocol":{"description":"Protocol driver identifier. Must be one of the protocols registered in the platform's driver catalogue.","type":"string"},"variant":{"description":"Protocol-specific transport/framing variant. Must be supported by the selected protocol; omitted only when that protocol has a single variant.","maxLength":32,"type":"string"}},"required":["name","protocol","items"],"type":"object"},"createProfileRequestVariant":{"properties":{"derived":{"description":"Calculated metric definitions evaluated from raw metrics and other calculated metrics; expressions must resolve without cycles, up to 64 calculated metrics.","items":{"$ref":"#/components/schemas/derivedDTO"},"maxItems":64,"type":"array"},"dictionaries":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Dictionary definitions keyed by alias. Dictionary values are JSON objects describing key_value, bit_flags, or point_map mappings.","type":"object"},"items":{"description":"Raw metric definitions acquired by the driver; 1 to 512 items, each with a unique stable key.","items":{"$ref":"#/components/schemas/itemDTO"},"maxItems":512,"minItems":1,"type":"array"},"name":{"description":"Human-readable device model/profile name; required, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"protocol":{"description":"Protocol driver identifier. Must be one of the protocols registered in the platform's driver catalogue.","enum":["axis-skm01","custom","dlms","iec62056-21","mbus","modbus"],"type":"string"},"variant":{"description":"Protocol-specific framing/transport variant. Select one of the values listed for the selected protocol; the server validates the pair.","type":"string","x-supported-values-by-protocol":{"axis-skm01":["standard"],"custom":["json","form"],"dlms":["hdlc","wrapper"],"iec62056-21":["readout","push"],"mbus":["wired-primary","wired-secondary"],"modbus":["rtu","tcp","ascii"]}}},"required":["name","protocol","items"],"type":"object"},"createRequest":{"properties":{"city":{"description":"City or locality, required and up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"code":{"description":"Unique organization-facing building code, up to 64 characters; made from the house number of the street when omitted.","maxLength":64,"minLength":1,"type":"string"},"country":{"anyOf":[{"maxLength":2,"minLength":2,"pattern":"^[A-Z]{2}$","type":"string"},{"const":"","type":"string"}],"description":"Uppercase ISO 3166-1 alpha-2 country code; omitted or empty defaults to UA on creation and cannot be changed later."},"entrances":{"description":"How many entrances the building starts with, 1 to 50, each with the floors given; 1 when omitted. Only a multi-apartment building takes more than one.","format":"int64","maximum":50,"minimum":1,"type":"integer","x-shown-when":{"field":"use_kind","in":["multi_apartment_residential"]}},"floor_range":{"description":"Optional initial floor counts for the default part. Start at floor 0 or 1, with up to 200 above-ground floors and 10 underground levels; ranges with both use the form -2..-1;0-4. Up to 64 characters.","maxLength":64,"type":"string","x-shown-when":{"field":"use_kind","in":["multi_apartment_residential","detached_residential"]}},"name":{"description":"Building display name, up to 255 characters; the street when omitted.","maxLength":255,"minLength":1,"type":"string"},"postal_code":{"description":"Postal or ZIP code, up to 16 characters.","maxLength":16,"type":"string"},"street":{"description":"Street address, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"systems":{"description":"The kinds of systems the building starts with, one of each, serving the whole building.","items":{"enum":["heating","hot_water","water","electricity","gas","ventilation","cooling","other"],"type":"string"},"type":"array"},"timezone":{"description":"Valid IANA time-zone identifier; omitted or empty defaults to Europe/Kyiv.","type":"string"},"use_kind":{"description":"Country-specific building-use-profile code. Defaults to multi_apartment_residential on creation; the selected profile determines the initial building structure.","type":"string"}},"required":["city","street"],"type":"object"},"createRequest2":{"properties":{"key":{"description":"Short identifier of the channel (a-z, 0-9, underscore; starts with a letter, up to 64 characters) used in formulas and exports; made from the name when omitted.","maxLength":64,"minLength":1,"type":"string"},"measure":{"description":"Value for the measure field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":8,"type":"string"},"name":{"description":"What the channel is called, up to 255 characters; the key when omitted.","maxLength":255,"minLength":1,"type":"string"},"purpose":{"description":"Value for the purpose field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"terms":{"description":"Value for the terms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Term"},"type":"array"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","maxLength":16,"type":"string"}},"required":["unit","purpose","measure","terms"],"type":"object"},"createRequest3":{"properties":{"config":{"additionalProperties":{"type":"string"},"description":"Value for the config field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","maxLength":16,"type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"},"secret_ref":{"description":"Reference to protected secret material; the secret value itself is not returned.","maxLength":255,"type":"string"}},"required":["kind","name","config","secret_ref"],"type":"object"},"createdDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"path":{"description":"Value for the path field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"secret":{"description":"Secret credential material; returned only by operations that explicitly issue a one-time secret.","type":"string"},"secret_rotated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"send":{"$ref":"#/components/schemas/sendDTO","description":"Value for the send field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"serial_field":{"description":"Value for the serial field field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"slug":{"description":"Value for the slug field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"url":{"description":"URL associated with the resource or operation.","type":"string"}},"required":["created_at","id","building_id","name","status","slug","path","serial_field","secret","send"],"type":"object"},"currentDTO":{"properties":{"meaning":{"anyOf":[{"$ref":"#/components/schemas/Resolved"},{"type":"null"}],"description":"Value for the meaning field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"measured_at":{"description":"Timestamp of the measurement in RFC 3339 date-time format.","format":"date-time","type":"string"},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"quality":{"description":"Value for the quality field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"received_at":{"description":"Timestamp when the server received the data in RFC 3339 date-time format.","format":"date-time","type":"string"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The value of a channel that says something in words (a serial number, a version, a mode); value is then null."},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract."}},"required":["measured_at","received_at","value","quality","metric"],"type":"object"},"currentResponseDTO":{"properties":{"values":{"description":"Value for the values field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/currentDTO"},"type":"array"}},"required":["values"],"type":"object"},"customCreated":{"properties":{"example":{"$ref":"#/components/schemas/exampleDTO","description":"Generated payload example and a dry-run of its parsing."},"next":{"description":"Suggested next API operations to create a receive endpoint and register a device.","items":{"type":"string"},"type":"array"},"profile":{"$ref":"#/components/schemas/profileDTO","description":"Newly created organization-owned custom device profile."}},"required":["profile","example","next"],"type":"object"},"customRequest":{"properties":{"derived":{"description":"Optional calculated metrics based on raw and other calculated channel keys, up to 64 calculated metrics.","items":{"$ref":"#/components/schemas/derivedDTO"},"maxItems":64,"type":"array"},"dictionaries":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Optional value dictionaries keyed by alias; channel meta.dictionary may reference one of these aliases.","type":"object"},"items":{"description":"Metric definitions mapping payload fields to stable channel keys; each item requires protocol-specific field and type parameters.","items":{"$ref":"#/components/schemas/itemDTO"},"maxItems":512,"minItems":1,"type":"array"},"name":{"description":"Name of the organization-owned custom device profile; required, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"payload":{"description":"Optional sample payload to parse during preview. When absent, the platform generates an example payload from the item definitions.","type":"string"},"serial":{"description":"Example serial value inserted into the generated sample payload; defaults to SN-0001.","maxLength":64,"type":"string"},"serial_field":{"description":"Payload field name containing the device serial. Empty defaults to serial; used for example generation and parsing.","maxLength":64,"type":"string"},"variant":{"description":"Incoming payload encoding. json accepts an application/json object; form accepts URL-encoded form data. Empty defaults to json.","enum":["json","form"],"type":"string"}},"required":["name","items"],"type":"object"},"customRoleDTO":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive timestamp in RFC 3339 date-time format; null or omission means the resource is not archived."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"permissions":{"description":"Permission set granted to the role or service identity.","items":{"type":"string"},"type":"array"},"revision":{"description":"Resource revision used to detect stale updates or concurrent changes.","format":"int64","type":"integer"}},"required":["id","name","permissions","revision"],"type":"object"},"customRoleRequest":{"properties":{"name":{"description":"Human-readable name or label of this resource.","maxLength":240,"type":"string"},"permissions":{"description":"Permission set granted to the role or service identity.","items":{"type":"string"},"type":"array"}},"required":["name","permissions"],"type":"object"},"customRoleUpdateRequest":{"properties":{"name":{"description":"Human-readable name or label of this resource.","maxLength":240,"type":"string"},"permissions":{"description":"Permission set granted to the role or service identity.","items":{"type":"string"},"type":"array"},"revision":{"description":"Current role revision; required to prevent overwriting concurrent edits.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["name","permissions","revision"],"type":"object"},"debugCenterResponse":{"properties":{"max_proxies":{"description":"Value for the max proxies field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"proxies":{"description":"Value for the proxies field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/proxyDTO"},"type":"array"},"recordings":{"description":"Value for the recordings field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/recordingDTO"},"type":"array"},"sessions":{"description":"Value for the sessions field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/sessionDTO2"},"type":"array"}},"required":["proxies","recordings","sessions","max_proxies"],"type":"object"},"debugDTO":{"properties":{"attempts":{"description":"Value for the attempts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/attemptDTO"},"type":"array"},"connection":{"$ref":"#/components/schemas/linkDTO2","description":"Value for the connection field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"jobs":{"description":"Value for the jobs field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/jobDTO"},"type":"array"},"lease":{"anyOf":[{"$ref":"#/components/schemas/leaseDTO"},{"type":"null"}],"description":"Value for the lease field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"line":{"$ref":"#/components/schemas/linkDTO2","description":"One-based source-file line number associated with the import result."},"path_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"polling":{"anyOf":[{"$ref":"#/components/schemas/planDTO"},{"type":"null"}],"description":"Value for the polling field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["device_id","path_id","jobs","attempts","connection","line"],"type":"object"},"debugRequest":{"properties":{"minutes":{"description":"How long to keep recording, in minutes: from 1 to 1440 (24 hours); 60 when omitted.","format":"int64","maximum":1440,"minimum":1,"type":"integer"}},"required":["minutes"],"type":"object"},"defaultRoleRequest":{"properties":{"role_key":{"description":"Stable key identifying a built-in or organization-defined role.","maxLength":64,"type":"string"}},"required":["role_key"],"type":"object"},"defaultRoleResponse":{"properties":{"role_key":{"description":"Stable key identifying a built-in or organization-defined role.","type":"string"}},"required":["role_key"],"type":"object"},"deliveryDTO":{"properties":{"attempts":{"description":"Value for the attempts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"channel_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"error":{"description":"Value for the error field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"event_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"},"updated_at":{"description":"Last update timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"}},"required":["created_at","updated_at","channel_id","event_id","state","attempts"],"type":"object"},"derivedDTO":{"properties":{"depends_on":{"description":"Optional declared dependency keys. References must resolve to profile metrics or calculated metrics and must not form a cycle.","items":{"type":"string"},"type":"array"},"expression":{"description":"Formula evaluated from profile metric keys and other calculated metric keys.","maxLength":500,"minLength":1,"type":"string"},"key":{"description":"Stable machine key used in readings and reports; lowercase letters, digits, and underscores, starting with a letter, up to 64 characters.","maxLength":64,"minLength":1,"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"},"meta":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Presentation metadata for this calculated metric.","type":"object"},"name":{"description":"Optional human-readable calculated metric label; defaults to the stable key, up to 128 characters.","maxLength":128,"type":"string"},"unit":{"description":"Unit of the calculated result, for example °C, kWh, m³, or bar; up to 16 characters.","maxLength":16,"type":"string"}},"required":["key","unit","expression"],"type":"object"},"deviceDTO":{"properties":{"building_id":{"description":"Building that owns the device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"id":{"description":"Immutable device identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"last_data_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"In the list: when the device last sent a value; omitted when it never did or the caller may not see its data."},"name":{"description":"Operator-facing device name, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"path_id":{"description":"Communication path used by the poller to reach this device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-within":"building_id"},"plan_suspended":{"description":"The platform has suspended the device because there are more devices than the package allows: it is not polled and accepts no readings, nothing is deleted. Activate it (and switch another device off) to choose which devices work.","type":"boolean"},"plan_suspended_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the platform suspended the device."},"primary_address":{"anyOf":[{"format":"int64","maximum":255,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Optional numeric primary protocol address. Valid range is 0–255 at the API boundary; the selected protocol may impose a narrower range or require it."},"profile_id":{"description":"Device profile defining protocol, variant, raw metrics, and calculated metrics.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Monotonically increasing device revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"},"secondary_address":{"description":"Optional protocol-specific secondary address, for example an eight-character hexadecimal M-Bus address; validity depends on the profile protocol.","pattern":"^[0-9A-Fa-f]{8}$","type":"string"},"serial":{"description":"Optional manufacturer/device serial number; unique among live organization devices when supplied, up to 64 characters.","maxLength":64,"type":"string"},"status":{"description":"Owner-controlled device lifecycle state; operational states are derived separately from telemetry.","enum":["planned","commissioned","operating","out_of_service","decommissioned"],"type":"string"},"system_id":{"description":"Optional building system this device belongs to, such as heating, ventilation, electricity, water, or gas.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","building_id","path_id","profile_id","name","status","revision","plan_suspended"],"type":"object"},"deviceDTOVariant":{"properties":{"building_id":{"description":"Building that owns the device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"id":{"description":"Immutable device identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"last_data_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"In the list: when the device last sent a value; omitted when it never did or the caller may not see its data."},"name":{"description":"Operator-facing device name, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"path_id":{"description":"Communication path used by the poller to reach this device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-within":"building_id"},"plan_suspended":{"description":"The platform has suspended the device because there are more devices than the package allows: it is not polled and accepts no readings, nothing is deleted. Activate it (and switch another device off) to choose which devices work.","type":"boolean"},"plan_suspended_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the platform suspended the device."},"primary_address":{"anyOf":[{"format":"int64","maximum":255,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Optional numeric primary protocol address. Valid range is 0–255 at the API boundary; the selected protocol may impose a narrower range or require it."},"profile_id":{"description":"Device profile defining protocol, variant, raw metrics, and calculated metrics.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Monotonically increasing device revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"},"secondary_address":{"description":"Optional protocol-specific secondary address, for example an eight-character hexadecimal M-Bus address; validity depends on the profile protocol.","pattern":"^[0-9A-Fa-f]{8}$","type":"string"},"serial":{"description":"Optional manufacturer/device serial number; unique among live organization devices when supplied, up to 64 characters.","maxLength":64,"type":"string"},"status":{"description":"Owner-controlled device lifecycle state; operational states are derived separately from telemetry.","enum":["planned","commissioned","operating","out_of_service","decommissioned"],"type":"string"},"system_id":{"description":"Optional building system this device belongs to, such as heating, ventilation, electricity, water, or gas.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","building_id","path_id","profile_id","name","status","revision","plan_suspended"],"type":"object"},"deviceDebugResponse":{"properties":{"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"recording":{"description":"Value for the recording field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"recording_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["device_id","recording","recording_until"],"type":"object"},"deviceEditionsDTO":{"properties":{"current_revision":{"description":"Value for the current revision field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"firmware":{"description":"Value for the firmware field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"others":{"description":"Editions of the same model the device may be moved to.","items":{"$ref":"#/components/schemas/editionOptionDTO"},"type":"array"}},"required":["current_revision","firmware","others"],"type":"object"},"deviceSlotsDTO":{"properties":{"active":{"description":"Devices that work now: in operation and not suspended.","format":"int64","type":"integer"},"hard":{"description":"There are more devices than the package allows: the choice of active devices is limited.","type":"boolean"},"limit":{"description":"How many devices the package allows to be active at once.","format":"int64","type":"integer"},"suspended":{"description":"Devices the platform has suspended.","format":"int64","type":"integer"},"switches_per_day":{"description":"How many devices may be switched on a day while there are more devices than the package allows: as many as the package has places.","format":"int64","type":"integer"},"switches_used":{"description":"Switches used today (UTC).","format":"int64","type":"integer"},"total":{"description":"Live devices of the organisation.","format":"int64","type":"integer"}},"required":["limit","total","active","suspended","hard","switches_per_day","switches_used"],"type":"object"},"deviceSystemRequest":{"properties":{"revision":{"description":"Device revision shown when the request was prepared; required to reject stale concurrent updates.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"system_id":{"description":"Target system in the same building; empty or omitted removes the device's system assignment.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["revision"],"type":"object"},"deviceTagsRequest":{"properties":{"tags":{"description":"All the tags the device is to wear; an empty list takes them off. At most 20, each up to 40 characters with no comma.","items":{"type":"string"},"type":"array"}},"required":["tags"],"type":"object"},"dictionaryDTO":{"properties":{"above":{"description":"For point_map inputs above the last point, choose whether to reject, clip to the last output, or extrapolate.","enum":["reject","clip","extrapolate"],"type":"string"},"alias":{"description":"Stable dictionary key referenced from metric metadata, up to 64 characters.","maxLength":64,"minLength":1,"type":"string"},"below":{"description":"For point_map inputs below the first point, choose whether to reject, clip to the first output, or extrapolate.","enum":["reject","clip","extrapolate"],"type":"string"},"decimals":{"anyOf":[{"format":"int32","maximum":12,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Optional output rounding precision for point_map conversion, from 0 to 12 decimal places; absent means no rounding."},"entries":{"description":"Sorted labels for key_value or bit_flags dictionaries; omitted for point_map.","items":{"$ref":"#/components/schemas/entryDTO2"},"type":"array"},"name":{"description":"Dictionary name selected for the requested language.","type":"string"},"name_translations":{"additionalProperties":{"type":"string"},"description":"All available dictionary names keyed by language code; und denotes a language-independent name.","type":"object"},"points":{"description":"Ordered conversion points for point_map dictionaries; omitted for key_value and bit_flags.","items":{"$ref":"#/components/schemas/pointDTO3"},"type":"array"},"type":{"description":"Mapping type: key_value maps an integer to a label, bit_flags labels set bits in a mask, and point_map interpolates numeric coordinates.","enum":["key_value","bit_flags","point_map"],"type":"string"},"used_by":{"description":"Metric keys in this profile whose metadata references this dictionary alias; empty when unused.","items":{"type":"string"},"type":"array"}},"required":["name","name_translations","alias","type","used_by"],"type":"object"},"discoveredDTO":{"properties":{"field":{"description":"Value for the field field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"first_seen":{"description":"Value for the first seen field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"last_seen":{"description":"Value for the last seen field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"sample":{"description":"Value for the sample field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"seen":{"description":"Value for the seen field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"suggested_key":{"description":"Value for the suggested key field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"suggested_type":{"description":"Value for the suggested type field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["first_seen","last_seen","field","sample","status","suggested_key","suggested_type","seen"],"type":"object"},"documentResponse":{"properties":{"checksum":{"description":"SHA-256 of the text (UTF-8, lower-case hex), computed when this version was saved.","type":"string"},"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"created_by":{"description":"Value for the created by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"organization_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"scheduled":{"description":"Value for the scheduled field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"valid_from":{"description":"Start of the validity period in RFC 3339 date-time format.","format":"date-time","type":"string"},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Expiry timestamp in RFC 3339 date-time format."},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["country","language","title","content","checksum","valid_from","version"],"type":"object"},"domainDTO":{"properties":{"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"host":{"description":"Value for the host field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"last_check_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"last_error":{"description":"Why the last check did not verify the host.","type":"string"},"status":{"description":"pending until the proof is found in DNS, then verified.","enum":["pending","verified"],"type":"string"},"txt_name":{"description":"Value for the txt name field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"txt_value":{"description":"Value for the txt value field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"verified_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["host","status","created_at"],"type":"object"},"edgeDTO":{"properties":{"from":{"description":"Point the piece of pipe starts at; omitted: the source.","type":"string"},"to":{"description":"Point it ends at.","type":"string"}},"required":["to"],"type":"object"},"editTemplateRequest":{"properties":{"columns":{"description":"Value for the columns field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ColumnSpec"},"type":"array"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Set to an empty string to clear the optional period."},"version":{"description":"Required current template version for optimistic concurrency.","format":"int64","maximum":1000000,"minimum":1,"type":"integer"}},"required":["name","columns","version"],"type":"object"},"editionOptionDTO":{"properties":{"added":{"description":"Parameters the edition has and the current one has not.","items":{"type":"string"},"type":"array"},"changed":{"description":"Parameters read or written otherwise.","items":{"type":"string"},"type":"array"},"firmware":{"description":"Value for the firmware field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"profile_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"removed":{"description":"Parameters that would go.","items":{"type":"string"},"type":"array"},"revision":{"description":"Resource revision used to detect stale updates or concurrent changes.","format":"int64","type":"integer"},"standard":{"description":"Value for the standard field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["profile_id","name","revision","standard","firmware","added","removed","changed"],"type":"object"},"effectiveDTO":{"properties":{"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"language_source":{"description":"Value for the language source field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"timezone":{"description":"IANA time-zone identifier used to interpret local schedules and dates.","type":"string"},"timezone_source":{"description":"Value for the timezone source field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["language","language_source","timezone","timezone_source"],"type":"object"},"emailDTO":{"properties":{"code_expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the code mailed to an unconfirmed address stops working."},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"id":{"description":"The main address has the id of the account.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"primary":{"description":"The main address: the one the account is known by.","type":"boolean"},"verified":{"description":"Confirmed with a code (or a link, for the main address).","type":"boolean"}},"required":["id","email","primary","verified"],"type":"object"},"emailRequest":{"properties":{"email":{"description":"Email address associated with the account or recipient.","maxLength":254,"type":"string"}},"required":["email"],"type":"object"},"enableCommandScheduleRequest":{"properties":{"revision":{"description":"The revision the approver has read; any other is refused.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"},"endDTO":{"properties":{"building_id":{"description":"Building at this end.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"building_name":{"description":"Its name.","type":"string"},"editable":{"description":"The person may change what measures here.","type":"boolean"},"source":{"description":"This is where the supply starts.","type":"boolean"},"system_id":{"description":"System at this end.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"system_name":{"description":"Its name.","type":"string"}},"required":["building_id","building_name","system_id","system_name"],"type":"object"},"endHoldRequest":{"properties":{"note":{"description":"What to remember about it.","maxLength":500,"type":"string"},"revision":{"description":"The revision that was on the screen.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"},"endRequest":{"properties":{"valid_until":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"}},"required":["valid_until"],"type":"object"},"endRequest2":{"properties":{"to_on":{"description":"The last day.","type":"string"}},"required":["to_on"],"type":"object"},"endpointDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"path":{"description":"Value for the path field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"secret_rotated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"serial_field":{"description":"Value for the serial field field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"slug":{"description":"Value for the slug field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"url":{"description":"URL associated with the resource or operation.","type":"string"}},"required":["created_at","id","building_id","name","status","slug","path","serial_field"],"type":"object"},"entryDTO":{"properties":{"actor":{"description":"Value for the actor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"after":{"$ref":"#/components/schemas/JSONValue","description":"Value for the after field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"at":{"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"before":{"$ref":"#/components/schemas/JSONValue","description":"Value for the before field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"correlation":{"description":"Value for the correlation field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"operation":{"description":"Value for the operation field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"reason":{"description":"Human-readable reason for the requested or completed operation.","type":"string"},"target":{"description":"Value for the target field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"target_name":{"description":"What the object is called, when it is known.","type":"string"}},"required":["id","at","actor","operation"],"type":"object"},"entryDTO2":{"properties":{"key":{"description":"Raw non-negative integer key for key_value dictionaries or bit position 0 through 63 for bit_flags dictionaries.","format":"int64","minimum":0,"type":"integer"},"label":{"description":"Localized display label selected for the request language.","type":"string"},"translations":{"additionalProperties":{"type":"string"},"description":"All available labels keyed by language code; und denotes a language-independent label.","type":"object"}},"required":["label","translations","key"],"type":"object"},"erasureDTO":{"properties":{"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the address, the name and the credentials are erased; the request can be withdrawn until then."},"pending":{"description":"Value for the pending field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"requested_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["pending"],"type":"object"},"erasureRequest":{"properties":{"confirm":{"description":"Must be true: the request is understood to erase the account after 30 days.","type":"boolean"}},"required":["confirm"],"type":"object"},"eventDTO":{"properties":{"actor":{"description":"Value for the actor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"at":{"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"detail":{"description":"Value for the detail field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"}},"required":["at","kind"],"type":"object"},"exampleDTO":{"properties":{"body":{"description":"Generated or supplied example payload text.","type":"string"},"content_type":{"description":"Content-Type header expected by the receive endpoint.","enum":["application/json","application/x-www-form-urlencoded"],"type":"string"},"curl":{"description":"Example curl command for posting this payload; placeholders are used for the receiver URL, endpoint slug, and secret.","type":"string"},"missing":{"description":"Metric keys whose required source fields were absent from the payload.","items":{"type":"string"},"type":"array"},"parsed":{"description":"Values the configured parser extracted from the payload.","items":{"$ref":"#/components/schemas/parsedDTO"},"type":"array"},"serial_field":{"description":"Payload field used to identify the device by serial.","type":"string"},"skipped":{"description":"Metric keys omitted from the generated example because their field parameters could not be used.","items":{"type":"string"},"type":"array"}},"required":["content_type","body","serial_field","curl","parsed"],"type":"object"},"exceptionDTO":{"properties":{"day":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","maxLength":128,"type":"string"},"working":{"description":"Value for the working field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["day","working"],"type":"object"},"factDTO":{"properties":{"key":{"description":"What the value is.","enum":["address","type","floor","entrance","room","code","model","protocol","primary_address","secondary_address","line","connection","endpoint","serial","verified_until","installed_on","replace_on","note","attached","more"],"type":"string"},"value":{"description":"The value; for type, protocol and connection a code to be named in the reader's language.","type":"string"}},"required":["key","value"],"type":"object"},"factorResetDueResponse":{"properties":{"due_at":{"description":"When the second factor will be taken off unless the person signs in or cancels.","format":"date-time","type":"string"}},"required":["due_at"],"type":"object"},"fileDTO":{"properties":{"can_remove":{"description":"The caller may remove it now.","type":"boolean"},"category":{"description":"What a file of a device is; omitted elsewhere.","enum":["photo","certificate","spec","manual","other"],"type":"string"},"id":{"description":"File.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"media_type":{"description":"What the file is, as its bytes say.","type":"string"},"name":{"description":"Name.","type":"string"},"size":{"description":"Bytes.","format":"int64","type":"integer"},"step":{"description":"The step of the checklist the file belongs to; omitted for the task as a whole.","type":"string"},"uploaded_at":{"description":"When it was attached.","format":"date-time","type":"string"},"uploader_name":{"description":"Who attached it.","type":"string"}},"required":["uploaded_at","id","name","media_type","uploader_name","size","can_remove"],"type":"object"},"findingDTO":{"properties":{"acknowledge_reason":{"description":"Value for the acknowledge reason field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"acknowledged_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"acknowledged_by":{"description":"Value for the acknowledged by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"detail":{"description":"Value for the detail field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"first_seen_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"fix":{"description":"Value for the fix field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"impact":{"description":"Value for the impact field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"last_seen_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"reopen_count":{"description":"Value for the reopen count field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"resolved_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"rule":{"description":"Value for the rule field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"rule_title":{"description":"Value for the rule title field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"scanner":{"description":"Value for the scanner field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"scanner_description":{"description":"Value for the scanner description field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"scanner_title":{"description":"Value for the scanner title field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"seen_count":{"description":"Value for the seen count field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"severity":{"description":"Severity level assigned to the event or finding; allowed values are defined by the operation.","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"},"subject":{"description":"Value for the subject field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["first_seen_at","last_seen_at","id","scanner","rule","subject","severity","state","title","seen_count","reopen_count"],"type":"object"},"findingSummaryResponse":{"properties":{"open":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Value for the open field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"}},"required":["open"],"type":"object"},"floorNumberingResponse":{"properties":{"ground_is_first":{"description":"Countries whose floor at the ground is numbered 1; in all others it is 0.","items":{"type":"string"},"type":"array"}},"required":["ground_is_first"],"type":"object"},"frameDTO":{"properties":{"ascii":{"description":"Value for the ascii field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"cut":{"description":"Value for the cut field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"dir":{"description":"Value for the dir field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"hex":{"description":"Value for the hex field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"offset_ms":{"description":"Value for the offset ms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"size":{"description":"Value for the size field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"step":{"description":"Value for the step field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["dir","hex","ascii","offset_ms","size","step"],"type":"object"},"grantDTO":{"properties":{"custom_role_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"custom_role_name":{"description":"Value for the custom role name field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"permissions":{"description":"Permission set granted to the role or service identity.","items":{"type":"string"},"type":"array"},"role_key":{"description":"Stable key identifying a built-in or organization-defined role.","type":"string"},"scope":{"description":"Resource scope to which the grant or operation applies.","type":"string"},"scope_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"template":{"description":"Value for the template field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"valid_to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of the validity period in RFC 3339 date-time format."}},"required":["id","role_key","permissions","scope","scope_id"],"type":"object"},"grantIDResponse":{"properties":{"grant_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["grant_id"],"type":"object"},"groupItemDTO":{"properties":{"detail":{"description":"Code saying why it failed or was not sent.","type":"string"},"device_id":{"description":"Device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"device_name":{"description":"Its name; empty when it is no longer in the building.","type":"string"},"finished_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When its result was known."},"job_id":{"description":"The operation; empty while not sent.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"key":{"description":"Channel.","type":"string"},"position":{"description":"Order in the group, from 1.","format":"int64","type":"integer"},"sent_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it was queued."},"state":{"description":"What became of it.","enum":["waiting","sent","confirmed","failed","unknown","not_sent"],"type":"string"},"value":{"description":"What was asked.","type":"string"}},"required":["sent_at","finished_at","device_id","device_name","key","value","state","detail","job_id","position"],"type":"object"},"groupTargetRequest":{"properties":{"device_id":{"description":"Device of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"key":{"description":"Channel that takes commands.","maxLength":64,"minLength":1,"type":"string"},"value":{"description":"A named command or a value the channel accepts.","maxLength":64,"minLength":1,"type":"string"}},"required":["device_id","key","value"],"type":"object"},"healthResponseDTO":{"properties":{"at":{"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"channels":{"description":"Value for the channels field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/channelHealthDTO"},"type":"array"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"}},"required":["status","at","channels"],"type":"object"},"historyDTO":{"properties":{"current_id":{"description":"The record that speaks for the meter today, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"meter":{"$ref":"#/components/schemas/meterDTO","description":"The meter and where it stands."},"records":{"description":"All records, the latest verification first.","items":{"$ref":"#/components/schemas/verificationDTO"},"type":"array"}},"required":["meter","current_id","records"],"type":"object"},"historyResponseDTO":{"properties":{"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"points":{"description":"Value for the points field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/pointDTO4"},"type":"array"},"truncated":{"description":"Value for the truncated field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"words":{"additionalProperties":{"type":"string"},"description":"For a metric whose dictionary names whole values: value -\u003e word, in the language the client asks for in Accept-Language.","type":"object"}},"required":["metric","points","truncated"],"type":"object"},"holdDTO":{"properties":{"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"device_id":{"description":"Device; empty for the whole building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"end_note":{"description":"What was written when it was ended.","type":"string"},"ended_by":{"description":"Who ended it; empty when it ran out by itself or is in force.","type":"string"},"ended_name":{"description":"Their name.","type":"string"},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it ends or ended; null while out of service."},"expected_end":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Out of service only: when it is meant to come back."},"id":{"description":"Hold.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"mode":{"description":"manual holds back automatic commands; service holds back every command.","enum":["manual","service"],"type":"string"},"reason":{"description":"Why.","type":"string"},"renewals":{"description":"How many times manual control was extended.","format":"int64","type":"integer"},"revision":{"description":"Revision, to be sent with a change.","format":"int64","type":"integer"},"started_at":{"description":"Since when it is in force.","format":"date-time","type":"string"},"started_by":{"description":"Who placed it.","type":"string"},"started_name":{"description":"Their name, empty when unknown.","type":"string"}},"required":["started_at","ends_at","expected_end","id","building_id","device_id","mode","reason","started_by","started_name","ended_by","ended_name","end_note","renewals","revision"],"type":"object"},"holdsDTO":{"properties":{"active":{"description":"In force now. Ending one lifts no other.","items":{"$ref":"#/components/schemas/holdDTO"},"type":"array"},"may_change":{"description":"The person may place and end holds here.","type":"boolean"},"past":{"description":"The latest ones that are over.","items":{"$ref":"#/components/schemas/holdDTO"},"type":"array"}},"required":["active","past","may_change"],"type":"object"},"hourDTO":{"properties":{"at":{"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"forecast":{"description":"Value for the forecast field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"humidity_pct":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Percentage value; allowed range and precision, if constrained, are specified in the schema."},"provider":{"description":"Value for the provIDer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"temperature_c":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Value for the temperature c field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"wind_ms":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Value for the wind ms field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["at","temperature_c","humidity_pct","wind_ms","provider","forecast"],"type":"object"},"importResponseDTO":{"properties":{"counts":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Number of rows grouped by outcome.","type":"object"},"hash":{"description":"SHA-256 hash of the exact CSV bytes; apply must submit those same bytes and matching preview hash.","maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","type":"string"},"rows":{"description":"Per-row preview or apply result in source-file order.","items":{"$ref":"#/components/schemas/assetImportRowDTO"},"type":"array"}},"required":["hash","rows","counts"],"type":"object"},"importResponseDTO2":{"properties":{"counts":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Number of rows grouped by outcome value.","type":"object"},"hash":{"description":"SHA-256 hash of the exact CSV bytes; apply must submit the same file and matching preview hash.","maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","type":"string"},"rows":{"description":"Per-row preview or apply outcome in source-file order.","items":{"$ref":"#/components/schemas/importRowDTO"},"type":"array"}},"required":["hash","rows","counts"],"type":"object"},"importResponseDTO3":{"properties":{"counts":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Value for the counts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"hash":{"description":"Cryptographic digest used to identify the exact source payload; algorithm and encoding are defined by the operation.","type":"string"},"rows":{"description":"Value for the rows field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ImportRow"},"type":"array"}},"required":["hash","rows","counts"],"type":"object"},"importResponseDTO4":{"properties":{"counts":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Value for the counts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"hash":{"description":"Cryptographic digest used to identify the exact source payload; algorithm and encoding are defined by the operation.","type":"string"},"rows":{"description":"Value for the rows field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ImportRow2"},"type":"array"}},"required":["hash","rows","counts"],"type":"object"},"importRowDTO":{"properties":{"line":{"description":"One-based CSV source line number, including the header line offset.","format":"int64","minimum":1,"type":"integer"},"name":{"description":"Device name read from the CSV row.","type":"string"},"outcome":{"description":"Row result: new, exists, duplicate, invalid, created, or failed, depending on preview versus apply.","enum":["new","exists","duplicate","invalid","created","failed"],"type":"string"},"reason":{"description":"Human-readable reason for an invalid or failed row; omitted when no explanation is needed.","type":"string"}},"required":["line","name","outcome"],"type":"object"},"inboundDTO":{"properties":{"changed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"changed_by":{"description":"Value for the changed by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"detail":{"description":"Value for the detail field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"instance":{"description":"Value for the instance field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"mode":{"description":"Value for the mode field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"path_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"port":{"description":"Network or device port number; the operation contract defines its allowed range.","format":"int64","type":"integer"},"port_state":{"description":"Value for the port state field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"reported_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["path_id","mode","port"],"type":"object"},"inboxDTO":{"properties":{"body":{"description":"Value for the body field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"read_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["created_at","id","title","body"],"type":"object"},"inboxReadAllDTO":{"properties":{"marked":{"description":"Value for the marked field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["marked"],"type":"object"},"inboxSubscribeRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"event_prefix":{"description":"Value for the event prefix field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"}},"required":["building_id","event_prefix"],"type":"object"},"inboxUnreadDTO":{"properties":{"unread":{"description":"Value for the unread field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["unread"],"type":"object"},"incidentDTO":{"properties":{"acknowledged_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"acknowledged_by":{"description":"Value for the acknowledged by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"cause":{"description":"Value for the cause field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"cleared_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"closed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"closed_by":{"description":"Value for the closed by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"detect_count":{"description":"Value for the detect count field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"follow_up":{"description":"Value for the follow up field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"metric":{"description":"Value for the metric field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"opened_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"reopen_count":{"description":"Value for the reopen count field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"resolution":{"description":"Value for the resolution field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["manual","auto_cleared"],"type":"string"},"resolved_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"resolved_by":{"description":"Value for the resolved by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"severity":{"description":"Severity level assigned to the event or finding; allowed values are defined by the operation.","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"},"substation_id":{"description":"The heating substation a deviation incident is about.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"updated_at":{"description":"Last update timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"}},"required":["opened_at","updated_at","id","building_id","kind","severity","state","title","detect_count","reopen_count","follow_up"],"type":"object"},"incidentDetailDTO":{"properties":{"incident":{"$ref":"#/components/schemas/incidentDTO","description":"Value for the incIDent field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"timeline":{"description":"Value for the timeline field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/eventDTO"},"type":"array"}},"required":["incident","timeline"],"type":"object"},"interfaceDTO":{"properties":{"accent":{"description":"Colour of what is selected (the mark in the menu, the active tab, focus) as #rrggbb, or empty to keep the organisation's colour.","maxLength":16,"type":"string"},"accessibility":{"anyOf":[{"$ref":"#/components/schemas/accessibilityDTO"},{"type":"null"}],"description":"The comfort settings: stronger contrast, no motion, underlined links, larger targets."},"columns":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"description":"The columns a person chose to see in a table, by table id.","type":"object"},"density":{"description":"Size of controls and rows.","enum":["comfortable","compact"],"type":"string"},"glow_bottom":{"description":"Colour of the lower glow as #rrggbb, or empty for none.","maxLength":16,"type":"string"},"glow_left":{"description":"Colour of the glow in the lower-left corner as #rrggbb, or empty for none.","maxLength":16,"type":"string"},"glow_top":{"description":"Colour of the upper glow at the right edge of the screen as #rrggbb, or empty for none.","maxLength":16,"type":"string"},"pinned":{"description":"The menu entries the person pinned to the top of the menu (screen ids), in their order.","items":{"type":"string"},"type":"array"},"scheme":{"description":"Colour scheme: auto follows the device.","enum":["auto","light","dark"],"type":"string"},"shell":{"description":"Menu layout: a side menu, a menu across the top, or a side rail of icons.","enum":["side","top","compact"],"type":"string"},"zoom":{"description":"Size of the whole interface in percent, 80 to 200 (100 is the normal size).","format":"int64","maximum":400,"minimum":0,"type":"integer"}},"required":["scheme","density","shell","glow_top","glow_bottom","glow_left","accent","zoom","columns","pinned"],"type":"object"},"interfaceResponseDTO":{"properties":{"interface":{"anyOf":[{"$ref":"#/components/schemas/interfaceDTO"},{"type":"null"}],"description":"Value for the interface field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"saved":{"description":"Value for the saved field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"updated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Last update timestamp in RFC 3339 date-time format."}},"required":["saved"],"type":"object"},"intervalDTO":{"properties":{"meter_kind":{"description":"Kind of meter.","type":"string"},"note":{"description":"What the single figure leaves out, empty for nothing.","enum":["","gas_class","electric_class","sampling","unsettled"],"type":"string"},"source":{"description":"Public page the figure was taken from.","type":"string"},"years":{"description":"Years a verification usually holds.","format":"int64","type":"integer"}},"required":["meter_kind","note","source","years"],"type":"object"},"intervalsDTO":{"properties":{"checked_on":{"description":"When the figures were looked up. They are a reference, not a legal statement.","type":"string"},"country":{"description":"Country of the building.","type":"string"},"intervals":{"description":"Figures of the country; empty when it was not looked up.","items":{"$ref":"#/components/schemas/intervalDTO"},"type":"array"}},"required":["country","checked_on","intervals"],"type":"object"},"invitationDocumentDTO":{"properties":{"accepted":{"description":"This person accepted this very version already, so it is not asked again.","type":"boolean"},"checksum":{"description":"Value for the checksum field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"main_language":{"description":"The language the terms must exist in: the language of the country.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["platform","organization"],"type":"string"},"texts":{"description":"Value for the texts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/legalTextDTO"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"valid_from":{"description":"Start of the validity period in RFC 3339 date-time format.","format":"date-time","type":"string"},"version":{"description":"A version belongs to the country; its languages share the number.","format":"int64","type":"integer"}},"required":["scope","country","version","language","title","content","checksum","main_language","valid_from","texts","accepted"],"type":"object"},"invitationInfoResponse":{"properties":{"country":{"description":"The organisation's country: its legal documents apply.","type":"string"},"documents":{"description":"Value for the documents field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/invitationDocumentDTO"},"type":"array"},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"expires_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"new_account":{"description":"The invitee has no password yet and chooses one; otherwise they confirm with their own.","type":"boolean"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"org_name":{"description":"Value for the org name field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"role":{"description":"Role assigned to the person or service; allowed values are defined by the operation.","type":"string"}},"required":["org_id","org_name","country","email","name","role","expires_at","new_account","documents"],"type":"object"},"invitationRowDTO":{"properties":{"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"decided_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"display_name":{"description":"Name displayed to users in the interface.","type":"string"},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"expires_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"invited_by":{"description":"Value for the invited by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"new_account":{"description":"Value for the new account field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"role":{"description":"The role offered to an existing account; for a new account see the people list.","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","enum":["pending","accepted","declined","cancelled"],"type":"string"}},"required":["id","person_id","display_name","email","new_account","status","invited_by","created_at","expires_at"],"type":"object"},"inviteRequest":{"properties":{"display_name":{"description":"Name displayed to users in the interface.","maxLength":255,"type":"string"},"email":{"description":"Email address associated with the account or recipient.","maxLength":254,"type":"string"},"role_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-one-of":"template_or_role"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["organization","building"],"type":"string"},"scope_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-when":{"field":"scope","in":["building"]}},"template":{"description":"Value for the template field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string","x-one-of":"template_or_role"},"valid_to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of the validity period in RFC 3339 date-time format."}},"required":["valid_to","display_name","email","template","role_id","scope","scope_id"],"type":"object"},"inviteResponse":{"properties":{"access_granted":{"description":"Value for the access granted field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"email_sent":{"description":"Value for the email sent field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["person_id","email_sent","access_granted"],"type":"object"},"invoiceDTO":{"properties":{"amount":{"description":"Monetary or measured amount; the operation contract defines its meaning and unit.","type":"string"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"cancel_reason":{"description":"Value for the cancel reason field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"cancelled_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"confirmed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"confirmed_by":{"description":"Value for the confirmed by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"contract_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"due_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"issued_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"issued_by":{"description":"Value for the issued by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","type":"string"},"paid_at":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"payment_ref":{"description":"Value for the payment ref field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"}},"required":["issued_at","id","contract_id","building_id","period","amount","currency","status","issued_by"],"type":"object"},"invoiceLineDTO":{"properties":{"amount_minor":{"description":"Value for the amount minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"count":{"description":"Number of records represented by this result or group.","format":"int64","type":"integer"},"item":{"description":"Value for the item field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"}},"required":["kind","amount_minor"],"type":"object"},"issueRequest":{"properties":{"amount":{"description":"Monetary or measured amount; the operation contract defines its meaning and unit.","maxLength":32,"type":"string"},"contract_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","maxLength":3,"type":"string"},"due_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"note":{"description":"Optional operator-entered note associated with the resource or operation.","maxLength":1000,"type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","maxLength":32,"type":"string"}},"required":["due_date","contract_id","period","amount","currency","note"],"type":"object"},"issueSupportRequest":{"properties":{"hours":{"description":"Value for the hours field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":72,"minimum":1,"type":"integer"},"purpose":{"description":"Value for the purpose field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":255,"type":"string"},"staff_email":{"description":"Value for the staff email field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":254,"type":"string"}},"required":["staff_email","purpose","hours"],"type":"object"},"itemDTO":{"properties":{"key":{"description":"Stable machine key used in readings, formulas, channels, and reports; lowercase letters, digits, and underscores, starting with a letter, up to 64 characters.","maxLength":64,"minLength":1,"pattern":"^[a-z][a-z0-9_]{0,63}$","type":"string"},"meta":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Presentation and collection metadata for the metric, such as enabled, history, report, group, limits, or dictionary alias.","type":"object"},"name":{"description":"Optional human-readable metric label; defaults to the stable key, up to 128 characters.","maxLength":128,"type":"string"},"params":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Protocol-driver parameters for reading this metric. The accepted keys and value types depend on protocol and variant; see the device driver reference.","type":"object"},"unit":{"description":"Unit of the metric value, for example °C, kWh, m³, or bar; up to 16 characters.","maxLength":16,"type":"string"}},"required":["key","unit"],"type":"object"},"jobDTO":{"properties":{"attempts":{"description":"Value for the attempts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"completed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Completion timestamp in RFC 3339 date-time format."},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"deadline":{"description":"Value for the deadline field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"max_attempts":{"description":"Value for the max attempts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"not_before":{"description":"Value for the not before field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"outcome":{"description":"Value for the outcome field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"}},"required":["not_before","deadline","created_at","id","kind","state","attempts","max_attempts"],"type":"object"},"jobDTO2":{"properties":{"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"download_url":{"description":"Value for the download URL field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"failure":{"description":"Value for the failure field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"finished_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Completion timestamp in RFC 3339 date-time format."},"from":{"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"metrics":{"description":"Value for the metrics field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"series":{"description":"Value for the series field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"size_bytes":{"description":"Value for the size bytes field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"to":{"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"}},"required":["created_at","from","to","id","device_id","status","metrics","size_bytes","series"],"type":"object"},"keyDTO":{"properties":{"expires_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"}},"required":["id","name","status"],"type":"object"},"keySecretResponse":{"properties":{"key":{"$ref":"#/components/schemas/keyDTO","description":"Stable machine-readable key for this value or configuration entry."},"secret":{"description":"Secret credential material; returned only by operations that explicitly issue a one-time secret.","type":"string"}},"required":["key","secret"],"type":"object"},"labelDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"Six characters printed under the QR code; may be typed by hand.","type":"string"},"facts":{"description":"What may be printed under the code besides the name: what rarely changes, no names of people.","items":{"$ref":"#/components/schemas/factDTO"},"type":"array"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","enum":["building","part","room","system","premises","device","substation","line"],"type":"string"},"name":{"description":"The object's name.","type":"string"},"object_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"place":{"description":"The building's name, or what else tells the object apart.","type":"string"},"url":{"description":"What the QR code carries; empty when the deployment has no public address set.","type":"string"}},"required":["code","url","kind","object_id","building_id","name","facts"],"type":"object"},"labelsDTO":{"properties":{"labels":{"description":"Value for the labels field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/labelDTO"},"type":"array"}},"required":["labels"],"type":"object"},"labelsRequest":{"properties":{"targets":{"description":"From 1 to 200 objects.","items":{"$ref":"#/components/schemas/targetDTO"},"maxItems":200,"minItems":1,"type":"array"}},"required":["targets"],"type":"object"},"languageDTO":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"}},"required":["code","name"],"type":"object"},"layoutDTO":{"properties":{"editable":{"description":"The person may change it.","type":"boolean"},"nodes":{"description":"The points of the pipes: every supplied building and any chambers.","items":{"$ref":"#/components/schemas/nodeDTO"},"type":"array"},"revision":{"description":"Send it back to change the layout; 0: none has been saved, every building is fed from the source.","format":"int64","type":"integer"}},"required":["nodes","revision"],"type":"object"},"layoutRequest":{"properties":{"nodes":{"description":"The whole layout, up to 1000 points.","items":{"$ref":"#/components/schemas/nodeDTO"},"type":"array"},"revision":{"description":"The revision that was read.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"}},"required":["nodes","revision"],"type":"object"},"leakDTO":{"properties":{"at":{"description":"The moment looked at.","format":"date-time","type":"string"},"contradicting":{"description":"Points that read low while something fed through them reads normal: check the sensors or the layout.","items":{"type":"string"},"type":"array"},"judged_buildings":{"description":"Supplied buildings whose pressure could be judged.","format":"int64","type":"integer"},"name":{"description":"Name of the link.","type":"string"},"nodes":{"description":"The pipes the pressures were read along.","items":{"$ref":"#/components/schemas/nodeDTO"},"type":"array"},"pressures":{"description":"The source first, then the supplied buildings.","items":{"$ref":"#/components/schemas/pressureDTO"},"type":"array"},"supplied_buildings":{"description":"Supplied buildings of the link.","format":"int64","type":"integer"},"suspects":{"description":"Stretches to check, the deepest drop first.","items":{"$ref":"#/components/schemas/suspectDTO"},"type":"array"},"threshold":{"description":"The drop that counts, in percent.","format":"int64","type":"integer"},"verdict":{"description":"What the pressures say together. It is a hint where to look, not a hydraulic calculation.","enum":["no_data","normal","source_low","all_low","stretch","inconsistent"],"type":"string"}},"required":["at","name","verdict","threshold","judged_buildings","supplied_buildings","nodes","pressures","suspects","contradicting"],"type":"object"},"leaseDTO":{"properties":{"epoch":{"description":"Value for the epoch field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maximum":18446744073709551615,"minimum":0,"type":"integer"},"expires_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"heartbeat_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"owner":{"description":"Value for the owner field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"}},"required":["expires_at","heartbeat_at","owner","state","epoch"],"type":"object"},"legalRefDTO":{"properties":{"country":{"description":"Country of the terms; a version belongs to the country.","maxLength":2,"type":"string"},"language":{"description":"The language of the text that was read: one of the languages of this version.","maxLength":16,"type":"string"},"org_id":{"description":"The organisation, for its own document.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"scope":{"description":"Whose document: the platform's terms of the country, or the organisation's own.","enum":["platform","organization"],"type":"string"},"version":{"description":"Version that was shown: the one in force.","format":"int64","maximum":1000000,"minimum":1,"type":"integer"}},"required":["scope","country","version","language"],"type":"object"},"legalTextDTO":{"properties":{"checksum":{"description":"SHA-256 of this text (UTF-8, lower-case hex), saved with it when it was published.","type":"string"},"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["language","title","content","checksum"],"type":"object"},"libraryDTO":{"properties":{"columns":{"description":"Value for the columns field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ColumnSpec"},"type":"array"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"names":{"additionalProperties":{"type":"string"},"description":"Value for the names field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"own":{"description":"Value for the own field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"published_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"template_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["published_at","names","id","name","kind","columns","version","own"],"type":"object"},"lifecycleBlockRequest":{"properties":{"reason":{"description":"Human-readable reason for the requested or completed operation.","maxLength":500,"type":"string"}},"required":["reason"],"type":"object"},"lineDTO":{"properties":{"connection":{"$ref":"#/components/schemas/linkDTO2","description":"Value for the connection field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"lease":{"anyOf":[{"$ref":"#/components/schemas/leaseDTO"},{"type":"null"}],"description":"Value for the lease field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"path_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"port":{"anyOf":[{"$ref":"#/components/schemas/inboundDTO"},{"type":"null"}],"description":"Network or device port number; the operation contract defines its allowed range."},"server":{"anyOf":[{"$ref":"#/components/schemas/serverDTO"},{"type":"null"}],"description":"Value for the server field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"}},"required":["path_id","kind","status","connection"],"type":"object"},"linkDTO":{"properties":{"created_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the link was made."},"url":{"description":"The address to print as a QR code; empty when the building takes no requests.","type":"string"}},"required":["url"],"type":"object"},"linkDTO2":{"properties":{"at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"cause":{"description":"Value for the cause field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","type":"string"}},"required":["state"],"type":"object"},"linkLayoutDTO":{"properties":{"network_id":{"description":"The link.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"nodes":{"description":"Its pipes.","items":{"$ref":"#/components/schemas/nodeDTO"},"type":"array"}},"required":["network_id","nodes"],"type":"object"},"listingDTO":{"properties":{"can_add":{"description":"The caller may attach another one now.","type":"boolean"},"files":{"description":"The files, the earliest first.","items":{"$ref":"#/components/schemas/fileDTO"},"type":"array"},"max_bytes":{"description":"The largest file accepted.","format":"int64","type":"integer"}},"required":["files","max_bytes","can_add"],"type":"object"},"localesDTO":{"properties":{"default_language":{"description":"Value for the default language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"default_timezone":{"description":"Value for the default timezone field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"languages":{"description":"Value for the languages field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/languageDTO"},"type":"array"}},"required":["languages","default_language","default_timezone"],"type":"object"},"locationDTO":{"properties":{"city":{"description":"Value for the city field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"timezone":{"description":"IANA time-zone identifier used to interpret local schedules and dates.","type":"string"}},"required":["country","city","timezone"],"type":"object"},"locationDTO2":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"latitude":{"description":"Value for the latitude field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"double","type":"number"},"longitude":{"description":"Value for the longitude field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"double","type":"number"}},"required":["building_id","latitude","longitude","enabled"],"type":"object"},"loginRequest":{"properties":{"audience":{"description":"Set to platform when signing in to the platform administration: an account that is not active platform staff with the second factor on is refused and gets no session. Omit it for the cabinet.","enum":["platform"],"type":"string"},"code":{"description":"Stable code used to identify or classify this resource.","maxLength":64,"type":"string"},"email":{"description":"Email address associated with the account or recipient.","maxLength":254,"type":"string"},"password":{"description":"Secret credential supplied for authentication; never returned by the API.","maxLength":1024,"type":"string"}},"required":["email","password"],"type":"object"},"loginResponse":{"properties":{"expires_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"token":{"description":"Secret or bearer token; treat it as credential material and do not expose it in logs.","type":"string"}},"required":["expires_at","token"],"type":"object"},"meOrg":{"properties":{"default_role_key":{"description":"Value for the default role key field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"deletion_due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"grants":{"description":"Value for the grants field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/grantDTO"},"type":"array"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"permissions":{"description":"Permission set granted to the role or service identity.","items":{"type":"string"},"type":"array"}},"required":["org_id","permissions","grants"],"type":"object"},"meResponse":{"properties":{"display_name":{"description":"Name displayed to users in the interface.","type":"string"},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"email_verified":{"description":"Value for the email verified field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"erasure_due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"orgs":{"description":"Value for the orgs field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/meOrg"},"type":"array"},"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["person_id","orgs","email_verified"],"type":"object"},"membershipDTO":{"properties":{"application_id":{"description":"The request it came from.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"email":{"description":"Address.","type":"string"},"from_on":{"description":"First day.","type":"string"},"id":{"description":"Record.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Person.","type":"string"},"phone":{"description":"Telephone.","type":"string"},"premises_id":{"description":"Premises.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"premises_number":{"description":"Number of the premises.","type":"string"},"relation":{"description":"Relation to the premises.","enum":["owner","tenant","family","other"],"type":"string"},"to_on":{"description":"Last day; empty while it lasts.","type":"string"}},"required":["id","building_id","premises_id","premises_number","application_id","name","email","phone","relation","from_on","to_on"],"type":"object"},"meterDTO":{"properties":{"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"id":{"description":"Device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"meter_kind":{"description":"Kind of meter of the record that speaks for it, empty for none.","type":"string"},"name":{"description":"Device name.","type":"string"},"performed_on":{"description":"When it was verified.","type":"string"},"review":{"description":"Whether that record was reviewed, empty for none.","enum":["","pending","confirmed","rejected"],"type":"string"},"serial":{"description":"Serial number.","type":"string"},"state":{"description":"Where its verification stands today. none: nothing is recorded.","enum":["overdue","failed","due_soon","none","valid"],"type":"string"},"urgency":{"description":"Order of what needs something first.","format":"int64","type":"integer"},"valid_until":{"description":"The last day the verification holds.","type":"string"}},"required":["id","building_id","name","serial","state","meter_kind","performed_on","valid_until","review","urgency"],"type":"object"},"mfaConfirmRequest":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","maxLength":64,"type":"string"},"password":{"description":"Secret credential supplied for authentication; never returned by the API.","maxLength":1024,"type":"string"}},"required":["code"],"type":"object"},"mfaStatusResponse":{"properties":{"totp":{"description":"Value for the totp field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["totp"],"type":"object"},"mineResponseDTO":{"properties":{"effective":{"$ref":"#/components/schemas/effectiveDTO","description":"Value for the effective field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"timezone":{"description":"IANA time-zone identifier used to interpret local schedules and dates.","type":"string"}},"required":["language","timezone","effective"],"type":"object"},"minimumDTO":{"properties":{"min_kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the min kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"valid_from":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"}},"required":["valid_from","min_kwh"],"type":"object"},"modelFileDTO":{"properties":{"category":{"description":"Value for the category field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["photo","certificate","spec","manual","other"],"type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"media_type":{"description":"Value for the media type field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"size":{"description":"Value for the size field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"uploaded_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"}},"required":["uploaded_at","id","name","media_type","category","size"],"type":"object"},"modelNormDTO":{"properties":{"changed_at":{"description":"When it was set.","format":"date-time","type":"string"},"key":{"description":"Metric of the model.","type":"string"},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Inclusive upper healthy bound; null means unbounded above."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Inclusive lower healthy bound; null means unbounded below."},"stale_seconds":{"description":"Maximum age of a good reading in seconds; 0 derives it from the channel interval.","format":"int64","type":"integer"}},"required":["min","max","key","changed_at","stale_seconds"],"type":"object"},"moveEditionRequest":{"properties":{"profile_id":{"description":"The edition to move to.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Device revision shown to the caller.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["profile_id","revision"],"type":"object"},"nodeDTO":{"properties":{"key":{"description":"For a building the system the link supplies there; for a chamber a short key of its own.","maxLength":64,"type":"string"},"kind":{"description":"A supplied building, or a heat chamber or branch of the pipes.","enum":["building","chamber"],"type":"string"},"lat":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Latitude of a chamber, when marked."},"lng":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"Longitude of a chamber, when marked."},"name":{"description":"Name of a chamber.","maxLength":255,"type":"string"},"parent":{"description":"The point it is fed through; omitted: fed from the source.","maxLength":64,"type":"string"}},"required":["key","kind"],"type":"object"},"normDTO":{"properties":{"max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Inclusive upper healthy bound as an exact decimal string; null means unbounded above."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Inclusive lower healthy bound as an exact decimal string; null means unbounded below."},"source":{"description":"Where the effective norm came from: profile defaults or an operator override.","enum":["profile","organization","operator"],"type":"string"},"stale_seconds":{"anyOf":[{"const":0,"type":"integer"},{"maximum":2592000,"minimum":60,"type":"integer"}],"description":"Maximum age in seconds before the latest reading is considered stale; 0 means derive from the channel interval."}},"required":["min","max"],"type":"object"},"normRequestDTO":{"properties":{"max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional inclusive upper healthy bound as an exact decimal string."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional inclusive lower healthy bound as an exact decimal string."},"stale_seconds":{"anyOf":[{"const":0,"type":"integer"},{"maximum":2592000,"minimum":60,"type":"integer"}],"description":"Maximum age in seconds before a reading is stale; 0 derives the threshold from the channel interval, otherwise 60 to 2592000 seconds."}},"type":"object"},"noteRequest":{"properties":{"text":{"description":"Value for the text field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":2000,"type":"string"}},"required":["text"],"type":"object"},"noticeDTO":{"properties":{"body":{"description":"Value for the body field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"created_by":{"description":"Value for the created by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"failed":{"description":"Value for the failed field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"incident_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"recipients":{"description":"Value for the recipients field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"sent":{"description":"Value for the sent field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["created_at","id","title","body","created_by","recipients","sent","failed"],"type":"object"},"noticeRequest":{"properties":{"body":{"description":"Value for the body field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"incident_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"premises_ids":{"description":"List of identifiers for the referenced resources; platform resource IDs use ULID format unless stated otherwise.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","maxLength":160,"type":"string"}},"required":["incident_id","title","body","premises_ids"],"type":"object"},"objectContactDTO":{"properties":{"availability":{"description":"When they can be reached.","type":"string"},"consent":{"description":"What the person at the current address said: nothing is sent unless confirmed.","enum":["none","requested","confirmed","declined"],"type":"string"},"duty":{"description":"What the contact is responsible for.","enum":["building_manager","on_duty","technician","installer","emergency_service","access_keeper","owner_representative","other_duty"],"type":"string"},"email":{"description":"E-mail; empty when none.","type":"string"},"id":{"description":"Contact.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"lang":{"description":"Language of the messages, empty for the organisation's.","type":"string"},"name":{"description":"Name.","type":"string"},"note":{"description":"Note.","type":"string"},"notify_level":{"description":"Which incidents the contact is to be told of.","enum":["none","critical","all"],"type":"string"},"part_id":{"description":"Part of the building, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"phone":{"description":"Phone; empty when none.","type":"string"},"priority":{"description":"Place in the calling order.","format":"int64","type":"integer"},"revision":{"description":"Revision.","format":"int64","type":"integer"},"state":{"description":"Whether it holds today on the building's calendar.","enum":["current","upcoming","ended"],"type":"string"},"system_id":{"description":"System, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"technical_room_id":{"description":"Technical room, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"updated_at":{"description":"Last change.","format":"date-time","type":"string"},"valid_from":{"description":"First day, empty for no bound.","type":"string"},"valid_to":{"description":"Last day, empty for no bound.","type":"string"}},"required":["updated_at","id","duty","name","phone","email","availability","note","part_id","system_id","technical_room_id","valid_from","valid_to","state","priority","notify_level","lang","consent","revision"],"type":"object"},"objectContactRequest":{"properties":{"availability":{"description":"When they can be reached.","maxLength":128,"type":"string"},"duty":{"description":"What the contact is responsible for.","enum":["building_manager","on_duty","technician","installer","emergency_service","access_keeper","owner_representative","other_duty"],"type":"string"},"email":{"description":"E-mail address; a phone or an e-mail is required.","maxLength":255,"type":"string"},"lang":{"description":"Language of the messages; the organisation's when omitted.","enum":["uk","en","cs","de","pl"],"type":"string"},"name":{"description":"Who: a person or a service.","maxLength":128,"minLength":1,"type":"string"},"note":{"description":"A short note. Do not keep door codes or passwords here.","maxLength":500,"type":"string"},"notify_level":{"description":"Which incidents to tell this contact of, once the person at the address agrees; none when omitted.","enum":["none","critical","all"],"type":"string"},"part_id":{"description":"A part of the building; at most one of part, system and room. None: the whole building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"phone":{"description":"Phone number; a phone or an e-mail is required.","maxLength":32,"type":"string"},"priority":{"description":"Place in the calling order, 1 first; 1 when omitted.","format":"int64","maximum":99,"minimum":1,"type":"integer"},"system_id":{"description":"An engineering system of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"technical_room_id":{"description":"A technical room of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"valid_from":{"description":"First day, YYYY-MM-DD; none: no bound.","type":"string"},"valid_to":{"description":"Last day, YYYY-MM-DD; none: no bound.","type":"string"}},"required":["duty","name"],"type":"object"},"objectContactUpdateRequest":{"properties":{"availability":{"description":"When they can be reached.","maxLength":128,"type":"string"},"duty":{"description":"What the contact is responsible for.","enum":["building_manager","on_duty","technician","installer","emergency_service","access_keeper","owner_representative","other_duty"],"type":"string"},"email":{"description":"E-mail address; a phone or an e-mail is required.","maxLength":255,"type":"string"},"lang":{"description":"Language of the messages; the organisation's when omitted.","enum":["uk","en","cs","de","pl"],"type":"string"},"name":{"description":"Who: a person or a service.","maxLength":128,"minLength":1,"type":"string"},"note":{"description":"A short note. Do not keep door codes or passwords here.","maxLength":500,"type":"string"},"notify_level":{"description":"Which incidents to tell this contact of, once the person at the address agrees; none when omitted.","enum":["none","critical","all"],"type":"string"},"part_id":{"description":"A part of the building; at most one of part, system and room. None: the whole building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"phone":{"description":"Phone number; a phone or an e-mail is required.","maxLength":32,"type":"string"},"priority":{"description":"Place in the calling order, 1 first; 1 when omitted.","format":"int64","maximum":99,"minimum":1,"type":"integer"},"revision":{"description":"The revision the form was loaded with.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"system_id":{"description":"An engineering system of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"technical_room_id":{"description":"A technical room of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"valid_from":{"description":"First day, YYYY-MM-DD; none: no bound.","type":"string"},"valid_to":{"description":"Last day, YYYY-MM-DD; none: no bound.","type":"string"}},"required":["duty","name","revision"],"type":"object"},"occurrenceDTO":{"properties":{"created_at":{"description":"When the task was made.","format":"date-time","type":"string"},"due_on":{"description":"The date.","type":"string"},"task_id":{"description":"Its task.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["created_at","due_on","task_id"],"type":"object"},"onCallResponseDTO":{"properties":{"at":{"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"fallback":{"description":"Value for the fallback field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"items":{"description":"Value for the items field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/shiftDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Value for the page field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["items","page","at","fallback"],"type":"object"},"openRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"severity":{"description":"Severity level assigned to the event or finding; allowed values are defined by the operation.","maxLength":16,"type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","maxLength":255,"type":"string"}},"required":["building_id","severity","title"],"type":"object"},"operationDTO":{"properties":{"job":{"$ref":"#/components/schemas/jobDTO","description":"Value for the job field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"last_attempt":{"anyOf":[{"$ref":"#/components/schemas/attemptDTO"},{"type":"null"}],"description":"Value for the last attempt field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["job"],"type":"object"},"optionDTO":{"properties":{"deviation":{"description":"Choosing it is a finding that has to be explained.","type":"boolean"},"label":{"description":"The answer.","maxLength":60,"minLength":1,"type":"string"}},"required":["label"],"type":"object"},"orgDTO":{"properties":{"city":{"description":"Value for the city field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"timezone":{"description":"IANA time-zone identifier used to interpret local schedules and dates.","type":"string"}},"required":["language","timezone","country","city"],"type":"object"},"orgDeletionDTO":{"properties":{"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When all the data of the organisation is deleted for good; the request can be withdrawn until then."},"pending":{"description":"Value for the pending field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"reason":{"description":"Who asked: owner, or erasure when the only member asked to be forgotten.","enum":["owner","erasure"],"type":"string"},"requested_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"status":{"description":"active, pending_deletion (read-only), deleting or deleted.","enum":["active","pending_deletion","deleting","deleted"],"type":"string"}},"required":["status","pending"],"type":"object"},"orgDeletionRequest":{"properties":{"confirm_name":{"description":"The exact name of the organisation.","maxLength":255,"type":"string"}},"required":["confirm_name"],"type":"object"},"orgFeatureDTO":{"properties":{"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"feature":{"description":"Value for the feature field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["feature","enabled"],"type":"object"},"orgPackageDTO":{"properties":{"billing_months":{"description":"Value for the billing months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"features":{"description":"Value for the features field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"history_months":{"description":"Value for the history months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"max_devices":{"description":"Value for the max devices field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"min_interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","type":"integer"},"price_monthly_minor":{"description":"Value for the price monthly minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"starts_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"state":{"description":"scheduled: starts later.","enum":["current","scheduled","past"],"type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"trial_ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the unbilled trial under this package ends."},"unscheduled_reads_per_day":{"description":"Value for the unscheduled reads per day field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["starts_at","id","title","state","features","max_devices","history_months","min_interval_seconds","unscheduled_reads_per_day","billing_months","price_monthly_minor"],"type":"object"},"orgStepUpPasswordRequest":{"properties":{"org_id":{"description":"The organisation whose confirmation policy is being followed.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"password":{"description":"The account password, when the organisation's policy permits password confirmation.","maxLength":1024,"type":"string"}},"required":["org_id","password"],"type":"object"},"orgStepUpTOTPRequest":{"properties":{"code":{"description":"A current code from the account's confirmed authenticator app.","maxLength":64,"type":"string"},"org_id":{"description":"The organisation whose confirmation policy is being followed.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["org_id","code"],"type":"object"},"overviewDTO":{"properties":{"columns":{"description":"Channel keys: e1 energy, v1 volume, m1 mass.","items":{"type":"string"},"type":"array"},"from":{"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"previous_from":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"rows":{"description":"Value for the rows field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/overviewRowDTO"},"type":"array"},"to":{"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"without":{"description":"Chosen devices that have none of the counters.","format":"int64","type":"integer"}},"required":["from","to","previous_from","columns","rows","without"],"type":"object"},"overviewRowDTO":{"properties":{"amounts":{"description":"One for each column.","items":{"$ref":"#/components/schemas/amountDTO"},"type":"array"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"profile_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["device_id","name","building_id","profile_id","amounts"],"type":"object"},"ownActivityDTO":{"properties":{"at":{"description":"When the person performed the action.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"operation":{"description":"The recorded action.","type":"string"}},"required":["id","at","operation"],"type":"object"},"paramDTO":{"properties":{"default":{"description":"Value for the default field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"key":{"description":"Stable machine-readable key for this value or configuration entry.","type":"string"},"max":{"description":"Value for the max field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"min":{"description":"Value for the min field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","enum":["minutes","hours","days","count","factor"],"type":"string"},"value":{"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract.","format":"int64","type":"integer"}},"required":["key","title","unit","value","default","min","max"],"type":"object"},"parameterDTO":{"properties":{"choices":{"description":"The only values to choose from; empty when a value is typed.","items":{"$ref":"#/components/schemas/choiceDTO"},"type":"array"},"current":{"description":"What the channel was last read as; omitted when never read.","type":"string"},"current_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the current value was read."},"device_max":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"The highest value the device model takes."},"device_min":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"The lowest value the device model takes."},"device_step":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"The model takes values in steps of this size from the lowest."},"key":{"description":"Channel.","type":"string"},"name":{"description":"Name.","type":"string"},"own_rule":{"description":"The rule was set on this device, not taken from its model.","type":"boolean"},"rule":{"$ref":"#/components/schemas/writeRuleDTO","description":"What may be written."},"unit":{"description":"Unit.","type":"string"}},"required":["key","name","unit","rule","own_rule","choices"],"type":"object"},"parametersDTO":{"properties":{"parameters":{"description":"The channels that can be written on this device.","items":{"$ref":"#/components/schemas/parameterDTO"},"type":"array"},"pending":{"description":"Changes of critical parameters waiting for a second person.","items":{"$ref":"#/components/schemas/pendingWriteDTO"},"type":"array"}},"required":["parameters","pending"],"type":"object"},"parsedDTO":{"properties":{"key":{"description":"Metric key that was parsed.","type":"string"},"note":{"description":"Additional parser detail for this item.","type":"string"},"quality":{"description":"Parsing quality assigned to the result.","enum":["good","invalid","estimated"],"type":"string"},"text":{"description":"Parsed text value; omitted for numeric results.","type":"string"},"unit":{"description":"Metric unit from the profile.","type":"string"},"value":{"description":"Exact decimal representation of the parsed numeric value; omitted for text results.","type":"string"}},"required":["key","quality"],"type":"object"},"partyDTO":{"properties":{"address":{"description":"Network or physical address; the operation contract defines the address format.","type":"string"},"bank_account":{"description":"Value for the bank account field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"bank_name":{"description":"Value for the bank name field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"bank_swift":{"description":"Value for the bank swift field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"payment_note":{"description":"Value for the payment note field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"registration":{"description":"Value for the registration field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"tax_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"type":"object"},"passkeyDTO":{"properties":{"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"last_used_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"name":{"description":"Human-readable name or label of this resource.","type":"string"}},"required":["created_at","id","name"],"type":"object"},"passkeyRegistrationRequest":{"properties":{"attestationObject":{"description":"Value for the attestationObject field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"clientDataJSON":{"description":"Value for the clientDataJSON field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":64,"type":"string"}},"required":["id","clientDataJSON","attestationObject","name"],"type":"object"},"passwordRequest":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","maxLength":64,"type":"string"},"password":{"description":"Secret credential supplied for authentication; never returned by the API.","maxLength":1024,"type":"string"}},"required":["password"],"type":"object"},"patchDTO":{"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the city field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Country code; the operation contract specifies the expected country-code format."},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IANA time-zone identifier used to interpret local schedules and dates."}},"required":["language","timezone","country","city"],"type":"object"},"pathDTO":{"properties":{"building_id":{"description":"Building that owns this physical communication path.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"endpoint":{"description":"TCP host:port or inbound listen address, depending on kind. Secrets and HTTP push slugs use separate APIs.","maxLength":255,"type":"string"},"id":{"description":"Immutable communication path identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Transport type. Device paths currently support tcp and inbound; serial is reserved until a serial poller transport is implemented.","type":"string"},"name":{"description":"Operator-facing name of the physical line or gateway, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"revision":{"description":"Monotonically increasing path revision used for optimistic concurrency on updates.","format":"int64","minimum":1,"type":"integer"},"server":{"description":"Poller instance pinned to this line; empty means any healthy poller instance may claim it.","type":"string"},"status":{"description":"Owner-controlled lifecycle state: enabled, blocked, or retired.","enum":["enabled","blocked","retired"],"type":"string"}},"required":["id","building_id","name","kind","endpoint","status","server","revision"],"type":"object"},"pathDTOVariant":{"properties":{"building_id":{"description":"Building that owns this physical communication path.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"endpoint":{"description":"TCP host:port or inbound listen address, depending on kind. Secrets and HTTP push slugs use separate APIs.","maxLength":255,"type":"string"},"id":{"description":"Immutable communication path identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Transport type. Device paths currently support tcp and inbound; serial is reserved until a serial poller transport is implemented.","enum":["inbound","tcp"],"type":"string"},"name":{"description":"Operator-facing name of the physical line or gateway, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"revision":{"description":"Monotonically increasing path revision used for optimistic concurrency on updates.","format":"int64","minimum":1,"type":"integer"},"server":{"description":"Poller instance pinned to this line; empty means any healthy poller instance may claim it.","type":"string"},"status":{"description":"Owner-controlled lifecycle state: enabled, blocked, or retired.","enum":["enabled","blocked","retired"],"type":"string"}},"required":["id","building_id","name","kind","endpoint","status","server","revision"],"type":"object"},"pathLegacyAESKeyRequest":{"properties":{"aes_key":{"description":"Legacy AES key as 16 text bytes or 32 hexadecimal characters. Never returned.","maxLength":32,"type":"string"}},"required":["aes_key"],"type":"object"},"pathLegacyAESResponse":{"properties":{"can_store_key":{"description":"Value for the can store key field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"enabled":{"description":"Decrypt replies in the legacy Modbus RTU AES format.","type":"boolean"},"key_ref":{"description":"Reference to the key in the poller secret store. Required when enabled.","maxLength":128,"type":"string"}},"required":["enabled","key_ref","can_store_key"],"type":"object"},"pathLegacyAESUpdate":{"properties":{"enabled":{"description":"Decrypt replies in the legacy Modbus RTU AES format.","type":"boolean"},"key_ref":{"description":"Optional reference to select when enabling AES. Omit to use the key already configured on the line.","maxLength":128,"type":"string"}},"required":["enabled"],"type":"object"},"pathRecordingResponse":{"properties":{"path_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"recording":{"description":"Value for the recording field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"recording_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["path_id","recording","recording_until"],"type":"object"},"payerDTO":{"properties":{"address":{"description":"Network or physical address; the operation contract defines the address format.","maxLength":255,"type":"string"},"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive timestamp in RFC 3339 date-time format; null or omission means the resource is not archived."},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"email":{"description":"Email address associated with the account or recipient.","maxLength":255,"type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":255,"minLength":1,"type":"string"},"tax_number":{"description":"Value for the tax number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"}},"required":["created_at","name"],"type":"object"},"paymentRecordDTO":{"properties":{"amount_minor":{"description":"Value for the amount minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"decided_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"decided_by":{"description":"Platform view only.","type":"string"},"decision_note":{"description":"Value for the decision note field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","type":"string"},"paid_on":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"reference":{"description":"Value for the reference field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"reported_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"reported_by":{"description":"Platform view only.","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","enum":["reported","confirmed","rejected","reversed","superseded"],"type":"string"}},"required":["id","amount_minor","currency","status","reported_at"],"type":"object"},"peerDTO":{"properties":{"accepted":{"description":"Value for the accepted field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"first_seen":{"description":"Value for the first seen field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"ip":{"description":"Value for the ip field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"last_seen":{"description":"Value for the last seen field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"pinned":{"description":"Value for the pinned field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"rejected":{"description":"Value for the rejected field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["first_seen","last_seen","ip","accepted","rejected","pinned"],"type":"object"},"peerSummaryResponse":{"properties":{"allow":{"description":"Value for the allow field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"filtering":{"description":"Value for the filtering field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"keep_last":{"description":"Value for the keep last field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"peers":{"description":"Value for the peers field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/peerDTO"},"type":"array"},"port":{"description":"Network or device port number; the operation contract defines its allowed range.","format":"int64","type":"integer"},"suggest_pin":{"description":"Value for the suggest pin field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"total_connections":{"description":"Value for the total connections field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["port","allow","filtering","peers","total_connections","suggest_pin","keep_last"],"type":"object"},"pendingLegalDocumentDTO":{"properties":{"accepted":{"description":"This person accepted this very version already, so it is not asked again.","type":"boolean"},"checksum":{"description":"Value for the checksum field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"main_language":{"description":"The language the terms must exist in: the language of the country.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"orgs":{"description":"The organisations of the person this document applies to (their country's terms, or the organisation's own).","items":{"type":"string"},"type":"array"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["platform","organization"],"type":"string"},"texts":{"description":"Value for the texts field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/legalTextDTO"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"valid_from":{"description":"Start of the validity period in RFC 3339 date-time format.","format":"date-time","type":"string"},"version":{"description":"A version belongs to the country; its languages share the number.","format":"int64","type":"integer"}},"required":["scope","country","version","language","title","content","checksum","main_language","valid_from","texts","accepted","orgs"],"type":"object"},"pendingLegalResponse":{"properties":{"documents":{"description":"The legal documents in force that the person has not accepted in their current version; empty when there is nothing to accept.","items":{"$ref":"#/components/schemas/pendingLegalDocumentDTO"},"type":"array"}},"required":["documents"],"type":"object"},"pendingWriteDTO":{"properties":{"expires_at":{"description":"After this the request is of no use.","format":"date-time","type":"string"},"id":{"description":"Request.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"key":{"description":"Channel.","type":"string"},"reason":{"description":"Why.","type":"string"},"requested_at":{"description":"When it was asked.","format":"date-time","type":"string"},"requested_by_me":{"description":"yes when the caller asked for it (they cannot approve it).","enum":["yes","no"],"type":"string"},"value":{"description":"What is asked.","type":"string"}},"required":["requested_at","expires_at","id","key","value","reason","requested_by_me"],"type":"object"},"periodDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"closed_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"closed_by":{"description":"Value for the closed by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"}},"required":["closed_at","building_id","period","closed_by"],"type":"object"},"personDTO":{"properties":{"account_status":{"description":"Value for the account status field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"display_name":{"description":"Name displayed to users in the interface.","type":"string"},"email":{"description":"Email address associated with the account or recipient.","type":"string"},"email_verified":{"description":"Value for the email verified field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"grants":{"description":"Value for the grants field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/grantDTO"},"type":"array"},"invitation_status":{"description":"Where the person's latest invitation to the organisation stands.","enum":["pending","accepted","declined","cancelled"],"type":"string"},"last_login_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the person last signed in; absent for one who never has."},"legal_accepted_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the person last accepted a legal document."},"legal_status":{"description":"accepted: every document in force, in its current version; outdated: an earlier version of a document that has a newer one; none: not accepted.","enum":["accepted","outdated","none"],"type":"string"},"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"}},"required":["person_id","display_name","email","status","account_status","grants","email_verified","legal_status"],"type":"object"},"personIDResponse":{"properties":{"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["person_id"],"type":"object"},"pipelineDTO":{"properties":{"deadband":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the deadband field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"heartbeat_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":604800,"minimum":0,"type":"integer","x-not-before":"min_interval_seconds"},"key":{"description":"Stable machine-readable key for this value or configuration entry.","maxLength":64,"type":"string"},"min_interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":86400,"minimum":0,"type":"integer"},"on_invalid":{"description":"Value for the on invalID field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["keep","drop"],"type":"string"}},"required":["key","on_invalid","min_interval_seconds","heartbeat_seconds"],"type":"object"},"placeDTO":{"properties":{"building":{"description":"The building in words.","type":"string"},"organisation":{"description":"Who receives the request.","type":"string"}},"required":["organisation","building"],"type":"object"},"planCreateRequest":{"properties":{"anchor":{"description":"What the next date is counted from.","enum":["calendar","completion"],"type":"string"},"assignee_id":{"description":"Person to give the tasks to.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"details":{"description":"Instructions.","maxLength":4000,"type":"string"},"device_id":{"description":"A device of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-within":"building_id"},"every":{"description":"How many units between dates.","format":"int64","maximum":120,"minimum":1,"type":"integer"},"first_due":{"description":"The first date, not earlier than a year ago.","type":"string"},"lead_days":{"description":"How many days before its date a task is made.","format":"int64","maximum":365,"minimum":0,"type":"integer"},"priority":{"description":"Priority; normal when omitted.","enum":["normal","high","urgent"],"type":"string"},"task_template_id":{"description":"A kind of work whose checklist each task starts with.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"title":{"description":"What is to be done.","maxLength":160,"minLength":1,"type":"string"},"unit":{"description":"Unit of the period.","enum":["day","week","month","year"],"type":"string"}},"required":["building_id","title","every","unit","anchor","first_due"],"type":"object"},"planDTO":{"properties":{"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"dial_offset_seconds":{"anyOf":[{"format":"int64","maximum":86399,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema."},"dial_window_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":900,"minimum":5,"type":"integer","x-requires":"dial_offset_seconds"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":86400,"minimum":10,"type":"integer"},"next_due_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"}},"required":["next_due_at","device_id","interval_seconds","enabled"],"type":"object"},"planDTO2":{"properties":{"anchor":{"description":"What the next date is counted from: fixed dates, or the day the last result was accepted.","enum":["calendar","completion"],"type":"string"},"assignee_id":{"description":"Person the tasks are given to, empty for nobody.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"assignee_name":{"description":"Their name.","type":"string"},"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Created.","format":"date-time","type":"string"},"details":{"description":"Instructions.","type":"string"},"device_id":{"description":"Device, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"every":{"description":"How many units between dates.","format":"int64","type":"integer"},"id":{"description":"Recurring work.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"lead_days":{"description":"How many days before its date a task is made.","format":"int64","type":"integer"},"next_due":{"description":"The next date that has no task yet; empty while waiting for the result of a task.","type":"string"},"priority":{"description":"Priority of its tasks.","enum":["normal","high","urgent"],"type":"string"},"revision":{"description":"Revision, to be sent with a change.","format":"int64","type":"integer"},"status":{"description":"Status.","enum":["active","paused","retired"],"type":"string"},"task_template_id":{"description":"The kind of work whose checklist the tasks start with, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"title":{"description":"What is to be done.","type":"string"},"unit":{"description":"Unit of the period.","enum":["day","week","month","year"],"type":"string"},"updated_at":{"description":"Last change.","format":"date-time","type":"string"},"waiting_task_id":{"description":"The open task whose result the next date waits for.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["created_at","updated_at","id","building_id","device_id","title","details","priority","assignee_id","assignee_name","unit","anchor","status","next_due","waiting_task_id","every","lead_days","task_template_id","revision"],"type":"object"},"planDetailDTO":{"properties":{"dates":{"description":"Dates that have had their task, the latest first.","items":{"$ref":"#/components/schemas/occurrenceDTO"},"type":"array"},"plan":{"$ref":"#/components/schemas/planDTO2","description":"The recurring work."}},"required":["plan","dates"],"type":"object"},"planUpdateRequest":{"properties":{"anchor":{"description":"What the next date is counted from.","enum":["calendar","completion"],"type":"string"},"assignee_id":{"description":"Person to give the tasks to.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"details":{"description":"Instructions.","maxLength":4000,"type":"string"},"device_id":{"description":"A device of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"every":{"description":"How many units between dates.","format":"int64","maximum":120,"minimum":1,"type":"integer"},"lead_days":{"description":"How many days before its date a task is made.","format":"int64","maximum":365,"minimum":0,"type":"integer"},"next_due":{"description":"A new next date; the calendar starts again from it. Omitted keeps the current one.","type":"string"},"priority":{"description":"Priority.","enum":["normal","high","urgent"],"type":"string"},"revision":{"description":"The revision the form was loaded with.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"status":{"description":"Status. A retired plan stays for its history and cannot be changed again.","enum":["active","paused","retired"],"type":"string"},"task_template_id":{"description":"A kind of work whose checklist each task starts with.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"title":{"description":"What is to be done.","maxLength":160,"minLength":1,"type":"string"},"unit":{"description":"Unit of the period.","enum":["day","week","month","year"],"type":"string"}},"required":["title","priority","every","unit","anchor","status","revision"],"type":"object"},"pointDTO":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive timestamp in RFC 3339 date-time format; null or omission means the resource is not archived."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":255,"type":"string"},"premises_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"resource":{"description":"Value for the resource field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"tariff_code":{"description":"Value for the tariff code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"terms":{"description":"Value for the terms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Term"},"type":"array"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","maxLength":16,"type":"string"},"zones":{"description":"Value for the zones field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/PointZone"},"type":"array"}},"required":["resource","name","unit","terms"],"type":"object"},"pointDTO2":{"properties":{"missing":{"description":"Value for the missing field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"start":{"description":"Value for the start field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract."}},"required":["start","value"],"type":"object"},"pointDTO3":{"properties":{"x":{"description":"Input coordinate, encoded as an exact decimal string.","type":"string"},"y":{"description":"Converted output coordinate, encoded as an exact decimal string.","type":"string"}},"required":["x","y"],"type":"object"},"pointDTO4":{"properties":{"meaning":{"anyOf":[{"$ref":"#/components/schemas/Resolved"},{"type":"null"}],"description":"Value for the meaning field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"measured_at":{"description":"Timestamp of the measurement in RFC 3339 date-time format.","format":"date-time","type":"string"},"quality":{"description":"Value for the quality field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"received_at":{"description":"Timestamp when the server received the data in RFC 3339 date-time format.","format":"date-time","type":"string"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The value of a channel that says something in words (a serial number, a version, a mode); value is then null."},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract."}},"required":["measured_at","received_at","value","quality"],"type":"object"},"pointDTO5":{"properties":{"device_id":{"description":"Device; omitted when the person is not shown it.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"device_name":{"description":"Name of the device.","type":"string"},"hidden":{"description":"Something measures this, on a device the person is not shown.","type":"boolean"},"id":{"description":"Measuring point.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"metric":{"description":"Channel of the device.","type":"string"},"metric_name":{"description":"Name of the channel.","type":"string"},"quantity":{"description":"A meter's running total or a pressure.","enum":["total","pressure"],"type":"string"},"system_id":{"description":"The end of the link it measures.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"unit":{"description":"Unit of the channel.","maxLength":16,"type":"string"},"valid_from":{"description":"From when it measures.","format":"date-time","type":"string"}},"required":["valid_from","id","system_id","quantity"],"type":"object"},"policyDTO":{"properties":{"min_severity":{"description":"Value for the min severity field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["info","warning","critical"],"type":"string"},"on_opened":{"description":"Value for the on opened field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"on_resolved":{"description":"Value for the on resolved field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["min_severity","on_opened","on_resolved"],"type":"object"},"policyDTO2":{"properties":{"hour_days":{"description":"Value for the hour days field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":3650,"minimum":0,"type":"integer"},"raw_days":{"description":"Value for the raw days field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":3650,"minimum":0,"type":"integer"},"thin_after_days":{"description":"Value for the thin after days field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":3650,"minimum":0,"type":"integer","x-when":{"field":"thin_mode","in":["last_per_day"]}},"thin_mode":{"description":"Value for the thin mode field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"thinned_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["thin_mode","raw_days","thin_after_days","hour_days"],"type":"object"},"premisesDTO":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive timestamp in RFC 3339 date-time format; null or omission means the resource is not archived."},"floor":{"description":"Value for the floor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"heated_m2":{"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema.","maxLength":32,"type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"meter_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"meter_virtual_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"min_kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the min kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"min_valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"part_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Resource revision used to detect stale updates or concurrent changes.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"scope":{"description":"Resource scope to which the grant or operation applies.","maxLength":32,"type":"string"},"tariff_code":{"description":"Value for the tariff code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"}},"required":["revision","number","kind","heated_m2"],"type":"object"},"premisesDTOVariant":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive timestamp in RFC 3339 date-time format; null or omission means the resource is not archived."},"floor":{"description":"Value for the floor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"heated_m2":{"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema.","maxLength":32,"type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","enum":["apartment","non_residential","commercial","common","basement","roof","boiler_room"],"type":"string"},"meter_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"meter_virtual_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"min_kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the min kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"min_valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"part_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Resource revision used to detect stale updates or concurrent changes.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"scope":{"description":"Resource scope to which the grant or operation applies.","enum":["own","house"],"maxLength":32,"type":"string"},"tariff_code":{"description":"Value for the tariff code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"}},"required":["revision","number","kind","heated_m2"],"type":"object"},"premisesDTOVariant2":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive timestamp in RFC 3339 date-time format; null or omission means the resource is not archived."},"floor":{"description":"Value for the floor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"heated_m2":{"description":"Area expressed in square metres; allowed range, if constrained, is specified in the schema.","maxLength":32,"type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","enum":["apartment","non_residential","commercial","common","basement","roof","boiler_room"],"type":"string"},"meter_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"meter_virtual_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"min_kwh":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value for the min kWh field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"min_valid_from":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"part_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Resource revision used to detect stale updates or concurrent changes.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"scope":{"description":"Resource scope to which the grant or operation applies.","maxLength":32,"type":"string"},"tariff_code":{"description":"Value for the tariff code field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"}},"required":["revision","number","kind","heated_m2"],"type":"object"},"pressureDTO":{"properties":{"current":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pressure at the moment looked at."},"drop_percent":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How far below the usual, in percent; negative: above it."},"key":{"description":"Point of the layout; omitted: the source.","type":"string"},"measured_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The hour of the reading used."},"state":{"description":"What the sensor says.","enum":["low","normal","unsure","no_sensor","no_reading","no_baseline","hidden"],"type":"string"},"unit":{"description":"Unit of the sensor.","type":"string"},"usual":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What this sensor usually reads: the median hour of the week before."}},"required":["state"],"type":"object"},"priceLineDTO":{"properties":{"amount_minor":{"description":"The effect on the monthly price in the currency's minor units; negative when it lowers the price.","format":"int64","type":"integer"},"count":{"description":"The devices more (or fewer, negative) than the package, for a devices line.","format":"int64","type":"integer"},"item":{"description":"The feature, for a feature line.","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","enum":["base","platform_fee","feature_added","feature_removed","feature_scaled","devices","limit","individual","discount","surcharge"],"type":"string"}},"required":["kind","amount_minor"],"type":"object"},"probeRequest":{"properties":{"protocol":{"description":"Communication protocol identifier; the schema lists supported values when finite.","maxLength":32,"type":"string"},"variant":{"description":"Protocol-specific variant or operating mode; allowed values depend on the selected protocol.","maxLength":32,"type":"string"}},"required":["protocol","variant"],"type":"object"},"profileDTO":{"properties":{"archives":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Protocol-driver archive or bulk-read configuration keyed by archive name.","type":"object"},"derived":{"description":"Calculated metrics evaluated from raw and other calculated metrics in this profile, up to 64 calculated metrics.","items":{"$ref":"#/components/schemas/derivedDTO"},"maxItems":64,"type":"array"},"dictionaries":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Dictionary definitions keyed by alias; a metric references an alias in its meta.dictionary field.","type":"object"},"evidence":{"description":"Source or verification note supporting this profile's protocol and metric mapping.","type":"string"},"firmware":{"description":"Firmware versions a catalogue edition is listed for.","items":{"type":"string"},"type":"array"},"id":{"description":"Immutable profile identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"items":{"description":"Raw metrics acquired from the device; a profile must contain between 1 and 512 items.","items":{"$ref":"#/components/schemas/itemDTO"},"maxItems":512,"minItems":1,"type":"array"},"name":{"description":"Human-readable device model/profile name; required, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"protocol":{"description":"Protocol driver identifier used to interpret the profile items and communicate with the device.","type":"string"},"revision":{"description":"Positive revision number of this immutable profile version.","format":"int64","minimum":1,"type":"integer"},"scope":{"description":"Catalogue ownership: global profiles are platform-managed; organization profiles are owned by this organization.","enum":["global","organization"],"type":"string"},"standard":{"description":"The catalogue edition to take when the firmware of a device is not known.","type":"boolean"},"status":{"description":"Profile lifecycle state. Draft profiles are organization-maintained; verified profiles are approved catalogue definitions.","enum":["draft","verified"],"type":"string"},"variant":{"description":"Protocol-specific transport or framing variant. Allowed values depend on protocol; for custom, json or form.","type":"string"}},"required":["id","scope","name","protocol","variant","status","evidence","items","revision"],"type":"object"},"profileDTOVariant":{"properties":{"archives":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Protocol-driver archive or bulk-read configuration keyed by archive name.","type":"object"},"derived":{"description":"Calculated metrics evaluated from raw and other calculated metrics in this profile, up to 64 calculated metrics.","items":{"$ref":"#/components/schemas/derivedDTO"},"maxItems":64,"type":"array"},"dictionaries":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Dictionary definitions keyed by alias; a metric references an alias in its meta.dictionary field.","type":"object"},"evidence":{"description":"Source or verification note supporting this profile's protocol and metric mapping.","type":"string"},"firmware":{"description":"Firmware versions a catalogue edition is listed for.","items":{"type":"string"},"type":"array"},"id":{"description":"Immutable profile identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"items":{"description":"Raw metrics acquired from the device; a profile must contain between 1 and 512 items.","items":{"$ref":"#/components/schemas/itemDTO"},"maxItems":512,"minItems":1,"type":"array"},"name":{"description":"Human-readable device model/profile name; required, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"protocol":{"description":"Protocol driver identifier used to interpret the profile items and communicate with the device.","enum":["axis-skm01","custom","dlms","iec62056-21","mbus","modbus"],"type":"string"},"revision":{"description":"Positive revision number of this immutable profile version.","format":"int64","minimum":1,"type":"integer"},"scope":{"description":"Catalogue ownership: global profiles are platform-managed; organization profiles are owned by this organization.","enum":["global","organization"],"type":"string"},"standard":{"description":"The catalogue edition to take when the firmware of a device is not known.","type":"boolean"},"status":{"description":"Profile lifecycle state. Draft profiles are organization-maintained; verified profiles are approved catalogue definitions.","enum":["draft","verified"],"type":"string"},"variant":{"description":"Protocol-specific framing/transport variant. Select one of the values listed for the selected protocol; the server validates the pair.","type":"string","x-supported-values-by-protocol":{"axis-skm01":["standard"],"custom":["json","form"],"dlms":["hdlc","wrapper"],"iec62056-21":["readout","push"],"mbus":["wired-primary","wired-secondary"],"modbus":["rtu","tcp","ascii"]}}},"required":["id","scope","name","protocol","variant","status","evidence","items","revision"],"type":"object"},"profileRequest":{"properties":{"display_name":{"description":"The person's name; sign-up does not ask for it.","maxLength":255,"type":"string"}},"required":["display_name"],"type":"object"},"proposalDTO":{"properties":{"accepted_model":{"description":"Value for the accepted model field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"answer":{"description":"Value for the answer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"decided_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"device_class":{"description":"Value for the device class field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"manufacturer":{"description":"Value for the manufacturer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"model":{"description":"Value for the model field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"parameters":{"description":"Names of the offered parameters.","items":{"type":"string"},"type":"array"},"profile_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"protocol":{"description":"Communication protocol identifier; the schema lists supported values when finite.","type":"string"},"state":{"description":"Current state of this resource or operation; the schema lists allowed values when finite.","enum":["pending","accepted","rejected"],"type":"string"}},"required":["created_at","id","org_id","profile_id","manufacturer","model","device_class","note","state","answer","accepted_model","protocol","parameters"],"type":"object"},"proposalsDTO":{"properties":{"items":{"description":"Value for the items field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/proposalDTO"},"type":"array"}},"required":["items"],"type":"object"},"proposeRequest":{"properties":{"device_class":{"description":"For example heat_meter.","maxLength":32,"type":"string"},"manufacturer":{"description":"Value for the manufacturer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":128,"type":"string"},"model":{"description":"Value for the model field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":128,"type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","maxLength":1000,"type":"string"},"profile_id":{"description":"An own model of the organisation.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["profile_id","manufacturer","model","device_class"],"type":"object"},"proxyDTO":{"properties":{"active":{"description":"Value for the active field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"clients":{"description":"Value for the clients field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"created_by":{"description":"Value for the created by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"device_port":{"description":"Value for the device port field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"expires_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"instance_id":{"description":"Identifier of the associated instance; platform resource IDs use ULID format unless stated otherwise.","type":"string"},"path_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"proxy_port":{"description":"Value for the proxy port field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":65535,"minimum":1,"type":"integer"},"stopped_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["expires_at","created_at","id","instance_id","path_id","created_by","clients","device_port","proxy_port","active"],"type":"object"},"proxyDetailResponse":{"properties":{"events":{"description":"Value for the events field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/proxyEventDTO"},"type":"array"},"proxy":{"$ref":"#/components/schemas/proxyDTO","description":"Value for the proxy field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"sessions":{"description":"Value for the sessions field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/sessionDTO2"},"type":"array"}},"required":["proxy","events","sessions"],"type":"object"},"proxyEventDTO":{"properties":{"at":{"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"detail":{"description":"Value for the detail field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"peer":{"description":"Value for the peer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["at","kind"],"type":"object"},"proxyRequest":{"properties":{"clients":{"description":"Value for the clients field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"minutes":{"description":"Value for the minutes field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":240,"minimum":1,"type":"integer"},"proxy_port":{"description":"Value for the proxy port field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":65535,"minimum":1,"type":"integer"}},"required":["clients","proxy_port","minutes"],"type":"object"},"publicDocumentResponse":{"properties":{"checksum":{"description":"SHA-256 of the text (UTF-8, lower-case hex), computed when this version was saved.","type":"string"},"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"main_language":{"description":"Value for the main language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"texts":{"description":"All the languages of this version, the main one first.","items":{"$ref":"#/components/schemas/publicText"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"valid_from":{"description":"Start of the validity period in RFC 3339 date-time format.","format":"date-time","type":"string"},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Expiry timestamp in RFC 3339 date-time format."},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["main_language","texts","country","language","title","content","checksum","version","created_at","valid_from"],"type":"object"},"publicOrganizationDocumentResponse":{"properties":{"checksum":{"description":"SHA-256 of the text (UTF-8, lower-case hex), computed when this version was saved.","type":"string"},"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"country":{"description":"Country code; the operation contract specifies the expected country-code format.","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"main_language":{"description":"Value for the main language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"organization_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"texts":{"description":"All the languages of this version, the main one first.","items":{"$ref":"#/components/schemas/publicText"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"valid_from":{"description":"Start of the validity period in RFC 3339 date-time format.","format":"date-time","type":"string"},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Expiry timestamp in RFC 3339 date-time format."},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["main_language","texts","organization_id","country","language","title","content","checksum","version","created_at","valid_from"],"type":"object"},"publicText":{"properties":{"checksum":{"description":"SHA-256 of this text (UTF-8, lower-case hex), computed when it was saved.","type":"string"},"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"language":{"description":"Value for the language field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["language","title","content","checksum"],"type":"object"},"publishOrganizationRequest":{"properties":{"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"language":{"description":"With title and content: a version with this one text (instead of texts); it must be the main language of the country.","maxLength":16,"type":"string"},"texts":{"description":"The languages of the new version, published together; the text in the main language of the organisation's country is required.","items":{"$ref":"#/components/schemas/publishText"},"type":"array"},"title":{"description":"Short human-readable title for the event, notice, or resource.","maxLength":255,"type":"string"}},"type":"object"},"publishRequest":{"properties":{"country":{"description":"Country code; the operation contract specifies the expected country-code format.","maxLength":2,"type":"string"},"names":{"additionalProperties":{"type":"string"},"description":"Value for the names field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"}},"required":["names","country"],"type":"object"},"publishText":{"properties":{"content":{"description":"Value for the content field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"language":{"description":"A supported language.","maxLength":16,"type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","maxLength":200,"type":"string"}},"required":["language","title","content"],"type":"object"},"quietDTO":{"properties":{"mute_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"quiet_end":{"description":"Value for the quiet end field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":1439,"minimum":0,"type":"integer"},"quiet_start":{"description":"Value for the quiet start field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":1439,"minimum":0,"type":"integer"},"timezone":{"description":"IANA time-zone identifier used to interpret local schedules and dates.","maxLength":64,"type":"string"}},"required":["mute_until","timezone","quiet_start","quiet_end"],"type":"object"},"quirksRequest":{"properties":{"quirks":{"additionalProperties":{"type":"string"},"description":"Complete replacement quirk map. Keys are protocol-driver-specific; values are plain strings, secrets are refused, and an empty object clears all quirks.","type":"object"}},"required":["quirks"],"type":"object"},"readinessDTO":{"properties":{"failed":{"description":"Value for the failed field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["status","failed","version"],"type":"object"},"reasonRequest":{"properties":{"reason":{"description":"Human-readable reason for the requested or completed operation.","maxLength":500,"type":"string"}},"required":["reason"],"type":"object"},"recomputeDTO":{"properties":{"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"cursor":{"description":"Opaque pagination or processing cursor; use the value returned by the API without modifying it.","format":"date-time","type":"string"},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"error":{"description":"Value for the error field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"from":{"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"keys":{"description":"Value for the keys field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"to":{"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"updated_at":{"description":"Last update timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"written":{"description":"Value for the written field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["created_at","updated_at","from","to","cursor","id","device_id","status","keys","written"],"type":"object"},"recordPaymentRequest":{"properties":{"amount_minor":{"description":"Amount paid in minor units; 0 or left out: all that is left on the invoice. Excess is credited to the account after confirmation.","format":"int64","maximum":100000000000,"minimum":0,"type":"integer"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","maxLength":255,"type":"string"},"paid_on":{"description":"The day it was paid, optional.","format":"date","type":"string"},"reference":{"description":"The payment's reference (a bank transfer number or date), up to 128 characters, so that it can be found.","maxLength":128,"type":"string"}},"required":["amount_minor","reference","paid_on","note"],"type":"object"},"recordingDTO":{"properties":{"scope":{"description":"Resource scope to which the grant or operation applies.","type":"string"},"target_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"until":{"description":"Value for the until field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"}},"required":["until","scope","target_id"],"type":"object"},"recoveryCodesResponse":{"properties":{"recovery_codes":{"description":"Value for the recovery codes field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"}},"required":["recovery_codes"],"type":"object"},"refItem":{"properties":{"fields":{"description":"Value for the fields field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/refParam"},"type":"array"},"meta":{"description":"Value for the meta field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/refParam"},"type":"array"},"params":{"description":"Value for the params field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/refParam"},"type":"array"}},"required":["fields","params","meta"],"type":"object"},"refParam":{"properties":{"default":{"description":"Value for the default field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"description":{"description":"Human-readable explanation of the resource or value.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"required":{"description":"Whether the associated value or action is required.","type":"boolean"},"type":{"description":"Value type or category; the schema lists allowed values when finite.","type":"string"}},"required":["name","type","description"],"type":"object"},"refVariant":{"properties":{"content_type":{"description":"Media type of the associated content, normally in type/subtype form.","type":"string"},"description":{"description":"Human-readable explanation of the resource or value.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","content_type","description"],"type":"object"},"referenceDTO":{"properties":{"device":{"description":"Value for the device field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/refParam"},"type":"array"},"endpoint":{"description":"Value for the endpoint field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/refParam"},"type":"array"},"item":{"$ref":"#/components/schemas/refItem","description":"Value for the item field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"parsing":{"description":"Value for the parsing field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"polling":{"description":"Value for the polling field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"protocol":{"description":"Communication protocol identifier; the schema lists supported values when finite.","type":"string"},"receiving":{"description":"Value for the receiving field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"variants":{"description":"Value for the variants field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/refVariant"},"type":"array"}},"required":["protocol","variants","item","endpoint","device","receiving","parsing","polling"],"type":"object"},"registerRequest":{"properties":{"base_fee":{"description":"Value for the base fee field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"},"basis":{"description":"Value for the basis field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":255,"type":"string"},"basis_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"basis_number":{"description":"Value for the basis number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"category":{"description":"Value for the category field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"},"code":{"description":"Stable code used to identify or classify this resource.","maxLength":32,"type":"string"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","maxLength":3,"type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"},"price":{"description":"Price or rate; the operation contract defines its currency, unit, and tax treatment.","maxLength":32,"type":"string"},"price_includes_vat":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Value for the price includes vat field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"resource":{"description":"Value for the resource field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":16,"type":"string"},"tiers":{"description":"Value for the tiers field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/tierDTO"},"type":"array"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","maxLength":8,"type":"string"},"valid_from":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format.","x-not-before":"valid_from"},"vat_percent":{"description":"Percentage value; allowed range and precision, if constrained, are specified in the schema.","maxLength":16,"type":"string"},"zones":{"description":"Value for the zones field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/zoneDTO"},"type":"array"}},"required":["building_id","code","name","category","basis_number","basis_date","resource","unit","price","zones","tiers","base_fee","currency","vat_percent","price_includes_vat","valid_from","valid_until","basis"],"type":"object"},"rejectRequest":{"properties":{"reason":{"description":"Why it is declined; the person is told this.","maxLength":512,"minLength":1,"type":"string"}},"required":["reason"],"type":"object"},"renewHoldRequest":{"properties":{"minutes":{"description":"How long from now; an hour when omitted.","format":"int64","maximum":1440,"minimum":5,"type":"integer"},"reason":{"description":"Why manual control goes on.","maxLength":500,"minLength":3,"type":"string"},"revision":{"description":"The revision that was on the screen.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["reason","revision"],"type":"object"},"replyBody":{"properties":{"message":{"description":"5 to 3000 characters. A closed conversation can be reopened for seven days after it was closed.","maxLength":3000,"type":"string"}},"required":["message"],"type":"object"},"reportCellDTO":{"properties":{"missing":{"description":"Value for the missing field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract."}},"required":["value"],"type":"object"},"reportDTO":{"properties":{"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"rows":{"description":"Value for the rows field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/reportRowDTO"},"type":"array"}},"required":["period","rows"],"type":"object"},"reportRowDTO":{"properties":{"cells":{"description":"Value for the cells field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/reportCellDTO"},"type":"array"},"start":{"description":"Value for the start field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["start","cells"],"type":"object"},"request":{"properties":{"effective_date":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"},"new_device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["new_device_id","effective_date"],"type":"object"},"requestBody":{"properties":{"from":{"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"metrics":{"description":"Value for the metrics field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"to":{"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"}},"required":["from","to","metrics"],"type":"object"},"requestDTO":{"properties":{"answer":{"description":"Value for the answer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"handled_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"handled_by":{"description":"Value for the handled by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"A conversation root, reply, event_closed, event_declined, or event_reopened. Events record the actor and time of a state change.","type":"string"},"message":{"description":"Human-readable message or text associated with the operation.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"requested_by":{"description":"Value for the requested by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"side":{"description":"Who wrote it: org or staff.","enum":["org","staff"],"type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"subject":{"description":"The topic of the conversation (empty on a reply).","type":"string"},"thread_id":{"description":"The request this line answers; empty on the request (or message) that opens a conversation.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","org_id","kind","message","status","requested_by","created_at","subject","side"],"type":"object"},"requisitesDTO":{"properties":{"contact_email":{"description":"Contact address for documents.","type":"string"},"contact_phone":{"description":"Contact phone.","type":"string"},"country":{"description":"The country of the organisation; it never changes.","type":"string"},"legal_address":{"description":"Its registered address.","type":"string"},"legal_name":{"description":"The legal entity.","type":"string"},"name":{"description":"The organisation's name; the platform keeps it.","type":"string"},"revision":{"description":"Send it back with a change so that one made meanwhile is not overwritten.","format":"int64","type":"integer"},"tax_number":{"description":"Tax or registration number.","type":"string"}},"required":["name","country","revision","legal_name","legal_address","tax_number","contact_email","contact_phone"],"type":"object"},"requisitesRequest":{"properties":{"contact_email":{"description":"Contact address; empty for none.","maxLength":255,"type":"string"},"contact_phone":{"description":"Contact phone in international form; omitted or empty: none.","maxLength":32,"type":"string"},"legal_address":{"description":"Registered address; omitted or empty: none.","maxLength":500,"type":"string"},"legal_name":{"description":"The legal entity, if it differs from the name; omitted or empty: none.","maxLength":255,"type":"string"},"revision":{"description":"The revision the form was loaded with.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"tax_number":{"description":"Tax or registration number; omitted or empty: none.","maxLength":32,"type":"string"}},"required":["revision"],"type":"object"},"resetChannelRequest":{"properties":{"reason":{"description":"Audit reason for resetting or revoking the device-specific channel configuration, up to 255 characters.","maxLength":255,"type":"string"}},"type":"object"},"residentsDTO":{"properties":{"residents":{"description":"Value for the resIDents field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":1000,"minimum":0,"type":"integer"},"valid_from":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"}},"required":["valid_from","residents"],"type":"object"},"response":{"properties":{"changed":{"additionalProperties":{"items":{"type":"string"},"type":"array"},"description":"Value for the changed field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"effective":{"description":"Value for the effective field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"new_device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"old_device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"still_reading":{"description":"Value for the still reading field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"}},"required":["old_device_id","new_device_id","effective","changed","still_reading"],"type":"object"},"restoreDeviceRequest":{"properties":{"primary_address":{"anyOf":[{"format":"int64","maximum":255,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Optional replacement numeric primary address; null or omitted keeps the stored value. API range is 0–255, with protocol-specific validation applied."},"secondary_address":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Optional replacement secondary address; null or omitted keeps the stored value."},"serial":{"anyOf":[{"maxLength":64,"type":"string"},{"type":"null"}],"description":"Optional replacement serial number when restoring; null or omitted keeps the stored value."}},"type":"object"},"restorePathRequest":{"properties":{"endpoint":{"anyOf":[{"maxLength":255,"type":"string"},{"type":"null"}],"description":"Optional replacement transport endpoint; null or omitted keeps the stored endpoint."}},"type":"object"},"restoreRequest":{"properties":{"number":{"description":"Value for the number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"}},"required":["number"],"type":"object"},"restoreRequest2":{"properties":{"code":{"description":"Optional replacement building code if the archived code has since been assigned to another active building.","maxLength":64,"type":"string"}},"required":["code"],"type":"object"},"restoreRequest3":{"properties":{"key":{"description":"Stable machine-readable key for this value or configuration entry.","maxLength":64,"type":"string"}},"required":["key"],"type":"object"},"restoreTemplateRequest":{"properties":{"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"}},"required":["name"],"type":"object"},"returnToServiceRequest":{"properties":{"note":{"description":"What was done.","maxLength":500,"type":"string"},"ready_confirmed":{"description":"Nobody works on it and it may be commanded.","type":"boolean"},"remote_mode_confirmed":{"description":"The equipment is switched to remote control.","type":"boolean"},"revision":{"description":"The revision that was on the screen.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"same_device_confirmed":{"description":"It is the device the platform knows.","type":"boolean"}},"required":["revision","remote_mode_confirmed","same_device_confirmed","ready_confirmed"],"type":"object"},"reviewRequest":{"properties":{"decision":{"description":"What the reviewer decides.","enum":["confirm","reject"],"type":"string"},"note":{"description":"Required to reject.","maxLength":512,"type":"string"}},"required":["decision"],"type":"object"},"revokeAccessResponse":{"properties":{"revoked_grants":{"description":"Value for the revoked grants field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["revoked_grants"],"type":"object"},"rotateKeyRequest":{"properties":{"days":{"description":"Value for the days field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":365,"minimum":1,"type":"integer"}},"required":["days"],"type":"object"},"ruleDTO":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"fix":{"description":"Value for the fix field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"impact":{"description":"Value for the impact field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"severity":{"description":"Severity level assigned to the event or finding; allowed values are defined by the operation.","maxLength":16,"type":"string"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["code","severity","title","impact","fix"],"type":"object"},"ruleDTO2":{"properties":{"acknowledge_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":2592000,"minimum":60,"type":"integer"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","maxLength":64,"type":"string"},"resolve_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":7776000,"minimum":60,"type":"integer","x-not-before":"acknowledge_seconds"},"severity":{"description":"Severity level assigned to the event or finding; allowed values are defined by the operation.","maxLength":16,"type":"string"}},"required":["building_id","severity","acknowledge_seconds","resolve_seconds"],"type":"object"},"rulesDTO":{"properties":{"items":{"description":"Value for the items field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ruleDTO2"},"type":"array"}},"required":["items"],"type":"object"},"runDTO":{"properties":{"error":{"description":"Value for the error field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"finished_at":{"description":"Completion timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"found":{"description":"Value for the found field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"new":{"description":"Value for the new field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"reopened":{"description":"Value for the reopened field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"resolved":{"description":"Value for the resolved field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"started_at":{"description":"Start timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"trigger":{"description":"Value for the trigger field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"truncated":{"description":"Value for the truncated field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["id","trigger","status","found","new","reopened","resolved","started_at","finished_at"],"type":"object"},"runDTO2":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"failure":{"description":"Value for the failure field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"manifest":{"anyOf":[{"$ref":"#/components/schemas/Manifest"},{"type":"null"}],"description":"Value for the manifest field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"params":{"$ref":"#/components/schemas/Params","description":"Value for the params field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"requested_by":{"description":"Value for the requested by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"row_count":{"description":"Value for the row count field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"table":{"anyOf":[{"$ref":"#/components/schemas/Table"},{"type":"null"}],"description":"Value for the table field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["created_at","id","building_id","kind","status","title","requested_by","params","row_count"],"type":"object"},"runRequest":{"properties":{"async":{"description":"Whether the requested operation should be processed asynchronously, when supported.","type":"boolean"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","maxLength":64,"type":"string"},"params":{"$ref":"#/components/schemas/Params","description":"Value for the params field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["kind","params","async"],"type":"object"},"scaleDTO":{"properties":{"bands":{"description":"Value for the bands field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/bandDTO"},"type":"array"},"basis":{"description":"Value for the basis field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":255,"type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"}},"required":["name","basis","bands"],"type":"object"},"scannerDTO":{"properties":{"category":{"description":"Value for the category field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"changed":{"description":"Value for the changed field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"changed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"changed_by":{"description":"Value for the changed by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"consecutive_failures":{"description":"Value for the consecutive failures field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"default_interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","type":"integer"},"description":{"description":"Human-readable explanation of the resource or value.","type":"string"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"failing_targets":{"description":"Value for the failing targets field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":604800,"type":"integer"},"last_error":{"description":"Value for the last error field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"last_ok_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"last_run":{"anyOf":[{"$ref":"#/components/schemas/runDTO"},{"type":"null"}],"description":"Value for the last run field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"last_run_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"min_interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","type":"integer"},"muted_rules":{"description":"Value for the muted rules field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"next_run_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"open":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Value for the open field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"},"org_overrides":{"description":"Value for the org overrIDes field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"orgs_with_findings":{"description":"Value for the orgs with findings field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"overdue":{"description":"Value for the overdue field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"params":{"description":"Value for the params field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/paramDTO"},"type":"array"},"rules":{"description":"Value for the rules field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ruleDTO"},"type":"array"},"running":{"description":"Value for the running field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"scope":{"description":"Resource scope to which the grant or operation applies.","type":"string"},"setting_source":{"description":"Value for the setting source field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"targets":{"description":"Value for the targets field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["open","id","title","description","category","scope","setting_source","rules","interval_seconds","consecutive_failures","enabled","overdue","running","default_interval_seconds","min_interval_seconds","params","muted_rules","changed","targets","failing_targets","orgs_with_findings","org_overrides"],"type":"object"},"scheduleChange":{"properties":{"day_of_month":{"description":"The day of each month the report is made on, 1 to 28.","format":"int64","maximum":28,"minimum":1,"type":"integer"},"enabled":{"description":"False keeps the schedule but makes nothing until it is switched on again.","type":"boolean"}},"required":["day_of_month","enabled"],"type":"object"},"scheduleDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"day_of_month":{"description":"Value for the day of month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":28,"minimum":1,"type":"integer"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"last_month":{"description":"Value for the last month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"last_run_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"template_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["created_at","id","building_id","kind","day_of_month","enabled"],"type":"object"},"scheduleRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"day_of_month":{"description":"Value for the day of month field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","maximum":28,"minimum":1,"type":"integer"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","maxLength":64,"type":"string"},"template_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["building_id","kind","template_id","day_of_month"],"type":"object"},"secureModeDTO":{"properties":{"active":{"description":"The mode is on in this session.","type":"boolean"},"minutes":{"description":"How long the mode lasts once turned on; 0 when the platform does not offer it.","format":"int64","type":"integer"},"until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the mode ends by itself; omitted while it is off."}},"required":["minutes","active"],"type":"object"},"sendDTO":{"properties":{"content_types":{"description":"Value for the content types field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"header":{"description":"Value for the header field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"query_token":{"description":"Value for the query token field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["header","content_types"],"type":"object"},"serverDTO":{"properties":{"admin_state":{"description":"Value for the admin state field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"connection":{"$ref":"#/components/schemas/linkDTO2","description":"Value for the connection field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"last_seen":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Value for the last seen field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["id","admin_state","connection"],"type":"object"},"serverRequest":{"properties":{"revision":{"description":"Current path revision shown to the caller; required to reject stale server assignments.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"server":{"description":"Poller instance identifier to pin this communication path to; empty or omitted clears the pin so any eligible poller may claim it.","maxLength":128,"type":"string"}},"required":["revision"],"type":"object"},"sessionDTO":{"properties":{"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"current":{"description":"Value for the current field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"expires_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["created_at","expires_at","id","current"],"type":"object"},"sessionDTO2":{"properties":{"bytes_in":{"description":"Value for the bytes in field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"bytes_out":{"description":"Value for the bytes out field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"detail":{"description":"Value for the detail field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"finished_at":{"description":"Completion timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"frames":{"description":"Value for the frames field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"identity":{"$ref":"#/components/schemas/JSONValue","description":"Value for the IDentity field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"job_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"outcome":{"description":"Value for the outcome field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"peer":{"description":"Value for the peer field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"protocol":{"description":"Communication protocol identifier; the schema lists supported values when finite.","type":"string"},"started_at":{"description":"Start timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"truncated":{"description":"Value for the truncated field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"variant":{"description":"Protocol-specific variant or operating mode; allowed values depend on the selected protocol.","type":"string"}},"required":["started_at","finished_at","id","device_id","job_id","kind","protocol","variant","outcome","bytes_in","bytes_out","frames","truncated"],"type":"object"},"sessionFramesResponse":{"properties":{"frames":{"description":"Value for the frames field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/frameDTO"},"type":"array"},"session":{"$ref":"#/components/schemas/sessionDTO2","description":"Value for the session field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["session","frames"],"type":"object"},"setDebugResponse":{"properties":{"device_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"recording_until":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"}},"required":["device_id","recording_until"],"type":"object"},"setInboundRequest":{"properties":{"mode":{"description":"Value for the mode field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":32,"type":"string"}},"required":["mode"],"type":"object"},"setPathRecordingResponse":{"properties":{"path_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"recording":{"description":"Value for the recording field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"recording_until":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"}},"required":["path_id","recording","recording_until"],"type":"object"},"setPlanRequest":{"properties":{"dial_offset_seconds":{"anyOf":[{"format":"int64","maximum":86399,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema."},"dial_window_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":900,"minimum":5,"type":"integer","x-requires":"dial_offset_seconds"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":86400,"minimum":10,"type":"integer"}},"required":["dial_offset_seconds","interval_seconds","dial_window_seconds","enabled"],"type":"object"},"setTechnicalRoomAttributeRequest":{"properties":{"revision":{"description":"Current attribute value revision; use 0 when the attribute has no recorded value.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"value":{"$ref":"#/components/schemas/JSONValue","description":"Scalar JSON value matching the server-owned definition's value_kind and configured options/range; arrays, objects, and null are rejected."}},"required":["value","revision"],"type":"object"},"setTechnicalRoomAttributeRequestVariant":{"properties":{"revision":{"description":"Current attribute revision; use 0 when no value has been recorded yet.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"value":{"description":"A JSON string, number, or boolean matching the attribute's declared value_kind; null and arrays/objects are not accepted.","oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}},"required":["value","revision"],"type":"object"},"settingDTO":{"properties":{"heating_from":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"int64","maximum":12,"minimum":1,"type":"integer"},"heating_to":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"int64","maximum":12,"minimum":1,"type":"integer"},"house_rule":{"description":"Value for the house rule field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["by_area","excluded"],"type":"string"},"rest":{"additionalProperties":{"type":"string"},"description":"Value for the rest field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"}},"required":["house_rule"],"type":"object"},"settingRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether the resource or feature is enabled."},"interval_seconds":{"anyOf":[{"format":"int64","maximum":604800,"type":"integer"},{"type":"null"}],"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema."},"muted_rules":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"description":"Value for the muted rules field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"params":{"additionalProperties":{"format":"int64","type":"integer"},"description":"Value for the params field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"object"}},"required":["enabled","interval_seconds","params","muted_rules"],"type":"object"},"settingsDTO":{"properties":{"task_lead_days":{"description":"How many days before the end a task is made; 0 makes none.","format":"int64","maximum":365,"minimum":0,"type":"integer"},"warn_days":{"description":"How many days before its end a verification is shown as ending soon.","format":"int64","maximum":365,"minimum":1,"type":"integer"}},"required":["warn_days","task_lead_days"],"type":"object"},"setupDTO":{"properties":{"ends":{"description":"The source first, then the supplied buildings.","items":{"$ref":"#/components/schemas/endDTO"},"type":"array"},"id":{"description":"The link.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"What is supplied.","enum":["heating","hot_water","water","electricity","gas","ventilation","cooling","other"],"type":"string"},"name":{"description":"Its name.","type":"string"},"points":{"description":"What measures the ends now.","items":{"$ref":"#/components/schemas/pointDTO5"},"type":"array"}},"required":["id","name","kind","ends","points"],"type":"object"},"shiftDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"ends_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","type":"string"},"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"starts_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"}},"required":["starts_at","ends_at","id","building_id","person_id"],"type":"object"},"shiftRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"ends_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"note":{"description":"Optional operator-entered note associated with the resource or operation.","maxLength":255,"type":"string"},"person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"starts_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"}},"required":["starts_at","ends_at","building_id","person_id","note"],"type":"object"},"signInMethodsResponse":{"properties":{"google":{"description":"Sign in with Google is configured.","type":"boolean"},"passkey":{"description":"Passkeys are configured, so a person can make one and sign in with it.","type":"boolean"},"password":{"description":"E-mail and password sign-in; always on.","type":"boolean"},"self_registration":{"description":"A person can open an organisation of their own (POST /auth/register): the sign-in page offers creating an account.","type":"boolean"}},"required":["password","passkey","google","self_registration"],"type":"object"},"siteBrandResponse":{"properties":{"brand":{"$ref":"#/components/schemas/brandDTO","description":"Value for the brand field; the schema specifies its JSON type, nullability, format, and any declared constraints."}},"required":["brand"],"type":"object"},"siteDTO":{"properties":{"available_providers":{"description":"Value for the available provIDers field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"enabled":{"description":"Whether the resource or feature is enabled.","type":"boolean"},"error":{"description":"Value for the error field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"fetched_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"latitude":{"description":"Value for the latitude field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"double","type":"number"},"longitude":{"description":"Value for the longitude field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"double","type":"number"},"providers":{"description":"Value for the provIDers field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"updated_at":{"description":"Last update timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"}},"required":["updated_at","providers","available_providers","latitude","longitude","enabled"],"type":"object"},"sitePackageDTO":{"properties":{"billing_months":{"description":"Value for the billing months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"discount_percent":{"description":"Percentage value; allowed range and precision, if constrained, are specified in the schema.","format":"double","type":"number"},"features":{"description":"Value for the features field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"history_months":{"description":"Value for the history months field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"max_devices":{"description":"Value for the max devices field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"min_interval_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","type":"integer"},"net_monthly_minor":{"description":"The monthly price after the discount.","format":"int64","type":"integer"},"price_monthly_minor":{"description":"Value for the price monthly minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"},"trial_days":{"description":"Value for the trial days field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["code","title","price_monthly_minor","discount_percent","net_monthly_minor","billing_months","trial_days","max_devices","history_months","min_interval_seconds","features"],"type":"object"},"sitePackagesResponse":{"properties":{"custom_package_enabled":{"description":"A package of one's own size can be built in this country (GET /site/packages/quote); the platform's setting of the country decides.","type":"boolean"},"packages":{"description":"Value for the packages field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/sitePackageDTO"},"type":"array"}},"required":["packages","custom_package_enabled"],"type":"object"},"siteQuoteResponse":{"properties":{"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"lines":{"description":"Value for the lines field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/priceLineDTO"},"type":"array"},"priced_features":{"description":"The features the country's price list has a price for: the ones a plan can be built from.","items":{"type":"string"},"type":"array"},"suggestion":{"anyOf":[{"$ref":"#/components/schemas/suggestionDTO"},{"type":"null"}],"description":"A package on sale that already covers what was asked and costs no more than the calculated price: take it instead."},"total_monthly_minor":{"description":"The monthly price of the plan in the currency's minor units.","format":"int64","type":"integer"}},"required":["currency","total_monthly_minor","priced_features","lines"],"type":"object"},"siteRequest":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether weather collection is enabled; defaults to true when omitted."},"latitude":{"description":"Required latitude in decimal degrees.","maximum":90,"minimum":-90,"type":"number"},"longitude":{"description":"Required longitude in decimal degrees.","maximum":180,"minimum":-180,"type":"number"},"providers":{"description":"Provider order; defaults to all available providers when omitted or empty.","items":{"type":"string"},"maxItems":4,"type":"array"}},"required":["latitude","longitude"],"type":"object"},"slaTargetDTO":{"properties":{"acknowledge_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":2592000,"minimum":60,"type":"integer"},"custom":{"description":"Value for the custom field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"resolve_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":7776000,"minimum":60,"type":"integer","x-not-before":"acknowledge_seconds"}},"required":["acknowledge_seconds","resolve_seconds","custom"],"type":"object"},"slaTargetRequest":{"properties":{"acknowledge_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":2592000,"minimum":60,"type":"integer"},"resolve_seconds":{"description":"Duration or interval expressed in seconds; allowed range, if constrained, is specified in the schema.","format":"int64","maximum":7776000,"minimum":60,"type":"integer","x-not-before":"acknowledge_seconds"}},"required":["acknowledge_seconds","resolve_seconds"],"type":"object"},"spanDTO":{"properties":{"from":{"description":"When the platform noticed the metric outside, or the start of the period.","format":"date-time","type":"string"},"to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it noticed it back or a person resolved the incident; absent while neither."}},"required":["from"],"type":"object"},"startGroupRequest":{"properties":{"reason":{"description":"Why; recorded with every command.","maxLength":255,"minLength":3,"type":"string"},"targets":{"description":"The commands, in the order they are to be sent.","items":{"$ref":"#/components/schemas/groupTargetRequest"},"maxItems":100,"minItems":1,"type":"array"}},"required":["reason","targets"],"type":"object"},"startRecomputeRequest":{"properties":{"from":{"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"keys":{"description":"Value for the keys field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"type":"string"},"type":"array"},"to":{"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"}},"required":["from","to","keys"],"type":"object"},"statusRequest":{"properties":{"revision":{"description":"Current device or path revision shown to the caller; required to reject stale lifecycle changes.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"status":{"description":"Requested owner-controlled lifecycle state. Allowed values depend on whether the target is a device or a communication path; only valid state-machine transitions are accepted.","type":"string"}},"required":["status","revision"],"type":"object"},"statusRequestVariant":{"properties":{"revision":{"description":"Current device or path revision shown to the caller; required to reject stale lifecycle changes.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"status":{"description":"Requested owner-controlled lifecycle state. Allowed values depend on whether the target is a device or a communication path; only valid state-machine transitions are accepted.","enum":["planned","commissioned","operating","out_of_service","decommissioned"],"type":"string"}},"required":["status","revision"],"type":"object"},"statusRequestVariant2":{"properties":{"revision":{"description":"Current device or path revision shown to the caller; required to reject stale lifecycle changes.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"status":{"description":"Requested owner-controlled lifecycle state. Allowed values depend on whether the target is a device or a communication path; only valid state-machine transitions are accepted.","enum":["enabled","blocked","retired"],"type":"string"}},"required":["status","revision"],"type":"object"},"stepDefDTO":{"properties":{"expect":{"description":"The answer a text step should find; a different one is a deviation. May hold {serial}, {device}, {model}, {building}, {address}, as the title and hint may.","maxLength":200,"type":"string"},"hint":{"description":"How, or what is right.","maxLength":500,"type":"string"},"key":{"description":"Names the step within the checklist, for conditions of later ones (a-z and digits); given when omitted.","maxLength":12,"type":"string"},"kind":{"description":"What the step asks: a tick, a number, one of the answers or a few words.","enum":["check","number","choice","text"],"type":"string"},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Upper bound of the norm of a number."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lower bound of the norm of a number (a decimal number as text)."},"options":{"description":"The answers of a choice, 2 to 12.","items":{"$ref":"#/components/schemas/optionDTO"},"type":"array"},"photo_required":{"description":"A step that is done needs a photo attached to it.","type":"boolean"},"required":{"description":"The work cannot be reported until the step is settled (done or not applicable).","type":"boolean"},"title":{"description":"What to do or look at.","maxLength":200,"minLength":1,"type":"string"},"unit":{"description":"Unit of a number.","maxLength":16,"type":"string"},"when":{"anyOf":[{"$ref":"#/components/schemas/conditionDTO"},{"type":"null"}],"description":"The step is asked only if an earlier one was answered so; omitted: always."}},"required":["title","kind"],"type":"object"},"stepOrderRequest":{"properties":{"step_ids":{"description":"Every step of the task, in the new order.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array"}},"required":["step_ids"],"type":"object"},"stepResultRequest":{"properties":{"comment":{"description":"Required for a deviation and for na.","maxLength":500,"type":"string"},"state":{"description":"pending forgets the result; done and na write it.","enum":["pending","done","na"],"type":"string"},"value":{"description":"The number, the chosen answer or the words (for done).","maxLength":500,"type":"string"}},"required":["state"],"type":"object"},"stepUpResponse":{"properties":{"valid_until":{"description":"Expiry timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"}},"required":["valid_until"],"type":"object"},"stepsDTO":{"properties":{"enabled":{"description":"The package has the checklists: false means the steps are only to be read and do not hold back the report.","type":"boolean"},"open":{"description":"Required steps not yet settled.","format":"int64","type":"integer"},"steps":{"description":"The checklist of the task, in order.","items":{"$ref":"#/components/schemas/taskStepDTO"},"type":"array"},"without_photo":{"description":"Done steps that ask for a photo and have none.","format":"int64","type":"integer"}},"required":["enabled","steps","open","without_photo"],"type":"object"},"storageCategoryDTO":{"properties":{"bytes":{"description":"What they take.","format":"int64","type":"integer"},"files":{"description":"How many.","format":"int64","type":"integer"},"kind":{"description":"What the files belong to.","enum":["task","verification","substation","device","building"],"type":"string"}},"required":["kind","files","bytes"],"type":"object"},"storageDTO":{"properties":{"categories":{"description":"The room taken by each kind of record.","items":{"$ref":"#/components/schemas/storageCategoryDTO"},"type":"array"},"room_bytes":{"description":"What the plan allows.","format":"int64","type":"integer"},"used_bytes":{"description":"What all the files take.","format":"int64","type":"integer"}},"required":["categories","used_bytes","room_bytes"],"type":"object"},"storedFileDTO":{"properties":{"building_id":{"description":"Building of the record.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"id":{"description":"File.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"What it belongs to.","enum":["task","verification","substation","device","building"],"type":"string"},"name":{"description":"Name.","type":"string"},"owner_id":{"description":"The record it belongs to.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"size":{"description":"Bytes.","format":"int64","type":"integer"},"uploaded_at":{"description":"When it was attached.","format":"date-time","type":"string"},"uploader_name":{"description":"Who attached it.","type":"string"}},"required":["uploaded_at","id","name","kind","owner_id","building_id","uploader_name","size"],"type":"object"},"subDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"channel_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"event_prefix":{"description":"Value for the event prefix field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","channel_id","building_id","event_prefix"],"type":"object"},"subscribeRequest":{"properties":{"building_ids":{"description":"List of identifiers for the referenced resources; platform resource IDs use ULID format unless stated otherwise.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array"},"every":{"description":"Value for the every field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["week","month"],"type":"string"},"profile_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["every"],"type":"object"},"subscriptionDTO":{"properties":{"building_ids":{"description":"Empty: all the person may see.","items":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"type":"array"},"every":{"description":"Value for the every field; the schema specifies its JSON type, nullability, format, and any declared constraints.","enum":["week","month"],"type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"next_at":{"description":"When the next letter goes.","format":"date-time","type":"string"},"profile_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["next_at","id","every","profile_id","building_ids"],"type":"object"},"subscriptionsDTO":{"properties":{"items":{"description":"Value for the items field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/subscriptionDTO"},"type":"array"}},"required":["items"],"type":"object"},"substationBendDTO":{"properties":{"x":{"description":"Across the drawing, 0 to 10000.","format":"int64","maximum":100000,"minimum":-100000,"type":"integer"},"y":{"description":"Down the drawing, 0 to 10000.","format":"int64","maximum":100000,"minimum":-100000,"type":"integer"}},"required":["x","y"],"type":"object"},"substationBindRequest":{"properties":{"device_id":{"description":"A device of the building of the substation.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"metric":{"description":"A channel of that device.","maxLength":64,"type":"string"},"node":{"description":"Key of the piece of equipment.","maxLength":64,"type":"string"},"point":{"description":"Key of its value.","maxLength":64,"type":"string"}},"required":["node","point","device_id","metric"],"type":"object"},"substationBindingDTO":{"properties":{"device_id":{"description":"Device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"id":{"description":"Binding.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"metric":{"description":"Channel of the device.","type":"string"},"node":{"description":"Key of the piece of equipment.","type":"string"},"point":{"description":"Key of its value.","type":"string"},"valid_from":{"description":"From when.","format":"date-time","type":"string"},"valid_to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Until when; omitted: it still measures."}},"required":["valid_from","id","node","point","device_id","metric"],"type":"object"},"substationCircuitDTO":{"properties":{"key":{"description":"Key within the scheme: lower-case letters, digits, underscores.","maxLength":64,"type":"string"},"kind":{"description":"What the circuit is.","enum":["primary","heating","dhw","ventilation","makeup","other"],"type":"string"},"name":{"description":"Name.","maxLength":255,"type":"string"}},"required":["key","kind","name"],"type":"object"},"substationCreateRequest":{"properties":{"building_id":{"description":"The building it is in; it stays there.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"The organisation's own number of it, up to 40 characters.","maxLength":40,"type":"string"},"name":{"description":"Name, up to 160 characters.","maxLength":160,"type":"string"},"technical_room_id":{"description":"A technical room of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"template":{"description":"The arrangement the first draft starts from; empty when omitted. A template is a drawing to correct after the project, and carries no design values.","enum":["empty","ua_elevator","ua_dependent_pumps","ua_independent_dhw","pl_one_function","pl_two_stage","pl_three_function","pl_storage"],"type":"string"}},"required":["building_id","name"],"type":"object"},"substationCurveDTO":{"properties":{"above":{"description":"How far over the curve is still right, not negative.","maxLength":32,"type":"string"},"below":{"description":"How far under the curve is still right, not negative; one of below and above is needed.","maxLength":32,"type":"string"},"off_above":{"description":"Outdoor temperature above which the value is not held to the curve (the heating season is over).","maxLength":32,"type":"string"},"points":{"description":"2 to 10 points with rising outdoor temperatures; straight lines between them, level beyond the ends.","items":{"$ref":"#/components/schemas/substationCurvePointDTO"},"maxItems":10,"minItems":2,"type":"array"}},"required":["points"],"type":"object"},"substationCurvePointDTO":{"properties":{"outdoor":{"description":"Outdoor temperature, °C, -60 to 60, an exact decimal.","maxLength":32,"type":"string"},"value":{"description":"What the value should be at it, in the unit of the point.","maxLength":500,"type":"string"}},"required":["outdoor","value"],"type":"object"},"substationDTO":{"properties":{"building_id":{"description":"Its building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"The organisation's own number of it.","type":"string"},"created_at":{"description":"When it was entered.","format":"date-time","type":"string"},"draft_version":{"description":"Number of the version being prepared; omitted: none.","format":"int64","type":"integer"},"id":{"description":"Substation.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Name.","type":"string"},"published_version":{"description":"Number of the version of the scheme in force; omitted: none yet.","format":"int64","type":"integer"},"revision":{"description":"Send it back to change the substation.","format":"int64","type":"integer"},"status":{"description":"Whether it is in use.","enum":["active","archived"],"type":"string"},"technical_room_id":{"description":"The technical room it stands in.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"updated_at":{"description":"When it or its scheme last changed.","format":"date-time","type":"string"}},"required":["created_at","updated_at","id","building_id","name","status","revision"],"type":"object"},"substationDraftRequest":{"properties":{"designer":{"description":"Who made that project.","maxLength":512,"type":"string"},"note":{"description":"What changed and why, up to 512 characters.","maxLength":512,"type":"string"},"project":{"description":"The project document it transcribes, with its revision.","maxLength":512,"type":"string"},"revision":{"description":"The revision of the draft that was read; 0 to start a new draft.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"scheme":{"$ref":"#/components/schemas/substationSchemeDTO","description":"The whole content of the draft."}},"required":["scheme","revision"],"type":"object"},"substationLinkDTO":{"properties":{"circuit":{"description":"Key of its circuit.","maxLength":64,"type":"string"},"from":{"description":"Key of the piece of equipment the flow comes from.","maxLength":64,"type":"string"},"mark":{"description":"A designation or size written along the line, up to 24 characters.","maxLength":128,"type":"string"},"role":{"description":"What the line is; water is the drinking-water side.","enum":["supply","return","water","signal"],"type":"string"},"to":{"description":"Key of the one it goes to.","maxLength":64,"type":"string"},"via":{"description":"Up to 8 points the line is led through, in order; presentation only.","items":{"$ref":"#/components/schemas/substationBendDTO"},"type":"array"}},"required":["from","to","role"],"type":"object"},"substationNodeDTO":{"properties":{"circuit":{"description":"Key of its circuit; omitted: none or several.","maxLength":64,"type":"string"},"key":{"description":"Key within the scheme; keep it from version to version, bindings hold on to it.","maxLength":64,"type":"string"},"kind":{"description":"What the piece of equipment is.","enum":["heat_exchanger","elevator","pressure_regulator","storage_tank","pump","control_valve","valve","check_valve","safety_valve","filter","sensor","heat_meter","water_meter","electricity_meter","controller","expansion_tank","manifold","network","consumer","other"],"type":"string"},"name":{"description":"Name.","maxLength":255,"type":"string"},"points":{"description":"Its values.","items":{"$ref":"#/components/schemas/substationPointDTO"},"type":"array"},"tag":{"description":"A model, size or position written at it, up to 40 characters.","maxLength":64,"type":"string"},"turn":{"description":"How the symbol is turned: 0, 90, 180 or 270 degrees clockwise; presentation only.","format":"int64","maximum":360,"minimum":-360,"type":"integer"},"variant":{"description":"Which sort of its kind it is; omitted: not said. A valve: ball, gate, butterfly, balancing; a control valve: three_way; a pump: twin; a heat exchanger: shell_tube; a filter: strainer, dirt_separator; a sensor: temperature, pressure, thermometer, manometer.","maxLength":32,"type":"string"},"x":{"description":"Place on the drawing, 0 to 10000; presentation only.","format":"int64","maximum":100000,"minimum":-100000,"type":"integer"},"y":{"description":"Place on the drawing, 0 to 10000; presentation only.","format":"int64","maximum":100000,"minimum":-100000,"type":"integer"}},"required":["key","kind","name","x","y"],"type":"object"},"substationPointDTO":{"properties":{"curve":{"anyOf":[{"$ref":"#/components/schemas/substationCurveDTO"},{"type":"null"}],"description":"Hold the value to the weather instead of a fixed minimum and maximum; send either this or min and max."},"key":{"description":"Key within the piece of equipment.","maxLength":64,"type":"string"},"max":{"description":"The project's highest acceptable value.","maxLength":32,"type":"string"},"min":{"description":"The project's lowest acceptable value.","maxLength":32,"type":"string"},"name":{"description":"Name.","maxLength":255,"type":"string"},"nominal":{"description":"The project's nominal value, an exact decimal.","maxLength":32,"type":"string"},"quantity":{"description":"What it measures or shows.","enum":["temperature","pressure","pressure_difference","flow","volume","energy","power","frequency","position","level","state","other"],"type":"string"},"unit":{"description":"Unit of the project's values.","maxLength":16,"type":"string"},"watch":{"anyOf":[{"$ref":"#/components/schemas/substationWatchDTO"},{"type":"null"}],"description":"Open an incident when the value stays outside the minimum and maximum; omitted: the limits are only shown."}},"required":["key","name","quantity"],"type":"object"},"substationPointStateDTO":{"properties":{"binding_id":{"description":"What binds it.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"device_id":{"description":"The device that measures it.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"device_name":{"description":"Its name.","type":"string"},"limit_max":{"description":"For a value held to a weather curve: the highest it may be at that temperature.","type":"string"},"limit_min":{"description":"For a value held to a weather curve: the lowest it may be at that temperature.","type":"string"},"measured_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the last reading was measured."},"metric":{"description":"Its channel.","type":"string"},"node":{"description":"Key of the piece of equipment.","type":"string"},"outdoor":{"description":"For a value held to a weather curve: the outdoor temperature its limits are told for, the mean of the last three hours.","type":"string"},"outside_since":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"For a watched value: the first of the readings that have stayed outside the limits."},"point":{"description":"Key of its value.","type":"string"},"reported":{"description":"An incident was asked for and the value is not back yet.","type":"boolean"},"unit":{"description":"Unit of the reading; of the project when there is none.","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The last reading, an exact decimal."},"verdict":{"description":"What the value says now beside the project. Only a fresh good reading in the project's unit is compared.","enum":["unbound","device_gone","no_data","bad","stale","below","above","unit_differs","within","measured","no_weather","off_season"],"type":"string"}},"required":["node","point","verdict"],"type":"object"},"substationPolicyDTO":{"properties":{"curve":{"description":"Supply temperature by the outdoor temperature: 2 to 10 points with rising outdoor temperatures.","items":{"$ref":"#/components/schemas/substationCurvePointDTO"},"maxItems":10,"minItems":2,"type":"array"},"highest":{"description":"The highest temperature the rule may ask for.","maxLength":32,"type":"string"},"lowest":{"description":"The lowest temperature the rule may ask for.","maxLength":32,"type":"string"},"max_step":{"description":"The most the asked temperature changes in an hour, 1 to 100.","maxLength":32,"type":"string"},"night_from":{"description":"Start of the lowered part of the day, HH:MM in the building's time; with night_to and night_lower.","maxLength":8,"type":"string"},"night_lower":{"description":"By how many degrees the night is lowered, 0 to 30.","maxLength":32,"type":"string"},"night_to":{"description":"Its end, HH:MM; may be earlier than the start, then it runs over midnight.","maxLength":8,"type":"string"},"off_above":{"description":"Warmer than this outside, no heating is asked for; °C.","maxLength":32,"type":"string"},"return_curve":{"description":"The warmest return allowed by the outdoor temperature; with return_gain.","items":{"$ref":"#/components/schemas/substationCurvePointDTO"},"maxItems":10,"type":"array"},"return_gain":{"description":"Degrees the asked temperature is lowered for each degree of return above the allowed, 0 to 10.","maxLength":32,"type":"string"}},"required":["curve"],"type":"object"},"substationPublishRequest":{"properties":{"revision":{"description":"The revision of the draft that was read.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"}},"required":["revision"],"type":"object"},"substationReportDTO":{"properties":{"building_id":{"description":"Its building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"Its code.","type":"string"},"deviations":{"description":"Deviation incidents that were open in the period.","items":{"$ref":"#/components/schemas/substationReportDeviationDTO"},"type":"array"},"deviations_hidden":{"description":"The person may not see the building's incidents.","type":"boolean"},"differences":{"description":"Supply minus return temperature where one piece of equipment has both (values with the keys t_supply and t_return).","items":{"$ref":"#/components/schemas/substationReportDifferenceDTO"},"type":"array"},"end":{"description":"End of the period, or the moment of the report.","format":"date-time","type":"string"},"from":{"description":"First day.","type":"string"},"hours":{"description":"Hours of the period that have passed.","format":"int64","type":"integer"},"makeup_incomplete":{"description":"That total misses something.","type":"boolean"},"makeup_unit":{"description":"Its unit.","type":"string"},"makeup_volume":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Water taken by the water meters of make-up circuits; omitted: none is measured."},"name":{"description":"The substation.","type":"string"},"points":{"description":"The values that are measured or have limits.","items":{"$ref":"#/components/schemas/substationReportPointDTO"},"type":"array"},"published_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the version the report speaks of was published."},"start":{"description":"Beginning of the period.","format":"date-time","type":"string"},"timezone":{"description":"The calendar the days are of.","type":"string"},"to":{"description":"Last day.","type":"string"},"version":{"description":"The version in force: its equipment, names and limits are what the report uses for the whole period.","format":"int64","type":"integer"}},"required":["name","building_id","from","to","timezone","start","end","version","hours","points","differences","deviations"],"type":"object"},"substationReportDeviationDTO":{"properties":{"first":{"description":"The first time in the period.","format":"date-time","type":"string"},"incident_id":{"description":"The incident.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"node_name":{"description":"The piece of equipment, as the version in force names it.","type":"string"},"ongoing":{"description":"It has not ended.","type":"boolean"},"point_name":{"description":"The value.","type":"string"},"seconds":{"description":"Time within the period from a report until the value was back or the incident was resolved.","format":"int64","type":"integer"},"severity":{"description":"Severity.","enum":["info","warning","critical"],"type":"string"},"state":{"description":"State of the incident now.","enum":["open","acknowledged","resolved","closed"],"type":"string"},"times":{"description":"How many separate times.","format":"int64","type":"integer"},"title":{"description":"Its title.","type":"string"}},"required":["incident_id","title","severity","state","first","times","seconds"],"type":"object"},"substationReportDifferenceDTO":{"properties":{"average":{"description":"The mean over those hours.","type":"string"},"hours":{"description":"Hours that have both temperatures.","format":"int64","type":"integer"},"max":{"description":"The greatest.","type":"string"},"min":{"description":"The smallest difference of the hourly means, supply minus return.","type":"string"},"node":{"description":"Key of the piece of equipment.","type":"string"},"node_name":{"description":"Its name.","type":"string"},"unit":{"description":"Unit of the temperatures.","type":"string"}},"required":["node","node_name","hours","min","max","average"],"type":"object"},"substationReportPointDTO":{"properties":{"average":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The mean of the readings, not weighted by time."},"before_binding":{"description":"Readings from before the instrument was bound are included.","type":"boolean"},"bound_from":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the first instrument counted here was bound."},"by_weather":{"description":"The limits follow the weather and were told hour by hour.","type":"boolean"},"circuit":{"description":"Name of its circuit.","type":"string"},"circuit_kind":{"description":"Kind of that circuit.","type":"string"},"consumption":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"For a running total: how much it went up. The first hour counts from the reading before it."},"counter":{"description":"The channel is a running total.","type":"boolean"},"devices":{"description":"Names of the devices that measured it.","items":{"type":"string"},"type":"array"},"hidden":{"description":"Part of the period was measured by a device the person is not shown.","type":"boolean"},"hours":{"description":"Hours of the period that have a good reading.","format":"int64","type":"integer"},"hours_compared":{"anyOf":[{"format":"int64","type":"integer"},{"type":"null"}],"description":"By the weather: the hours in which the limits could be told (the outdoor temperature known, in season)."},"hours_outside":{"anyOf":[{"format":"int64","type":"integer"},{"type":"null"}],"description":"Hours in which some reading was outside the limits; omitted: nothing to compare."},"incomplete":{"description":"The total misses something: no earlier reading to start from, or a counter that went down.","type":"boolean"},"limit_max":{"description":"The project's highest acceptable value.","type":"string"},"limit_min":{"description":"The project's lowest acceptable value.","type":"string"},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The highest reading."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The lowest reading."},"node":{"description":"Key of the piece of equipment.","type":"string"},"node_name":{"description":"Its name.","type":"string"},"point":{"description":"Key of its value.","type":"string"},"point_name":{"description":"Name of the value.","type":"string"},"quantity":{"description":"What it measures.","type":"string"},"unit":{"description":"Unit of the readings; of the project when there are none.","type":"string"},"unit_changed":{"description":"An instrument with another unit measured part of the period, which is left out.","type":"boolean"},"unit_differs":{"description":"The project's unit is not the readings', so the limits were not compared.","type":"boolean"}},"required":["node","node_name","point","point_name","quantity","hours","devices"],"type":"object"},"substationSchemeDTO":{"properties":{"circuits":{"description":"Circuits, up to 20.","items":{"$ref":"#/components/schemas/substationCircuitDTO"},"type":"array"},"links":{"description":"Pipes and signal lines, up to 400.","items":{"$ref":"#/components/schemas/substationLinkDTO"},"type":"array"},"nodes":{"description":"Equipment, up to 200 pieces and 500 values in all.","items":{"$ref":"#/components/schemas/substationNodeDTO"},"type":"array"},"notation":{"description":"The set of symbols the drawing is shown with; omitted: base. Changes the picture only.","enum":["base","ua","pl","blocks"],"type":"string"}},"required":["circuits","nodes","links"],"type":"object"},"substationSchemeVersionDTO":{"properties":{"scheme":{"$ref":"#/components/schemas/substationSchemeDTO","description":"Its content."},"version":{"$ref":"#/components/schemas/substationVersionDTO","description":"The version."}},"required":["version","scheme"],"type":"object"},"substationSimulatedHourDTO":{"properties":{"at":{"description":"Start of the hour.","format":"date-time","type":"string"},"bounded":{"description":"Held by the lowest, the highest or the step.","type":"boolean"},"forecast":{"description":"The hour is ahead: the weather is a forecast.","type":"boolean"},"limited":{"description":"Lowered because the return was too warm.","type":"boolean"},"night":{"description":"Lowered for the night.","type":"boolean"},"off":{"description":"Too warm outside to heat.","type":"boolean"},"outdoor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Outdoor temperature, the mean of the last three hours; omitted: not known."},"return":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The measured return temperature, the hour's average."},"supply":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The measured supply temperature, the hour's average."},"target":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the rule would have asked; omitted: no weather, or too warm to heat."}},"required":["at"],"type":"object"},"substationSimulationDTO":{"properties":{"calculated":{"description":"Hours with an asked temperature.","format":"int64","type":"integer"},"colder":{"description":"Compared hours in which it was more than 3 degrees colder.","format":"int64","type":"integer"},"compared":{"description":"Past hours with both an asked and a measured supply temperature.","format":"int64","type":"integer"},"hours":{"description":"Hour by hour.","items":{"$ref":"#/components/schemas/substationSimulatedHourDTO"},"type":"array"},"limited":{"description":"Hours the return limit lowered.","format":"int64","type":"integer"},"mean_difference":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Measured minus asked, the mean over the compared hours."},"no_weather_hours":{"description":"Hours without an outdoor temperature.","format":"int64","type":"integer"},"off_hours":{"description":"Hours too warm to heat.","format":"int64","type":"integer"},"warmer":{"description":"Compared hours in which the measured supply was more than 3 degrees warmer than asked.","format":"int64","type":"integer"},"zone":{"description":"The building's time zone.","type":"string"}},"required":["zone","hours","calculated","off_hours","no_weather_hours","compared","limited","warmer","colder"],"type":"object"},"substationSimulationRequest":{"properties":{"ahead_hours":{"description":"How many hours of forecast after now, 0 to 72.","format":"int64","maximum":72,"minimum":0,"type":"integer"},"days":{"description":"How many days before now, 1 to 31.","format":"int64","maximum":31,"minimum":1,"type":"integer"},"policy":{"$ref":"#/components/schemas/substationPolicyDTO","description":"The rule to try."},"return_value":{"anyOf":[{"$ref":"#/components/schemas/substationValueRefDTO"},{"type":"null"}],"description":"The value that measures the return; needed by a rule that limits it."},"supply_value":{"anyOf":[{"$ref":"#/components/schemas/substationValueRefDTO"},{"type":"null"}],"description":"The value whose measured supply temperature stands beside the rule."}},"required":["policy","days","ahead_hours"],"type":"object"},"substationStateDTO":{"properties":{"points":{"description":"Every value of that version, in the order of the scheme.","items":{"$ref":"#/components/schemas/substationPointStateDTO"},"type":"array"},"scheme":{"$ref":"#/components/schemas/substationSchemeVersionDTO","description":"The version in force."}},"required":["scheme","points"],"type":"object"},"substationUpdateRequest":{"properties":{"code":{"description":"The organisation's own number of it.","maxLength":40,"type":"string"},"name":{"description":"Name.","maxLength":160,"type":"string"},"revision":{"description":"The revision that was read.","format":"int64","maximum":1000000000,"minimum":0,"type":"integer"},"status":{"description":"Whether it is in use.","enum":["active","archived"],"type":"string"},"technical_room_id":{"description":"A technical room of the building; omitted: none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["name","status","revision"],"type":"object"},"substationUseDTO":{"properties":{"building_id":{"description":"Its building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"id":{"description":"The substation, the piece of equipment and the value, joined; unique in the list.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"metric":{"description":"The channel of the device that measures it.","type":"string"},"node":{"description":"Key of the piece of equipment.","type":"string"},"node_name":{"description":"Its name in the scheme.","type":"string"},"point":{"description":"Key of its value.","type":"string"},"point_name":{"description":"Its name.","type":"string"},"substation_id":{"description":"Substation.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"substation_name":{"description":"Its name.","type":"string"}},"required":["id","substation_id","substation_name","building_id","node","node_name","point","point_name","metric"],"type":"object"},"substationValueRefDTO":{"properties":{"node":{"description":"Key of the piece of equipment.","maxLength":64,"type":"string"},"point":{"description":"Key of its value.","maxLength":64,"type":"string"}},"required":["node","point"],"type":"object"},"substationVersionDTO":{"properties":{"created_at":{"description":"When the version was started.","format":"date-time","type":"string"},"designer":{"description":"Who made that project.","type":"string"},"note":{"description":"What changed and why.","type":"string"},"number":{"description":"Number of the version.","format":"int64","type":"integer"},"project":{"description":"The project document the version transcribes, with its revision.","type":"string"},"published_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it came into force."},"revision":{"description":"Send it back to change, discard or publish the draft.","format":"int64","type":"integer"},"state":{"description":"A draft changes; a published version never does.","enum":["draft","published","superseded"],"type":"string"},"updated_at":{"description":"When it last changed.","format":"date-time","type":"string"}},"required":["created_at","updated_at","state","number","revision"],"type":"object"},"substationWatchDTO":{"properties":{"after_minutes":{"description":"How long the readings must stay outside before the incident is opened, 0 to 1440 minutes.","format":"int64","maximum":100000,"minimum":0,"type":"integer"},"hysteresis":{"description":"How far back inside the limit a value must come, in its unit, to count as back; omitted: at the limit.","maxLength":32,"type":"string"},"severity":{"description":"Severity of the incident.","enum":["info","warning","critical"],"type":"string"}},"required":["severity","after_minutes"],"type":"object"},"suggestionDTO":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"free":{"description":"The package costs nothing.","type":"boolean"},"net_monthly_minor":{"description":"Value for the net monthly minor field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"},"title":{"description":"Short human-readable title for the event, notice, or resource.","type":"string"}},"required":["code","title","net_monthly_minor","free"],"type":"object"},"supplyEndDTO":{"properties":{"building_id":{"description":"Building at this end.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"building_name":{"description":"Name of that building.","type":"string"},"system_id":{"description":"System at this end.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"system_name":{"description":"Name of that system.","type":"string"}},"required":["building_id","building_name","system_id","system_name"],"type":"object"},"supplyLinkDTO":{"properties":{"code":{"description":"Short code of the network.","type":"string"},"id":{"description":"Utility network that is this link.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"What is supplied.","enum":["heating,hot_water,water,electricity,gas,ventilation,cooling,other"],"type":"string"},"members":{"description":"The supplied buildings and systems.","items":{"$ref":"#/components/schemas/supplyEndDTO"},"type":"array"},"name":{"description":"Name of the network.","type":"string"},"revision":{"description":"Network revision used for optimistic concurrency.","format":"int64","type":"integer"},"source":{"$ref":"#/components/schemas/supplyEndDTO","description":"The supplying building and system."}},"required":["id","code","name","kind","source","members","revision"],"type":"object"},"supplySystemDTO":{"properties":{"building_id":{"description":"Building that has the system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"building_name":{"description":"Name of that building.","type":"string"},"code":{"description":"Short code of the system.","type":"string"},"id":{"description":"System identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"What the system supplies.","enum":["heating,hot_water,water,electricity,gas,ventilation,cooling,other"],"type":"string"},"name":{"description":"Name of the system.","type":"string"}},"required":["id","building_id","building_name","name","code","kind"],"type":"object"},"supportDTO":{"properties":{"grant_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"issued_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","format":"date-time","type":"string"},"issued_by":{"description":"Value for the issued by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"org_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"purpose":{"description":"Value for the purpose field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"revoked_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."},"staff_name":{"description":"Value for the staff name field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"staff_person_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"status":{"description":"Current lifecycle or processing status; the schema lists allowed values when finite.","type":"string"},"valid_to":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of the validity period in RFC 3339 date-time format."}},"required":["grant_id","org_id","staff_person_id","staff_name","purpose","issued_by","issued_at","valid_to","status"],"type":"object"},"supportedCommandDTO":{"properties":{"commands":{"description":"Value for the commands field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/commandInfoDTO"},"type":"array"},"declared":{"description":"Value for the declared field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"effect":{"description":"Value for the effect field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"key":{"description":"Stable machine-readable key for this value or configuration entry.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"pull":{"description":"Value for the pull field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"},"writable":{"description":"Value for the writable field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"}},"required":["key","name","effect","writable","declared","pull","commands"],"type":"object"},"suspectDTO":{"properties":{"edges":{"description":"The pieces of pipe to check.","items":{"$ref":"#/components/schemas/edgeDTO"},"type":"array"},"from":{"description":"Where the stretch begins; omitted: the source.","type":"string"},"low":{"description":"The first points beyond it that read low.","items":{"type":"string"},"type":"array"},"max_drop_percent":{"description":"The greatest drop beyond it.","format":"double","type":"number"}},"required":["low","edges","max_drop_percent"],"type":"object"},"tagCountDTO":{"properties":{"count":{"description":"How many objects the caller may see wear it.","format":"int64","type":"integer"},"tag":{"description":"The word.","type":"string"}},"required":["tag","count"],"type":"object"},"taggedObjectDTO":{"properties":{"building_id":{"description":"Its building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"detail":{"description":"Address of a building, serial of a device, building of a part, system or room.","type":"string"},"kind":{"description":"What the object is.","enum":["building","part","system","room","device"],"type":"string"},"name":{"description":"Name.","type":"string"},"object_id":{"description":"Object.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"tags":{"description":"All tags the object wears.","items":{"type":"string"},"type":"array"}},"required":["kind","object_id","building_id","name","detail","tags"],"type":"object"},"targetChannelDTO":{"properties":{"declared":{"description":"The model lists what the channel takes.","type":"boolean"},"effect":{"description":"Whether a repeat is safe.","enum":["idempotent","non_idempotent"],"type":"string"},"key":{"description":"Channel.","type":"string"},"name":{"description":"Its name.","type":"string"},"options":{"description":"Named commands or a numeric range; empty: any value the driver accepts.","items":{"$ref":"#/components/schemas/commandOptionDTO"},"type":"array"},"pull":{"description":"The device fetches the command with its next message.","type":"boolean"},"unit":{"description":"Unit of a numeric value.","type":"string"},"writable":{"description":"A control proof is recorded, so the channel may be commanded.","type":"boolean"}},"required":["key","name","unit","effect","writable","declared","pull","options"],"type":"object"},"targetDTO":{"properties":{"building_id":{"description":"The building; needed for a part, a technical room, a system and premises.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"What is labelled.","enum":["building","part","room","system","premises","device","substation","line"],"type":"string"},"object_id":{"description":"The object.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["kind","object_id"],"type":"object"},"targetDeviceDTO":{"properties":{"channels":{"description":"The channels that take commands.","items":{"$ref":"#/components/schemas/targetChannelDTO"},"type":"array"},"device_id":{"description":"Device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"held":{"description":"Empty, or the code of what keeps a group from commanding it now (manual_control, out_of_service).","type":"string"},"name":{"description":"Its name.","type":"string"}},"required":["device_id","name","held","channels"],"type":"object"},"tariffDTO":{"properties":{"base_fee":{"description":"Value for the base fee field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"basis":{"description":"Value for the basis field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"basis_date":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format."},"basis_number":{"description":"Value for the basis number field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"category":{"description":"Value for the category field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"currency":{"description":"Currency code used for monetary amounts; the operation contract specifies the applicable currency standard.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"price":{"description":"Price or rate; the operation contract defines its currency, unit, and tax treatment.","type":"string","x-one-of":"pricing"},"price_includes_vat":{"description":"Value for the price includes vat field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"boolean"},"resource":{"description":"Value for the resource field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"tiers":{"description":"Value for the tiers field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/tierDTO"},"type":"array","x-one-of":"pricing"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"},"valid_from":{"description":"A calendar day in YYYY-MM-DD format.","format":"date","type":"string"},"valid_until":{"anyOf":[{"format":"date","type":"string"},{"type":"null"}],"description":"A calendar day in YYYY-MM-DD format.","x-not-before":"valid_from"},"vat_percent":{"description":"Percentage value; allowed range and precision, if constrained, are specified in the schema.","type":"string"},"zones":{"description":"Value for the zones field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/zoneDTO"},"type":"array","x-one-of":"pricing"}},"required":["id","code","resource","unit","price","base_fee","currency","vat_percent","price_includes_vat","valid_from","valid_until","basis"],"type":"object"},"taskStepDTO":{"properties":{"asked":{"description":"The step is asked for the answers given so far (a step with a condition that does not hold is not).","type":"boolean"},"comment":{"description":"The explanation of a deviation, or why the step does not apply.","type":"string"},"deviation":{"description":"The finding is outside the norm or one of the answers marked as a deviation.","type":"boolean"},"done_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the result was written."},"done_by":{"description":"Who wrote the result (person).","type":"string"},"done_by_name":{"description":"Their name.","type":"string"},"expect":{"description":"The answer a text step should find; a different one is a deviation. May hold {serial}, {device}, {model}, {building}, {address}, as the title and hint may.","maxLength":200,"type":"string"},"hint":{"description":"How, or what is right.","maxLength":500,"type":"string"},"id":{"description":"Step.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"key":{"description":"Names the step within the checklist, for conditions of later ones (a-z and digits); given when omitted.","maxLength":12,"type":"string"},"kind":{"description":"What the step asks: a tick, a number, one of the answers or a few words.","enum":["check","number","choice","text"],"type":"string"},"max":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Upper bound of the norm of a number."},"min":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Lower bound of the norm of a number (a decimal number as text)."},"options":{"description":"The answers of a choice, 2 to 12.","items":{"$ref":"#/components/schemas/optionDTO"},"type":"array"},"photo_required":{"description":"A step that is done needs a photo attached to it.","type":"boolean"},"photos":{"description":"Files attached to the step.","format":"int64","type":"integer"},"position":{"description":"Place in the checklist, from 1.","format":"int64","type":"integer"},"required":{"description":"The work cannot be reported until the step is settled (done or not applicable).","type":"boolean"},"state":{"description":"Where it stands: pending, done, or na (does not apply).","enum":["pending","done","na"],"type":"string"},"title":{"description":"What to do or look at.","maxLength":200,"minLength":1,"type":"string"},"unit":{"description":"Unit of a number.","maxLength":16,"type":"string"},"value":{"description":"What was found: the number, the answer or the words.","type":"string"},"when":{"anyOf":[{"$ref":"#/components/schemas/conditionDTO"},{"type":"null"}],"description":"The step is asked only if an earlier one was answered so; omitted: always."}},"required":["title","kind","id","state","position","photos","asked"],"type":"object"},"technicalRoomAttributeDTO":{"properties":{"code":{"description":"Stable machine-readable attribute definition code.","type":"string"},"group_code":{"description":"Group identifier used to organize related attributes in the UI.","type":"string"},"label_key":{"description":"Localization key for the displayed attribute label.","type":"string"},"maximum_value":{"description":"Inclusive upper decimal bound when configured.","type":"string"},"minimum_value":{"description":"Inclusive lower decimal bound when configured.","type":"string"},"object_kind":{"description":"Asset object category to which this definition applies.","type":"string"},"options":{"description":"Allowed enum codes when value_kind is enum; omitted for other kinds.","items":{"type":"string"},"type":"array"},"revision":{"description":"Current value revision; zero means no value is recorded.","format":"int64","minimum":0,"type":"integer"},"unit":{"description":"Measurement unit for decimal values, when applicable.","type":"string"},"updated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Time the value was last changed, in RFC 3339 UTC format; omitted when unset."},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Expiry time of the current verification, or null when no expiry was set."},"value":{"$ref":"#/components/schemas/JSONValue","description":"Current scalar JSON value matching value_kind; null means no value has been recorded."},"value_kind":{"description":"Server-defined scalar type: text, boolean, decimal, or enum.","enum":["text","boolean","decimal","enum"],"type":"string"},"verified_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Time the current value was verified, or null when unverified."},"verified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Identifier of the person who verified the current value, or null when unverified."}},"required":["code","object_kind","group_code","label_key","value_kind","value","revision","verified_at","verified_by","valid_until"],"type":"object"},"technicalRoomAttributeDTOVariant":{"properties":{"code":{"description":"Stable machine-readable attribute key from the attribute catalogue.","type":"string"},"group_code":{"description":"Attribute group used to organize related room details.","type":"string"},"label_key":{"description":"Translation key used to render the localized attribute label.","type":"string"},"maximum_value":{"description":"Inclusive upper bound for numeric values, when configured.","type":"string"},"minimum_value":{"description":"Inclusive lower bound for numeric values, when configured.","type":"string"},"object_kind":{"description":"Kind of object this attribute describes.","type":"string"},"options":{"description":"Allowed enum codes, when value_kind is enum.","items":{"type":"string"},"type":"array"},"revision":{"description":"Current value revision; zero means there is no recorded value.","format":"int64","minimum":0,"type":"integer"},"unit":{"description":"Measurement unit for numeric values, when applicable.","type":"string"},"updated_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Time the value was last changed, in UTC; omitted when unset."},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Time after which verification is considered expired, or null for no expiry."},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}],"description":"Current scalar JSON value; null means no value has been recorded."},"value_kind":{"description":"Expected scalar type: text, number, boolean, or enum.","enum":["text","boolean","decimal","enum"],"type":"string"},"verified_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Time the current value was verified, or null when unverified."},"verified_by":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Identifier of the person who verified the current value, or null."}},"required":["code","object_kind","group_code","label_key","value_kind","value","revision","verified_at","verified_by","valid_until"],"type":"object"},"technicalRoomCreateRequest":{"properties":{"code":{"description":"Unique short room code within the building, up to 64 characters; made from the building code (for example B19-R1) when omitted.","maxLength":64,"minLength":1,"type":"string"},"level_code":{"description":"Optional floor/level label such as B1, G, or RF, up to 32 characters.","maxLength":32,"type":"string"},"location_kind":{"description":"Physical room placement category from the technical-room kind catalogue.","type":"string"},"name":{"description":"Operator-facing technical-room name, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"part_id":{"description":"Optional entrance, wing, or section containing the physical room.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["location_kind"],"type":"object"},"technicalRoomCreateRequestVariant":{"properties":{"code":{"description":"Unique short code for this technical room within the building.","maxLength":64,"minLength":1,"type":"string"},"level_code":{"description":"Optional floor or level label such as B1, G, or RF.","maxLength":32,"type":"string"},"location_kind":{"description":"Physical room location category.","enum":["floor_cabinet","other","outdoor_pad","premise","roof_area","room","shaft_or_riser"],"type":"string"},"name":{"description":"Operator-facing room name, such as Boiler room or Roof plant room.","maxLength":255,"minLength":1,"type":"string"},"part_id":{"description":"Optional entrance, wing, or section that contains this room.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["location_kind"],"type":"object"},"technicalRoomDTO":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive time in RFC 3339 UTC format; omitted while active."},"attributes_filled":{"description":"How many of them this room has a value for; set in the list of rooms.","format":"int64","minimum":0,"type":"integer"},"attributes_total":{"description":"How many attributes a technical room can have; set in the list of rooms.","format":"int64","minimum":0,"type":"integer"},"building_id":{"description":"Building that owns this room.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"Unique short room code within the building, required and up to 64 characters.","maxLength":64,"minLength":1,"type":"string"},"created_at":{"description":"Creation time in RFC 3339 UTC format.","format":"date-time","type":"string"},"id":{"description":"Stable technical-room identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"level_code":{"description":"Optional floor/level label such as B1, G, or RF, up to 32 characters.","maxLength":32,"type":"string"},"location_kind":{"description":"Physical placement category, for example room, roof area, outdoor pad, shaft/riser, floor cabinet, or premise.","type":"string"},"name":{"description":"Operator-facing room name, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"part_id":{"description":"Building part physically containing this room, when applicable.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Room revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"}},"required":["id","building_id","code","name","location_kind","revision","attributes_total","attributes_filled","created_at"],"type":"object"},"technicalRoomDTOVariant":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive time in UTC; omitted while active."},"attributes_filled":{"description":"How many of them this room has a value for; set in the list of rooms.","format":"int64","minimum":0,"type":"integer"},"attributes_total":{"description":"How many attributes a technical room can have; set in the list of rooms.","format":"int64","minimum":0,"type":"integer"},"building_id":{"description":"Building that owns this room.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"code":{"description":"Unique short room code within the building.","maxLength":64,"minLength":1,"type":"string"},"created_at":{"description":"Creation time in UTC.","format":"date-time","type":"string"},"id":{"description":"Stable identifier of this room.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"level_code":{"description":"Optional floor or level label.","maxLength":32,"type":"string"},"location_kind":{"description":"Physical placement category, such as basement, roof, or shared room.","enum":["floor_cabinet","other","outdoor_pad","premise","roof_area","room","shaft_or_riser"],"type":"string"},"name":{"description":"Operator-facing room name.","maxLength":255,"minLength":1,"type":"string"},"part_id":{"description":"Building part containing the room, when applicable.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"}},"required":["id","building_id","code","name","location_kind","revision","attributes_total","attributes_filled","created_at"],"type":"object"},"technicalRoomRestoreRequest":{"properties":{"revision":{"description":"Current archived-room revision shown to the caller; required to reject stale restoration.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"},"technicalRoomUpdateRequest":{"properties":{"code":{"description":"Unique short room code within the building, up to 64 characters; made from the building code (for example B19-R1) when omitted.","maxLength":64,"minLength":1,"type":"string"},"level_code":{"description":"Optional floor/level label such as B1, G, or RF, up to 32 characters.","maxLength":32,"type":"string"},"location_kind":{"description":"Physical room placement category from the technical-room kind catalogue.","type":"string"},"name":{"description":"Operator-facing technical-room name, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"part_id":{"description":"Optional entrance, wing, or section containing the physical room.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Current room revision shown to the caller; required for optimistic concurrency.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["location_kind","revision"],"type":"object"},"technicalRoomUpdateRequestVariant":{"properties":{"code":{"description":"Unique short code for this technical room within the building.","maxLength":64,"minLength":1,"type":"string"},"level_code":{"description":"Optional floor or level label such as B1, G, or RF.","maxLength":32,"type":"string"},"location_kind":{"description":"Physical room location category.","enum":["floor_cabinet","other","outdoor_pad","premise","roof_area","room","shaft_or_riser"],"type":"string"},"name":{"description":"Operator-facing room name, such as Boiler room or Roof plant room.","maxLength":255,"minLength":1,"type":"string"},"part_id":{"description":"Optional entrance, wing, or section that contains this room.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"revision":{"description":"Revision of the room currently shown to the caller; used for optimistic concurrency.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["location_kind","revision"],"type":"object"},"telegramBindDTO":{"properties":{"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"command":{"description":"Value for the command field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"expires_at":{"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema.","type":"string"}},"required":["code","expires_at","command"],"type":"object"},"templateDTO":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"columns":{"description":"Value for the columns field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ColumnSpec"},"type":"array"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"created_by":{"description":"Value for the created by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["created_at","id","building_id","name","kind","created_by","columns","version"],"type":"object"},"templateDTO2":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it was taken out of use."},"created_at":{"description":"Created.","format":"date-time","type":"string"},"description":{"description":"What it is; becomes the instructions of a task made from it.","type":"string"},"due_days":{"anyOf":[{"format":"int64","type":"integer"},{"type":"null"}],"description":"Days from the creation of a task to its deadline, when the author sets none."},"id":{"description":"Template.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Name of the kind of work.","type":"string"},"priority":{"description":"Priority of a task made from it.","enum":["normal","high","urgent"],"type":"string"},"revision":{"description":"Revision, to be sent with a change.","format":"int64","type":"integer"},"steps":{"description":"The checklist.","items":{"$ref":"#/components/schemas/stepDefDTO"},"type":"array"},"updated_at":{"description":"Last change.","format":"date-time","type":"string"}},"required":["created_at","updated_at","id","name","description","priority","steps","revision"],"type":"object"},"templateRequest":{"properties":{"building_id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"columns":{"description":"Value for the columns field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ColumnSpec"},"type":"array"},"kind":{"description":"Resource or operation category; the schema lists allowed values when finite.","maxLength":32,"type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":128,"type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","maxLength":4,"type":"string"}},"required":["building_id","name","kind","period","columns"],"type":"object"},"templateRequest2":{"properties":{"description":{"description":"What it is.","maxLength":500,"type":"string"},"due_days":{"anyOf":[{"format":"int64","maximum":365,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Days to the deadline of a task made from it, 1 to 365."},"name":{"description":"Name of the kind of work, unique among the templates in use.","maxLength":120,"minLength":1,"type":"string"},"priority":{"description":"Priority of a task made from it; normal when omitted.","enum":["normal","high","urgent"],"type":"string"},"revision":{"description":"The revision the form was loaded with (for a change).","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"steps":{"description":"The checklist, 1 to 60 steps.","items":{"$ref":"#/components/schemas/stepDefDTO"},"type":"array"}},"required":["name","steps"],"type":"object"},"templateVersionDTO":{"properties":{"columns":{"description":"Value for the columns field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/ColumnSpec"},"type":"array"},"created_at":{"description":"Creation timestamp in RFC 3339 date-time format.","format":"date-time","type":"string"},"edited_by":{"description":"Value for the edited by field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"version":{"description":"Value for the version field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"int64","type":"integer"}},"required":["created_at","name","edited_by","columns","version"],"type":"object"},"templatesDTO":{"properties":{"templates":{"description":"The templates that were added.","items":{"$ref":"#/components/schemas/templateDTO2"},"type":"array"}},"required":["templates"],"type":"object"},"tierDTO":{"properties":{"price":{"description":"Price or rate; the operation contract defines its currency, unit, and tax treatment.","maxLength":32,"type":"string"},"up_to":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Timestamp or time boundary in RFC 3339 date-time format; nullability and omission are defined by the schema."}},"required":["price"],"type":"object"},"tokenPasswordRequest":{"properties":{"password":{"description":"Secret credential supplied for authentication; never returned by the API.","maxLength":1024,"type":"string"},"token":{"description":"Secret or bearer token; treat it as credential material and do not expose it in logs.","maxLength":512,"type":"string"}},"required":["token","password"],"type":"object"},"tokenRequest":{"properties":{"token":{"description":"Secret or bearer token; treat it as credential material and do not expose it in logs.","maxLength":512,"type":"string"}},"required":["token"],"type":"object"},"transitionDTO":{"properties":{"at":{"description":"Value for the at field; the schema specifies its JSON type, nullability, format, and any declared constraints.","format":"date-time","type":"string"},"cause":{"description":"Value for the cause field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"code":{"description":"Stable code used to identify or classify this resource.","type":"string"},"from":{"description":"Value for the from field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"to":{"description":"Value for the to field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"}},"required":["at","from","to"],"type":"object"},"updateCommandScheduleRequest":{"properties":{"name":{"description":"What people call the schedule.","maxLength":128,"minLength":1,"type":"string"},"points":{"description":"The moments of one week; they replace the stored ones.","items":{"$ref":"#/components/schemas/commandPointDTO"},"maxItems":168,"minItems":1,"type":"array"},"revision":{"description":"The revision being changed; a stale one is refused.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"valid_minutes":{"description":"How long a command waits for its device after its moment; 15 when omitted.","format":"int64","maximum":120,"minimum":5,"type":"integer"}},"required":["name","points","revision"],"type":"object"},"updateDeviceRequest":{"properties":{"name":{"description":"Operator-facing device name, required and up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"primary_address":{"anyOf":[{"format":"int64","maximum":255,"minimum":0,"type":"integer"},{"type":"null"}],"description":"Optional numeric protocol address. API range is 0–255; the selected protocol may require a narrower range or require it."},"revision":{"description":"Current device revision shown to the caller; required to reject stale concurrent edits.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"secondary_address":{"description":"Optional protocol-specific secondary address; validity depends on the profile protocol.","pattern":"^[0-9A-Fa-f]{8}$","type":"string"},"serial":{"description":"Optional device serial number, unique among live devices in the organization when supplied, up to 64 characters.","maxLength":64,"type":"string"}},"required":["name","revision"],"type":"object"},"updatePathRequest":{"properties":{"endpoint":{"description":"TCP host:port endpoint; inbound paths keep their registered endpoint.","maxLength":255,"minLength":1,"type":"string"},"name":{"description":"Operator-facing name of the communication path, required and up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"revision":{"description":"Current path revision shown to the caller; required to reject stale concurrent edits.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["name","endpoint","revision"],"type":"object"},"updateProfileRequest":{"properties":{"derived":{"description":"Complete replacement calculated metrics; expressions must resolve without cycles, up to 64 metrics.","items":{"$ref":"#/components/schemas/derivedDTO"},"maxItems":64,"type":"array"},"dictionaries":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Complete replacement dictionary definitions keyed by alias.","type":"object"},"items":{"description":"Complete replacement list of raw metric definitions; 1 to 512 items with unique stable keys.","items":{"$ref":"#/components/schemas/itemDTO"},"maxItems":512,"minItems":1,"type":"array"},"name":{"description":"Human-readable device model/profile name; required, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"protocol":{"description":"Protocol driver identifier. Must match the immutable protocol of this draft profile.","type":"string"},"revision":{"description":"Current draft profile revision shown to the caller; required to reject stale concurrent edits.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"variant":{"description":"Protocol-specific transport/framing variant supported by the selected protocol.","maxLength":32,"type":"string"}},"required":["name","protocol","items","revision"],"type":"object"},"updateProfileRequestVariant":{"properties":{"derived":{"description":"Complete replacement calculated metrics; expressions must resolve without cycles, up to 64 metrics.","items":{"$ref":"#/components/schemas/derivedDTO"},"maxItems":64,"type":"array"},"dictionaries":{"additionalProperties":{"$ref":"#/components/schemas/JSONValue"},"description":"Complete replacement dictionary definitions keyed by alias.","type":"object"},"items":{"description":"Complete replacement list of raw metric definitions; 1 to 512 items with unique stable keys.","items":{"$ref":"#/components/schemas/itemDTO"},"maxItems":512,"minItems":1,"type":"array"},"name":{"description":"Human-readable device model/profile name; required, up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"protocol":{"description":"Protocol driver identifier. Must match the immutable protocol of this draft profile.","enum":["axis-skm01","custom","dlms","iec62056-21","mbus","modbus"],"type":"string"},"revision":{"description":"Current draft profile revision shown to the caller; required to reject stale concurrent edits.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"variant":{"description":"Protocol-specific framing/transport variant. Select one of the values listed for the selected protocol; the server validates the pair.","type":"string","x-supported-values-by-protocol":{"axis-skm01":["standard"],"custom":["json","form"],"dlms":["hdlc","wrapper"],"iec62056-21":["readout","push"],"mbus":["wired-primary","wired-secondary"],"modbus":["rtu","tcp","ascii"]}}},"required":["name","protocol","items","revision"],"type":"object"},"updateRequest":{"properties":{"city":{"description":"City or locality, required and up to 128 characters.","maxLength":128,"minLength":1,"type":"string"},"code":{"description":"Unique organization-facing building code, up to 64 characters; made from the house number of the street when omitted.","maxLength":64,"minLength":1,"type":"string"},"country":{"anyOf":[{"maxLength":2,"minLength":2,"pattern":"^[A-Z]{2}$","type":"string"},{"const":"","type":"string"}],"description":"Uppercase ISO 3166-1 alpha-2 country code; omitted or empty defaults to UA on creation and cannot be changed later."},"name":{"description":"Building display name, up to 255 characters; the street when omitted.","maxLength":255,"minLength":1,"type":"string"},"postal_code":{"description":"Postal or ZIP code, up to 16 characters.","maxLength":16,"type":"string"},"revision":{"description":"Current building revision shown to the caller; required for optimistic concurrency.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"street":{"description":"Street address, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"timezone":{"description":"Valid IANA time-zone identifier; omitted or empty defaults to Europe/Kyiv.","type":"string"},"use_kind":{"description":"Country-specific building-use-profile code. Defaults to multi_apartment_residential on creation; the selected profile determines the initial building structure.","type":"string"}},"required":["city","street","revision"],"type":"object"},"usageDTO":{"properties":{"active_devices":{"description":"Devices working.","format":"int64","type":"integer"},"collection_allowed":{"description":"False: no new data is collected or accepted.","type":"boolean"},"devices":{"description":"Devices that are not decommissioned.","format":"int64","type":"integer"},"ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of the term; omitted for an open one."},"features":{"description":"Capabilities the package includes.","items":{"type":"string"},"type":"array"},"grace_ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of the grace after a term."},"history_months":{"description":"How many months of readings are kept for reading.","format":"int64","type":"integer"},"max_devices":{"description":"Devices that may work at once.","format":"int64","type":"integer"},"min_interval_seconds":{"description":"Shortest polling interval.","format":"int64","type":"integer"},"notices":{"description":"What to know now, the most pressing first.","items":{"$ref":"#/components/schemas/usageNoticeDTO"},"type":"array"},"reads_reset_at":{"description":"When the day's allowance of unscheduled reads starts again.","format":"date-time","type":"string"},"status":{"description":"State of the package: free, active, grace or suspended.","enum":["free","active","grace","suspended"],"type":"string"},"suspended_devices":{"description":"Devices the platform paused because the package covers fewer.","format":"int64","type":"integer"},"title":{"description":"Name of the package.","type":"string"},"trial_ends_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"End of a trial in progress."},"unscheduled_reads_per_day":{"description":"Reads on request per day; 0: no limit.","format":"int64","type":"integer"},"unscheduled_reads_taken":{"description":"Taken today, those in progress included.","format":"int64","type":"integer"}},"required":["reads_reset_at","title","status","features","notices","max_devices","devices","active_devices","suspended_devices","history_months","min_interval_seconds","unscheduled_reads_per_day","unscheduled_reads_taken","collection_allowed"],"type":"object"},"usageNoticeDTO":{"properties":{"at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The moment the notice is about, when there is one."},"code":{"description":"What it says.","enum":["payment_suspended","package_suspended","grace","term_ending","trial_ending","devices_suspended","devices_full","devices_near","reads_spent","reads_near"],"type":"string"},"severity":{"description":"critical: something is stopped; warning: it will be soon or a limit is reached; info: worth knowing.","enum":["critical","warning","info"],"type":"string"}},"required":["code","severity"],"type":"object"},"utilityNetworkDTO":{"properties":{"code":{"description":"Unique short network code within the source building, up to 64 characters.","maxLength":64,"minLength":1,"type":"string"},"created_at":{"description":"Creation time in RFC 3339 UTC format.","format":"date-time","type":"string"},"id":{"description":"Stable shared-utility network identifier.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Utility type carried by the network; must match the source and consumer system kinds.","type":"string"},"members":{"description":"Consumer building/system pairs served by the source; between 1 and 500 members.","items":{"$ref":"#/components/schemas/utilityNetworkMemberDTO"},"maxItems":500,"minItems":1,"type":"array"},"name":{"description":"Operator-facing network name, up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Network revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"},"source_building_id":{"description":"Building containing the source system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"source_system_id":{"description":"System that provides the utility to the listed member systems.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","source_building_id","source_system_id","code","name","kind","revision","created_at","members"],"type":"object"},"utilityNetworkDTOVariant":{"properties":{"code":{"description":"Unique short network code within its source building.","maxLength":64,"minLength":1,"type":"string"},"created_at":{"description":"Creation time in UTC.","format":"date-time","type":"string"},"id":{"description":"Stable identifier of this shared network.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"Utility type carried by the network.","enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"},"members":{"description":"Systems in buildings served by this network.","items":{"$ref":"#/components/schemas/utilityNetworkMemberDTO"},"maxItems":500,"minItems":1,"type":"array"},"name":{"description":"Operator-facing network name.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Revision used for optimistic concurrency.","format":"int64","minimum":1,"type":"integer"},"source_building_id":{"description":"Building containing the source system.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"source_system_id":{"description":"System providing the shared utility service.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["id","source_building_id","source_system_id","code","name","kind","revision","created_at","members"],"type":"object"},"utilityNetworkMemberDTO":{"properties":{"building_id":{"description":"Building containing a served consumer system; must be in the same organization as the source.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"system_id":{"description":"Consumer system served by the source network; cannot be the source system itself.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["building_id","system_id"],"type":"object"},"utilityNetworkRequest":{"properties":{"code":{"description":"Unique short network code within the source building, required and up to 64 characters.","maxLength":64,"minLength":1,"type":"string"},"kind":{"description":"Utility category from the system-kind catalogue; source and member systems must use the same kind.","type":"string"},"members":{"description":"Consumer building/system pairs served by the source; between 1 and 500 unique members.","items":{"$ref":"#/components/schemas/utilityNetworkMemberDTO"},"maxItems":500,"minItems":1,"type":"array"},"name":{"description":"Operator-facing network name, required and up to 255 characters.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Current network revision shown to the caller; omitted on creation and required on update.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"source_system_id":{"description":"System in the path's source building that provides the utility; this system must be active.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["source_system_id","kind","members"],"type":"object"},"utilityNetworkRequestVariant":{"properties":{"code":{"description":"Unique short code for this shared network.","maxLength":64,"minLength":1,"type":"string"},"kind":{"description":"Utility type carried by the network.","enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"},"members":{"description":"Systems in other buildings that are served by the source system; each member is scoped by both building and system IDs.","items":{"$ref":"#/components/schemas/utilityNetworkMemberDTO"},"maxItems":500,"minItems":1,"type":"array"},"name":{"description":"Operator-facing name of the shared network.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Current network revision shown to the caller; omitted on creation and required on update.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"source_system_id":{"description":"System that represents the source or central plant for this shared utility network.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["source_system_id","kind","members"],"type":"object"},"utilityNetworkRequestVariant2":{"properties":{"code":{"description":"Unique short code for this shared network.","maxLength":64,"minLength":1,"type":"string"},"kind":{"description":"Utility type carried by the network.","enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"},"members":{"description":"Systems in other buildings that are served by the source system; each member is scoped by both building and system IDs.","items":{"$ref":"#/components/schemas/utilityNetworkMemberDTO"},"maxItems":500,"minItems":1,"type":"array"},"name":{"description":"Operator-facing name of the shared network.","maxLength":255,"minLength":1,"type":"string"},"revision":{"description":"Revision of the network currently shown to the caller; used for optimistic concurrency.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"source_system_id":{"description":"System that represents the source or central plant for this shared utility network.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["source_system_id","kind","members"],"type":"object"},"valueRequest":{"properties":{"reason":{"description":"Why.","maxLength":500,"type":"string"},"value":{"description":"What to set.","maxLength":255,"type":"string"}},"required":["value","reason"],"type":"object"},"valuesDTO":{"properties":{"channel":{"$ref":"#/components/schemas/virtualDTO","description":"Value for the channel field; the schema specifies its JSON type, nullability, format, and any declared constraints."},"period":{"description":"Reporting or billing period; the operation contract defines its format and boundaries.","type":"string"},"points":{"description":"Value for the points field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/pointDTO2"},"type":"array"}},"required":["channel","period","points"],"type":"object"},"verificationDTO":{"properties":{"basis":{"description":"The rule or exception the validity rests on.","type":"string"},"document_no":{"description":"Number of the document.","type":"string"},"id":{"description":"Record.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"meter_kind":{"description":"Kind of meter.","enum":["heat","water_cold","water_hot","gas","electricity","electricity_induction","other"],"type":"string"},"note":{"description":"Note.","type":"string"},"performed_on":{"description":"When it was verified.","type":"string"},"performer":{"description":"Who verified.","type":"string"},"recorded_at":{"description":"When it was written down.","format":"date-time","type":"string"},"recorded_by":{"description":"Person who wrote it down.","type":"string"},"recorded_name":{"description":"Their name.","type":"string"},"result":{"description":"Result.","enum":["passed","failed"],"type":"string"},"review":{"description":"Review.","enum":["pending","confirmed","rejected"],"type":"string"},"review_note":{"description":"What the reviewer said.","type":"string"},"reviewed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When it was reviewed."},"reviewed_name":{"description":"Who reviewed it.","type":"string"},"superseded_by":{"description":"The record that corrected this one.","type":"string"},"supersedes_id":{"description":"The record this one corrects.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"valid_until":{"description":"The last day it holds, empty for a failed one.","type":"string"}},"required":["recorded_at","id","meter_kind","performed_on","result","valid_until","performer","document_no","basis","note","supersedes_id","superseded_by","recorded_by","recorded_name","review","reviewed_name","review_note"],"type":"object"},"verificationRequest":{"properties":{"basis":{"description":"The rule or exception the validity rests on.","maxLength":160,"type":"string"},"document_no":{"description":"Number of the document.","maxLength":160,"type":"string"},"meter_kind":{"description":"Kind of meter.","enum":["heat","water_cold","water_hot","gas","electricity","electricity_induction","other"],"type":"string"},"note":{"description":"Note.","maxLength":512,"type":"string"},"performed_on":{"description":"When it was verified.","type":"string"},"performer":{"description":"Who verified.","maxLength":160,"minLength":1,"type":"string"},"result":{"description":"Result.","enum":["passed","failed"],"type":"string"},"supersedes_id":{"description":"A record of this meter that this one corrects.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"valid_until":{"description":"The last day it holds, as the document says; required when passed.","type":"string"}},"required":["meter_kind","performed_on","result","performer"],"type":"object"},"verifyTechnicalRoomAttributeRequest":{"properties":{"revision":{"anyOf":[{"format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},{"type":"null"}],"description":"Revision of the current value being verified; required to prevent verifying a concurrently changed value."},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Optional RFC 3339 expiry time for the verification; omitted means no explicit expiry."}},"required":["revision"],"type":"object"},"verifyTechnicalRoomAttributeRequestVariant":{"properties":{"revision":{"description":"Current attribute revision that is being verified; prevents verifying a value changed since it was reviewed.","minimum":0,"type":"integer"},"valid_until":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Optional expiry time for this verification, in RFC 3339 date-time format."}},"required":["revision"],"type":"object"},"virtualDTO":{"properties":{"archived_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Archive timestamp in RFC 3339 date-time format; null or omission means the resource is not archived."},"id":{"description":"26-character, uppercase Crockford Base32 ULID.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"key":{"description":"Stable machine-readable key for this value or configuration entry.","type":"string"},"measure":{"description":"Value for the measure field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"name":{"description":"Human-readable name or label of this resource.","type":"string"},"purpose":{"description":"Value for the purpose field; the schema specifies its JSON type, nullability, format, and any declared constraints.","type":"string"},"terms":{"description":"Value for the terms field; the schema specifies its JSON type, nullability, format, and any declared constraints.","items":{"$ref":"#/components/schemas/Term"},"type":"array"},"unit":{"description":"Unit of measure for the associated numeric value, when applicable.","type":"string"}},"required":["id","key","name","unit","purpose","measure","terms"],"type":"object"},"whoseDTO":{"properties":{"org_id":{"description":"The organisation the code belongs to.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},"required":["org_id"],"type":"object"},"workTaskAssigneeDTO":{"properties":{"id":{"description":"Person.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"name":{"description":"Name.","type":"string"}},"required":["id","name"],"type":"object"},"workTaskCreateRequest":{"properties":{"assignee_id":{"description":"Person to assign it to now.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"details":{"description":"Instructions.","maxLength":4000,"type":"string"},"device_id":{"description":"A device of the building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-within":"building_id"},"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Deadline."},"incident_id":{"description":"An incident of the building; the task never closes it.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string","x-within":"building_id"},"priority":{"description":"Priority; normal when omitted.","enum":["normal","high","urgent"],"type":"string"},"task_template_id":{"description":"A template of work whose checklist the task starts with (and whose description, priority and deadline it takes when the others are left out).","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"title":{"description":"What is to be done.","maxLength":160,"minLength":1,"type":"string"}},"required":["building_id","title"],"type":"object"},"workTaskDTO":{"properties":{"accepted_by":{"description":"Person who accepted the result.","type":"string"},"assignee_id":{"description":"Person the task is assigned to, empty for nobody.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"assignee_name":{"description":"Their name.","type":"string"},"blocked_comment":{"description":"What was said about the obstacle.","type":"string"},"blocked_reason":{"description":"Why the work cannot go on, empty unless blocked.","type":"string"},"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"created_at":{"description":"Created.","format":"date-time","type":"string"},"details":{"description":"Instructions.","type":"string"},"device_id":{"description":"Device, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"done_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the result was accepted."},"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Deadline."},"id":{"description":"Task.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"incident_id":{"description":"Incident the task was made for, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"obstacle_cleared_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the assignee said the obstacle is gone."},"overdue":{"description":"The deadline has passed and the task is open.","type":"boolean"},"priority":{"description":"Priority.","enum":["normal","high","urgent"],"type":"string"},"report":{"description":"The last report of the work.","type":"string"},"reported_by":{"description":"Person who wrote the report.","type":"string"},"revision":{"description":"Revision, to be sent with a change.","format":"int64","type":"integer"},"self_accepted":{"description":"The author of the report accepted it themselves, under the organisation's exception.","type":"boolean"},"state":{"description":"State.","enum":["new","assigned","accepted","in_progress","blocked","in_review","done","cancelled"],"type":"string"},"task_template_id":{"description":"The template of work the checklist was taken from, empty for none.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"title":{"description":"What is to be done.","type":"string"},"updated_at":{"description":"Last change.","format":"date-time","type":"string"}},"required":["created_at","updated_at","id","building_id","device_id","incident_id","task_template_id","title","details","priority","state","assignee_id","assignee_name","blocked_reason","blocked_comment","report","reported_by","accepted_by","self_accepted","overdue","revision"],"type":"object"},"workTaskDetailDTO":{"properties":{"history":{"description":"What happened to it, the oldest first.","items":{"$ref":"#/components/schemas/workTaskLineDTO"},"type":"array"},"task":{"$ref":"#/components/schemas/workTaskDTO","description":"The task."}},"required":["task","history"],"type":"object"},"workTaskEditRequest":{"properties":{"details":{"description":"Instructions.","maxLength":4000,"type":"string"},"priority":{"description":"Priority.","enum":["normal","high","urgent"],"type":"string"},"revision":{"description":"The revision the form was loaded with.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"},"title":{"description":"What is to be done.","maxLength":160,"minLength":1,"type":"string"}},"required":["title","priority","revision"],"type":"object"},"workTaskLineDTO":{"properties":{"actor_name":{"description":"Who.","type":"string"},"at":{"description":"When.","format":"date-time","type":"string"},"detail":{"description":"The comment or report. For assign: the assignee's name. For set_due: the old deadline, the new one and the reason, one on each line.","type":"string"},"kind":{"description":"What happened: create, edit, an action of the assignee or of a manager.","type":"string"}},"required":["at","actor_name","kind","detail"],"type":"object"},"workTaskManageRequest":{"properties":{"action":{"description":"What the manager decides.","enum":["assign","set_due","unblock","accept_report","return","cancel"],"type":"string"},"assignee_id":{"description":"Whom to assign (assign).","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"comment":{"description":"The reason; required for set_due, return and cancel.","maxLength":512,"type":"string"},"due_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"The new deadline (set_due); omitted takes the deadline off."},"revision":{"description":"Revision.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["action","revision"],"type":"object"},"workTaskPolicyDTO":{"properties":{"allow_self_acceptance":{"description":"The author of a report may accept it. Off by default; for an organisation where nobody else can.","type":"boolean"}},"required":["allow_self_acceptance"],"type":"object"},"workTaskProgressRequest":{"properties":{"action":{"description":"What the assignee does.","enum":["accept","decline","start","block","obstacle_cleared","submit"],"type":"string"},"comment":{"description":"Required for decline, and for block with the reason other.","maxLength":512,"type":"string"},"reason":{"description":"Why the work cannot go on (block).","enum":["access","contact","power","internet","part","weather_safety","other"],"type":"string"},"report":{"description":"What was done; required for submit.","maxLength":4000,"type":"string"},"revision":{"description":"Revision.","format":"int64","maximum":1000000000,"minimum":1,"type":"integer"}},"required":["action","revision"],"type":"object"},"worklistBuildingDTO":{"properties":{"attention":{"description":"How many of them need a person.","format":"int64","type":"integer"},"building_id":{"description":"Building.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"counts":{"description":"Devices by state, only states that occur.","items":{"$ref":"#/components/schemas/worklistCountDTO"},"type":"array"},"devices":{"description":"Devices that are not decommissioned.","format":"int64","type":"integer"},"last_received_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Latest arrival of data from any device of the building; omitted without data.view."},"problems":{"description":"The most pressing devices that need attention, at most 5.","items":{"$ref":"#/components/schemas/worklistDeviceDTO"},"type":"array"}},"required":["building_id","devices","attention","counts","problems"],"type":"object"},"worklistCountDTO":{"properties":{"count":{"description":"How many devices are in it.","format":"int64","type":"integer"},"state":{"description":"A state of a device.","enum":["off","suspended","blocked","offline","no_data","stale","degraded","bad_values","ok"],"type":"string"}},"required":["state","count"],"type":"object"},"worklistDetailDTO":{"properties":{"cut":{"description":"There were more values than are shown.","type":"boolean"},"devices":{"description":"Devices of the building, those needing attention first.","items":{"$ref":"#/components/schemas/worklistDeviceDTO"},"type":"array"}},"required":["devices","cut"],"type":"object"},"worklistDeviceDTO":{"properties":{"building_id":{"description":"Building of the device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"cause":{"description":"What the connection watcher blames: line, server, device, owner or plan.","type":"string"},"id":{"description":"Device.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"last_received_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When data last arrived; omitted without data.view at the building or without data."},"name":{"description":"Device name.","type":"string"},"serial":{"description":"Serial number.","type":"string"},"since":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"When the present connection state or suspension began."},"state":{"description":"How the device is doing.","enum":["off","suspended","blocked","offline","no_data","stale","degraded","bad_values","ok"],"type":"string"},"values":{"description":"Latest value of every metric (only in the detail of a building).","items":{"$ref":"#/components/schemas/worklistValueDTO"},"type":"array"}},"required":["id","building_id","name","state"],"type":"object"},"worklistGroupDTO":{"properties":{"attention":{"description":"How many of them need a person.","format":"int64","type":"integer"},"candidates":{"description":"The latest numeric values worth showing, the most telling first (at most 12; the first 3 are the ones to show unless the person chose others). Empty without data.view.","items":{"$ref":"#/components/schemas/worklistGroupValueDTO"},"type":"array"},"counts":{"description":"Devices by state, only states that occur.","items":{"$ref":"#/components/schemas/worklistCountDTO"},"type":"array"},"devices":{"description":"Devices in the group.","format":"int64","type":"integer"},"id":{"description":"The system or the part; omitted for the whole building and for unassigned devices.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"kind":{"description":"What the group is: a system, a part of the building, what serves the whole building, or the devices that no system holds.","enum":["system","part","building","unassigned"],"type":"string"},"last_received_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"description":"Latest arrival of data from any device of the group; omitted without data.view."},"name":{"description":"Its name; omitted for the whole building and for unassigned devices.","type":"string"},"problems":{"description":"The most pressing devices that need attention, at most 3.","items":{"$ref":"#/components/schemas/worklistDeviceDTO"},"type":"array"},"state":{"description":"The worst state among its devices; omitted for a group without devices.","enum":["off","suspended","blocked","offline","no_data","stale","degraded","bad_values","ok"],"type":"string"},"system_kind":{"description":"Kind of the system (heating, hot_water, ...), for a system.","type":"string"}},"required":["kind","devices","attention","counts","problems","candidates"],"type":"object"},"worklistGroupValueDTO":{"properties":{"device_id":{"description":"The device the value is of.","format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"},"device_name":{"description":"Its name.","type":"string"},"meaning":{"description":"What a code means by the model's dictionary, in the request's language; the value stays the stored number.","type":"string"},"measured_at":{"description":"When it was measured.","format":"date-time","type":"string"},"metric":{"description":"Metric key.","type":"string"},"name":{"description":"What the device's model calls the metric; omitted when the model no longer names it.","type":"string"},"quality":{"description":"Quality of the value.","enum":["good","invalid","missing","unsupported"],"type":"string"},"received_at":{"description":"When it arrived.","format":"date-time","type":"string"},"unit":{"description":"Unit.","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The exact decimal value; null when there is none."}},"required":["measured_at","received_at","value","metric","unit","quality","device_id","device_name"],"type":"object"},"worklistGroupsDTO":{"properties":{"by":{"description":"How the building is cut.","enum":["system","part"],"type":"string"},"default_shown":{"description":"How many of the first candidates of a group are shown unless the person chose others.","format":"int64","type":"integer"},"groups":{"description":"The groups, in the order of the building's structure.","items":{"$ref":"#/components/schemas/worklistGroupDTO"},"type":"array"}},"required":["by","default_shown","groups"],"type":"object"},"worklistProblemsDTO":{"properties":{"counts":{"description":"Devices needing attention by state.","items":{"$ref":"#/components/schemas/worklistCountDTO"},"type":"array"},"cut":{"description":"Not all devices of the organisation were looked at (more than 2000).","type":"boolean"},"devices":{"description":"The most pressing devices that need attention.","items":{"$ref":"#/components/schemas/worklistDeviceDTO"},"type":"array"},"total":{"description":"How many devices need attention.","format":"int64","type":"integer"}},"required":["devices","counts","total","cut"],"type":"object"},"worklistSummaryDTO":{"properties":{"buildings":{"description":"One entry for each named building whose devices the person may view.","items":{"$ref":"#/components/schemas/worklistBuildingDTO"},"type":"array"}},"required":["buildings"],"type":"object"},"worklistValueDTO":{"properties":{"meaning":{"description":"What a code means by the model's dictionary, in the request's language; the value stays the stored number.","type":"string"},"measured_at":{"description":"When it was measured.","format":"date-time","type":"string"},"metric":{"description":"Metric key.","type":"string"},"name":{"description":"What the device's model calls the metric; omitted when the model no longer names it.","type":"string"},"quality":{"description":"Quality of the value.","enum":["good","invalid","missing","unsupported"],"type":"string"},"received_at":{"description":"When it arrived.","format":"date-time","type":"string"},"unit":{"description":"Unit.","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The exact decimal value; null when there is none."}},"required":["measured_at","received_at","value","metric","unit","quality"],"type":"object"},"wornTagsDTO":{"properties":{"tags":{"description":"The tags the object wears now.","items":{"type":"string"},"type":"array"}},"required":["tags"],"type":"object"},"writeRequest":{"properties":{"reason":{"description":"Human-readable reason for the requested or completed operation.","maxLength":500,"type":"string"},"value":{"description":"Value carried by this field; its JSON type and any scalar or enum constraints are specified in the schema or operation contract.","maxLength":255,"type":"string"}},"required":["value","reason"],"type":"object"},"writeRuleDTO":{"properties":{"about":{"description":"What the parameter does and whom a change touches.","maxLength":500,"type":"string"},"max":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"A written number cannot be above this."},"min":{"anyOf":[{"format":"double","type":"number"},{"type":"null"}],"description":"A written number cannot be below this."},"risk":{"description":"How dangerous a change is: important asks for an explicit acknowledgement, critical for a second person.","enum":["normal","important","critical"],"type":"string"}},"required":["risk"],"type":"object"},"zoneDTO":{"properties":{"key":{"description":"Stable machine-readable key for this value or configuration entry.","maxLength":64,"type":"string"},"name":{"description":"Human-readable name or label of this resource.","maxLength":255,"type":"string"},"price":{"description":"Price or rate; the operation contract defines its currency, unit, and tax treatment.","maxLength":32,"type":"string"},"schedule":{"description":"Value for the schedule field; the schema specifies its JSON type, nullability, format, and any declared constraints.","maxLength":64,"type":"string"}},"required":["key","price"],"type":"object"}},"securitySchemes":{"bearerAuth":{"scheme":"bearer","type":"http"}}},"info":{"description":"Paths and methods come from the routes registered by this server. Request/response bodies, success statuses, and list parameters come from each route's contract. Validation errors use the Error schema and identify invalid fields in error.fields. Send the access token as 'Authorization: Bearer'.","title":"Platform API","version":"b0d6269e6fe8cb1deb88c23f64267164db6e309b"},"openapi":"3.1.0","paths":{"/api/v1/auth/contact-notices/answer":{"post":{"operationId":"postAuthContactNoticesAnswer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contactAnswerRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/contact-notices/answer","tags":["identity"]}},"/api/v1/auth/contact-notices/invitation":{"get":{"operationId":"getAuthContactNoticesInvitation","parameters":[{"description":"The token of the link.","in":"query","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contactInvitationDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/auth/contact-notices/invitation","tags":["identity"]}},"/api/v1/auth/contact-notices/stop":{"post":{"operationId":"postAuthContactNoticesStop","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contactStopRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/contact-notices/stop","tags":["identity"]}},"/api/v1/auth/email/verification":{"post":{"operationId":"postAuthEmailVerification","responses":{"202":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/auth/email/verification","tags":["identity"]}},"/api/v1/auth/email/verify":{"post":{"operationId":"postAuthEmailVerify","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tokenRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/email/verify","tags":["identity"]}},"/api/v1/auth/invitations/accept":{"post":{"operationId":"postAuthInvitationsAccept","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/acceptInvitationRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/invitations/accept","tags":["identity"]}},"/api/v1/auth/invitations/decline":{"post":{"operationId":"postAuthInvitationsDecline","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tokenRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/invitations/decline","tags":["identity"]}},"/api/v1/auth/invitations/info":{"get":{"operationId":"getAuthInvitationsInfo","parameters":[{"description":"The token of the invitation link.","in":"query","name":"token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invitationInfoResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/auth/invitations/info","tags":["identity"]}},"/api/v1/auth/login":{"post":{"operationId":"postAuthLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/loginRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/loginResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/login","tags":["identity"]}},"/api/v1/auth/logout":{"post":{"operationId":"postAuthLogout","responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/auth/logout","tags":["identity"]}},"/api/v1/auth/methods":{"get":{"operationId":"getAuthMethods","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/signInMethodsResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/auth/methods","tags":["identity"]}},"/api/v1/auth/passkey/login":{"post":{"operationId":"postAuthPasskeyLogin","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/loginResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/passkey/login","tags":["identity"]}},"/api/v1/auth/passkey/options":{"post":{"operationId":"postAuthPasskeyOptions","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginOptions"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/passkey/options","tags":["identity"]}},"/api/v1/auth/password-reset/confirm":{"post":{"operationId":"postAuthPasswordResetConfirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tokenPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/password-reset/confirm","tags":["identity"]}},"/api/v1/auth/password-reset/request":{"post":{"operationId":"postAuthPasswordResetRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/emailRequest"}}},"required":true},"responses":{"202":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/password-reset/request","tags":["identity"]}},"/api/v1/auth/residency/apply":{"post":{"operationId":"postAuthResidencyApply","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/applyRequest"}}},"required":true},"responses":{"202":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/residency/apply","tags":["identity"]}},"/api/v1/auth/residency/confirm":{"post":{"operationId":"postAuthResidencyConfirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/confirmRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/placeDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/residency/confirm","tags":["identity"]}},"/api/v1/auth/residency/form":{"get":{"operationId":"getAuthResidencyForm","parameters":[{"description":"The token of the building's link.","in":"query","name":"link","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/placeDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/auth/residency/form","tags":["identity"]}},"/api/v1/auth/second-factor-reset/cancel":{"post":{"operationId":"postAuthSecondFactorResetCancel","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tokenRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/second-factor-reset/cancel","tags":["identity"]}},"/api/v1/auth/second-factor-reset/confirm":{"post":{"operationId":"postAuthSecondFactorResetConfirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tokenPasswordRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/factorResetDueResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/second-factor-reset/confirm","tags":["identity"]}},"/api/v1/auth/second-factor-reset/request":{"post":{"operationId":"postAuthSecondFactorResetRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/emailRequest"}}},"required":true},"responses":{"202":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"POST /api/v1/auth/second-factor-reset/request","tags":["identity"]}},"/api/v1/me":{"get":{"operationId":"getMe","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/meResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me","tags":["identity"]}},"/api/v1/me/activity":{"get":{"operationId":"getMeActivity","parameters":[{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/ownActivityDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/activity","tags":["identity"]}},"/api/v1/me/emails":{"get":{"operationId":"getMeEmails","parameters":[{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by email; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/emailDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/emails","tags":["identity"]},"post":{"operationId":"postMeEmails","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/addEmailRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/emailDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/emails","tags":["identity"]}},"/api/v1/me/emails/{emailId}":{"delete":{"operationId":"deleteMeEmailsByEmailId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"emailId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/me/emails/{emailId}","tags":["identity"]}},"/api/v1/me/emails/{emailId}/code":{"post":{"operationId":"postMeEmailsByEmailIdCode","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"emailId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"202":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/emails/{emailId}/code","tags":["identity"]}},"/api/v1/me/emails/{emailId}/confirm":{"post":{"operationId":"postMeEmailsByEmailIdConfirm","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"emailId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/confirmEmailRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/emails/{emailId}/confirm","tags":["identity"]}},"/api/v1/me/emails/{emailId}/primary":{"post":{"operationId":"postMeEmailsByEmailIdPrimary","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"emailId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/emails/{emailId}/primary","tags":["identity"]}},"/api/v1/me/erasure":{"delete":{"operationId":"deleteMeErasure","responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/me/erasure","tags":["identity"]},"get":{"operationId":"getMeErasure","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erasureDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/erasure","tags":["identity"]},"post":{"operationId":"postMeErasure","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erasureRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/erasureDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/erasure","tags":["identity"]}},"/api/v1/me/interface":{"get":{"operationId":"getMeInterface","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/interfaceResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/interface","tags":["identity"]},"put":{"operationId":"putMeInterface","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/interfaceDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/interfaceResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/me/interface","tags":["identity"]}},"/api/v1/me/legal":{"get":{"operationId":"getMeLegal","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pendingLegalResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/legal","tags":["identity"]},"post":{"operationId":"postMeLegal","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/acceptLegalRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/legal","tags":["identity"]}},"/api/v1/me/legal/accepted":{"get":{"operationId":"getMeLegalAccepted","parameters":[{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by accepted_at, published_at, version; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/acceptedLegalDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/legal/accepted","tags":["identity"]}},"/api/v1/me/legal/accepted/{acceptanceId}":{"get":{"operationId":"getMeLegalAcceptedByAcceptanceId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"acceptanceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/acceptedLegalDetailDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/legal/accepted/{acceptanceId}","tags":["identity"]}},"/api/v1/me/legal/accepted/{acceptanceId}/withdraw":{"post":{"operationId":"postMeLegalAcceptedByAcceptanceIdWithdraw","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"acceptanceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/legal/accepted/{acceptanceId}/withdraw","tags":["identity"]}},"/api/v1/me/legal/decline":{"post":{"operationId":"postMeLegalDecline","responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/legal/decline","tags":["identity"]}},"/api/v1/me/mfa":{"get":{"operationId":"getMeMfa","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mfaStatusResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/mfa","tags":["identity"]}},"/api/v1/me/mfa/totp":{"post":{"operationId":"postMeMfaTotp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/passwordRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Enrolment"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/mfa/totp","tags":["identity"]}},"/api/v1/me/mfa/totp/confirm":{"post":{"operationId":"postMeMfaTotpConfirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mfaConfirmRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/recoveryCodesResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/mfa/totp/confirm","tags":["identity"]}},"/api/v1/me/mfa/totp/disable":{"post":{"operationId":"postMeMfaTotpDisable","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/passwordRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/mfa/totp/disable","tags":["identity"]}},"/api/v1/me/orgs/{orgId}/default-role":{"delete":{"operationId":"deleteMeOrgsByOrgIdDefaultRole","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/me/orgs/{orgId}/default-role","tags":["organizations"]},"put":{"operationId":"putMeOrgsByOrgIdDefaultRole","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/defaultRoleRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/defaultRoleResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/me/orgs/{orgId}/default-role","tags":["organizations"]}},"/api/v1/me/passkeys":{"get":{"operationId":"getMePasskeys","parameters":[{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at, name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/passkeyDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/passkeys","tags":["identity"]},"post":{"operationId":"postMePasskeys","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/passkeyRegistrationRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/passkeyDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/passkeys","tags":["identity"]}},"/api/v1/me/passkeys/options":{"post":{"operationId":"postMePasskeysOptions","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterOptions"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/passkeys/options","tags":["identity"]}},"/api/v1/me/passkeys/{passkeyId}":{"delete":{"operationId":"deleteMePasskeysByPasskeyId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"passkeyId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/me/passkeys/{passkeyId}","tags":["identity"]}},"/api/v1/me/password":{"post":{"operationId":"postMePassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/changePasswordRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/password","tags":["identity"]}},"/api/v1/me/preferences":{"get":{"operationId":"getMePreferences","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mineResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/preferences","tags":["identity"]},"put":{"operationId":"putMePreferences","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/patchDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/mineResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/me/preferences","tags":["identity"]}},"/api/v1/me/profile":{"put":{"operationId":"putMeProfile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/profileRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/me/profile","tags":["identity"]}},"/api/v1/me/secure-mode":{"delete":{"operationId":"deleteMeSecureMode","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/secureModeDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/me/secure-mode","tags":["identity"]},"get":{"operationId":"getMeSecureMode","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/secureModeDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/secure-mode","tags":["identity"]},"post":{"operationId":"postMeSecureMode","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/secureModeDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/secure-mode","tags":["identity"]}},"/api/v1/me/sessions":{"delete":{"operationId":"deleteMeSessions","responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/me/sessions","tags":["diagnostics"]},"get":{"operationId":"getMeSessions","parameters":[{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at, expires_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/sessionDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/sessions","tags":["diagnostics"]}},"/api/v1/me/sessions/{sessionId}":{"delete":{"operationId":"deleteMeSessionsBySessionId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"sessionId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/me/sessions/{sessionId}","tags":["diagnostics"],"x-available-when":[{"field":"current","empty":true}]}},"/api/v1/me/stepup":{"post":{"operationId":"postMeStepup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/passwordRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepUpResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/stepup","tags":["identity"]}},"/api/v1/me/stepup/passkey":{"post":{"operationId":"postMeStepupPasskey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepUpResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/stepup/passkey","tags":["identity"]}},"/api/v1/me/stepup/passkey/options":{"post":{"operationId":"postMeStepupPasskeyOptions","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginOptions"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/stepup/passkey/options","tags":["identity"]}},"/api/v1/me/stepup/password":{"post":{"operationId":"postMeStepupPassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orgStepUpPasswordRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepUpResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/stepup/password","tags":["identity"]}},"/api/v1/me/stepup/requirements":{"get":{"operationId":"getMeStepupRequirements","parameters":[{"description":"The organisation whose confirmation policy applies.","in":"query","name":"org_id","required":true,"schema":{"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StepUpRequirements"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/me/stepup/requirements","tags":["identity"]}},"/api/v1/me/stepup/totp":{"post":{"operationId":"postMeStepupTotp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orgStepUpTOTPRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepUpResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/me/stepup/totp","tags":["identity"]}},"/api/v1/orgs/{orgId}/account-balance":{"get":{"operationId":"getOrgsByOrgIdAccountBalance","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/balanceResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/account-balance","tags":["commercial"]}},"/api/v1/orgs/{orgId}/account-balance/history":{"get":{"operationId":"getOrgsByOrgIdAccountBalanceHistory","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/balanceEntryDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/account-balance/history","tags":["commercial"]}},"/api/v1/orgs/{orgId}/attachments/{attachmentId}":{"delete":{"operationId":"deleteOrgsByOrgIdAttachmentsByAttachmentId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"attachmentId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/attachments/{attachmentId}","tags":["attachments"]}},"/api/v1/orgs/{orgId}/attachments/{attachmentId}/content":{"get":{"operationId":"getOrgsByOrgIdAttachmentsByAttachmentIdContent","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"attachmentId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/attachments/{attachmentId}/content","tags":["attachments"]}},"/api/v1/orgs/{orgId}/audit":{"get":{"operationId":"getOrgsByOrgIdAudit","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Include entries at or after this time.","in":"query","name":"from","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Include entries before this time.","in":"query","name":"to","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Filter by an operation prefix.","in":"query","name":"operation","required":false,"schema":{"type":"string"}},{"description":"Filter by actor reference.","in":"query","name":"actor","required":false,"schema":{"type":"string"}},{"description":"Filter by target reference.","in":"query","name":"target","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/entryDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/audit","tags":["audit"]}},"/api/v1/orgs/{orgId}/billing/contracts":{"get":{"operationId":"getOrgsByOrgIdBillingContracts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"payer_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by number, valid_from; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over number (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/contractDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/billing/contracts","tags":["billing"]},"post":{"operationId":"postOrgsByOrgIdBillingContracts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractDTO"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/contracts","tags":["billing"]}},"/api/v1/orgs/{orgId}/billing/contracts/{id}/end":{"post":{"operationId":"postOrgsByOrgIdBillingContractsByIdEnd","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/endRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contractDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/contracts/{id}/end","tags":["billing"],"x-available-when":[{"field":"valid_until","empty":true}]}},"/api/v1/orgs/{orgId}/billing/invoices":{"get":{"operationId":"getOrgsByOrgIdBillingInvoices","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"contract_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"period","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by period, issued_at, amount; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/invoiceDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/billing/invoices","tags":["billing"]},"post":{"operationId":"postOrgsByOrgIdBillingInvoices","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/issueRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoiceDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/invoices","tags":["billing"]}},"/api/v1/orgs/{orgId}/billing/invoices/{id}/cancel":{"post":{"operationId":"postOrgsByOrgIdBillingInvoicesByIdCancel","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/cancelRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoiceDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/invoices/{id}/cancel","tags":["billing"],"x-available-when":[{"field":"status","in":["issued"]}]}},"/api/v1/orgs/{orgId}/billing/invoices/{id}/confirm-payment":{"post":{"operationId":"postOrgsByOrgIdBillingInvoicesByIdConfirmPayment","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/confirmRequest2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/invoiceDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/invoices/{id}/confirm-payment","tags":["billing"],"x-available-when":[{"field":"status","in":["issued"]}]}},"/api/v1/orgs/{orgId}/billing/payers":{"get":{"operationId":"getOrgsByOrgIdBillingPayers","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, tax_number, email (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/payerDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/billing/payers","tags":["billing"]},"post":{"operationId":"postOrgsByOrgIdBillingPayers","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payerDTO"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payerDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/payers","tags":["billing"]}},"/api/v1/orgs/{orgId}/billing/payers/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdBillingPayersById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/billing/payers/{id}","tags":["billing"],"x-available-when":[{"field":"archived_at","empty":true}]},"put":{"operationId":"putOrgsByOrgIdBillingPayersById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payerDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/payerDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/billing/payers/{id}","tags":["billing"],"x-available-when":[{"field":"archived_at","empty":true}]}},"/api/v1/orgs/{orgId}/billing/payers/{id}/restore":{"post":{"operationId":"postOrgsByOrgIdBillingPayersByIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/payers/{id}/restore","tags":["billing"],"x-available-when":[{"field":"archived_at","empty":false}]}},"/api/v1/orgs/{orgId}/billing/periods":{"get":{"operationId":"getOrgsByOrgIdBillingPeriods","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by period, closed_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/periodDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/billing/periods","tags":["billing"]},"post":{"operationId":"postOrgsByOrgIdBillingPeriods","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/closeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/periodDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/billing/periods","tags":["billing"]}},"/api/v1/orgs/{orgId}/billing/periods/{buildingId}/{period}":{"delete":{"operationId":"deleteOrgsByOrgIdBillingPeriodsByBuildingIdByPeriod","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"period","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/billing/periods/{buildingId}/{period}","tags":["billing"]}},"/api/v1/orgs/{orgId}/brand":{"delete":{"operationId":"deleteOrgsByOrgIdBrand","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/brand","tags":["commercial"]},"get":{"operationId":"getOrgsByOrgIdBrand","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/brandResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/brand","tags":["commercial"]},"put":{"operationId":"putOrgsByOrgIdBrand","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/brandDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/brandDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/brand","tags":["commercial"]}},"/api/v1/orgs/{orgId}/building-aliases/{alias}":{"get":{"operationId":"getOrgsByOrgIdBuildingAliasesByAlias","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"alias","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/building-aliases/{alias}","tags":["building-aliases"]}},"/api/v1/orgs/{orgId}/buildings":{"get":{"operationId":"getOrgsByOrgIdBuildings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Only buildings wearing a tag; comma-separated alternatives are accepted.","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"Exact city/locality filter; comma-separated alternatives are accepted.","in":"query","name":"city","required":false,"schema":{"type":"string"}},{"description":"Exact uppercase ISO 3166-1 alpha-2 country code; comma-separated alternatives are accepted.","in":"query","name":"country","required":false,"schema":{"maxLength":2,"minLength":2,"pattern":"^[A-Z]{2}$","type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, code, city, country; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, code, city, street (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/buildingDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/import/apply":{"post":{"operationId":"postOrgsByOrgIdBuildingsImportApply","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Lowercase SHA-256 hex digest from the matching CSV preview; the submitted file must have identical bytes.","in":"query","name":"hash","required":true,"schema":{"maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"The exact same UTF-8 CSV bytes used for preview, at most 1 MiB; the required hash must match that preview.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/import/apply","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/import/preview":{"post":{"operationId":"postOrgsByOrgIdBuildingsImportPreview","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"UTF-8 CSV with a header, comma or semicolon delimiter, and building rows. Maximum size is 1 MiB.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/import/preview","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/use-profiles":{"get":{"operationId":"getOrgsByOrgIdBuildingsUseProfiles","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Uppercase ISO 3166-1 alpha-2 country code; defaults to UA.","in":"query","name":"country","required":false,"schema":{"maxLength":2,"minLength":2,"pattern":"^[A-Z]{2}$","type":"string"}},{"description":"Items per page; default 100, maximum 100.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by code; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/buildingUseProfileDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/use-profiles","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Positive revision of the building currently shown to the caller; required for optimistic concurrency.","in":"query","name":"revision","required":true,"schema":{"minimum":1,"type":"integer"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}","tags":["buildings"],"x-available-when":[{"field":"archived_at","empty":true}]},"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}","tags":["buildings"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/updateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/alias":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdAlias","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/alias","tags":["buildings"],"x-available-when":[{"field":"archived_at","empty":true}]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/allocation":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdAllocation","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The billing period to calculate.","in":"query","name":"period","required":true,"schema":{"type":"string"}},{"description":"Optional resource key to calculate.","in":"query","name":"resource","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/allocation","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/allocation/settings":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdAllocationSettings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/settingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/allocation/settings","tags":["buildings"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdAllocationSettings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/settingDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/settingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/allocation/settings","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/areas":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdAreas","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by valid_from; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/areaDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/areas","tags":["indicators"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdAreas","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/areaDTO"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/areas","tags":["indicators"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/attachments":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/listingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/attachments","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}},{"description":"For a file of a task: the step of its checklist the file belongs to.","in":"query","name":"step","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string","x-max-bytes":10485760}}},"description":"The bytes of the file: JPEG, PNG, WebP, HEIC, PDF or DWG, at most 10 MiB. What the file is is read from its bytes.","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/fileDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/attachments","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/command-groups":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdCommandGroups","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandGroupsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/command-groups","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdCommandGroups","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/startGroupRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandGroupDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/command-groups","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/command-targets":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdCommandTargets","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandTargetsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/command-targets","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/contacts":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdContacts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"duty","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by priority, name, duty; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, phone, email, note (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/objectContactDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/contacts","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdContacts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/objectContactRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/objectContactDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/contacts","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/contacts/{contactId}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdContactsByContactId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"contactId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Revision of the contact being removed.","in":"query","name":"revision","required":true,"schema":{"type":"integer"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/contacts/{contactId}","tags":["buildings"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdContactsByContactId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"contactId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/objectContactUpdateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/objectContactDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/contacts/{contactId}","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/contacts/{contactId}/consent":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdContactsByContactIdConsent","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"contactId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/contacts/{contactId}/consent","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/control-holds":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdControlHolds","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/holdsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/control-holds","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdControlHolds","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingHoldRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/holdDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/control-holds","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/devices/import/apply":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdDevicesImportApply","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Lowercase SHA-256 hex digest from the matching CSV preview; the submitted file must have identical bytes.","in":"query","name":"hash","required":true,"schema":{"maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"The exact same UTF-8 CSV bytes used for preview, at most 1 MiB; the required hash must match that preview.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/devices/import/apply","tags":["devices"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/devices/import/preview":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdDevicesImportPreview","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"UTF-8 CSV with a header, comma or semicolon delimiter, and device rows. Maximum size is 1 MiB.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/devices/import/preview","tags":["devices"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/indicators":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdIndicators","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The month (YYYY-MM) or year (YYYY) used for calculating indicators.","in":"query","name":"period","required":true,"schema":{"type":"string"}},{"description":"Optional resource key.","in":"query","name":"resource","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result2"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/indicators","tags":["indicators"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/indicators/config":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdIndicatorsConfig","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Resource key whose configuration is returned; omitted for the primary resource.","in":"query","name":"resource","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/configDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/indicators/config","tags":["indicators"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdIndicatorsConfig","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/configDTO"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/indicators/config","tags":["indicators"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/indicators/resources":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdIndicatorsResources","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by resource, tariff_code; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/configDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/indicators/resources","tags":["indicators"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/meters":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdMeters","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"resource","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"premises_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"unit","required":false,"schema":{"type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, resource; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/pointDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/meters","tags":["allocation"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdMeters","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pointDTO"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pointDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/meters","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/meters/zone-suggestions":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdMetersZoneSuggestions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, key; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, key (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/ZoneSuggestion"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/meters/zone-suggestions","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/meters/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdMetersById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/meters/{id}","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/meters/{id}/restore":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdMetersByIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/meters/{id}/restore","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/parts":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdParts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by a building-part category.","in":"query","name":"kind","required":false,"schema":{"enum":["entrance","facility","floor_group","main_entrance","other","secondary_entrance","section","wing"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, kind; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/buildingPartDTOVariant"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/parts","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdParts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPartRequestVariant"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPartDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/parts","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/parts/{partId}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdPartsByPartId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"partId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Positive current part revision shown to the caller.","in":"query","name":"revision","required":true,"schema":{"minimum":1,"type":"integer"}},{"description":"Positive current building structure revision shown to the caller.","in":"query","name":"structure_revision","required":true,"schema":{"minimum":1,"type":"integer"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/parts/{partId}","tags":["buildings"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdPartsByPartId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"partId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPartRequestVariant2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPartDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/parts/{partId}","tags":["buildings"],"x-available-when":[{"field":"archived_at","empty":true}]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/parts/{partId}/restore":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdPartsByPartIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"partId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPartRestoreRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPartDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/parts/{partId}/restore","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/polling":{"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdPolling","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPlanRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingPollingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/polling","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdPremises","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"scope","required":false,"schema":{"type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by number, kind; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over number (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/premisesDTOVariant"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/premises","tags":["allocation"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdPremises","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/premisesDTOVariant2"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/premisesDTOVariant2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/premises","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises/import/apply":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdPremisesImportApply","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Lowercase SHA-256 hex digest from the matching CSV preview; the submitted file must have identical bytes.","in":"query","name":"hash","required":true,"schema":{"maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"The exact same UTF-8 CSV bytes used for preview, at most 1 MiB; the required hash must match that preview.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO3"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/import/apply","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises/import/preview":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdPremisesImportPreview","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"UTF-8 CSV with a header and premise data. Maximum size is 1 MiB.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO3"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/import/preview","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdPremisesById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}","tags":["allocation"],"x-available-when":[{"field":"archived_at","empty":true}]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdPremisesById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/premisesDTOVariant2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/premisesDTOVariant2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/areas":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdPremisesByIdAreas","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by valid_from; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/areaDTO2"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/areas","tags":["indicators"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdPremisesByIdAreas","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/areaDTO2"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/areaDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/areas","tags":["indicators"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/minimums":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdPremisesByIdMinimums","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by valid_from; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/minimumDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/minimums","tags":["allocation"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/residents":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdPremisesByIdResidents","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by valid_from; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/residentsDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/residents","tags":["residents"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdPremisesByIdResidents","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/residentsDTO"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/residentsDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/residents","tags":["residents"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/restore":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdPremisesByIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/restoreRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/premisesDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/premises/{id}/restore","tags":["allocation"],"x-available-when":[{"field":"archived_at","empty":false}]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/readings":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdReadings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The period whose meter readings are returned.","in":"query","name":"period","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Readings"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/readings","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/report":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdReport","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Bucket period: h (hour), d (day), or m (month).","in":"query","name":"period","required":true,"schema":{"enum":["h","d","m"],"type":"string"}},{"description":"Start of the window in RFC 3339 format.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"End of the window in RFC 3339 format.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Optional positive maximum number of buckets per source metric.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}},{"description":"Repeat for each column (up to 24): vc:\u003cvirtual-channel-id\u003e or dev:\u003cdevice-id\u003e:\u003cmetric\u003e[:delta|avg|last].","explode":true,"in":"query","name":"col","required":false,"schema":{"items":{"type":"string"},"type":"array"},"style":"form"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/reportDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/report","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/resident-link":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdResidentLink","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/resident-link","tags":["buildings"]},"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdResidentLink","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/linkDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/resident-link","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdResidentLink","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/linkDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/resident-link","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/residents":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdResidents","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"premises_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, email (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/contactDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/residents","tags":["residents"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdResidents","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contactRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contactDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/residents","tags":["residents"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/residents/notices":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdResidentsNotices","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"incident_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over title (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/noticeDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/residents/notices","tags":["residents"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdResidentsNotices","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/noticeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/noticeDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/residents/notices","tags":["residents"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/residents/policy":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdResidentsPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/residents/policy","tags":["residents"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdResidentsPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/residents/policy","tags":["residents"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/residents/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdResidentsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/residents/{id}","tags":["residents"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdResidentsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contactRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/contactDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/residents/{id}","tags":["residents"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/restore":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/restoreRequest2"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/restore","tags":["buildings"],"x-available-when":[{"field":"archived_at","empty":false}]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/supply":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdSupply","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 500, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":500,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, kind; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, code (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/supplyLinkDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/supply","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/systems":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdSystems","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by utility/technical system category.","in":"query","name":"kind","required":false,"schema":{"enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"}},{"description":"Filter by building-wide or selected-building-parts scope.","in":"query","name":"scope_kind","required":false,"schema":{"enum":["building","selected_parts"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, code, kind; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, code (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/buildingSystemDTOVariant"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/systems","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdSystems","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingSystemCreateRequestVariant"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingSystemDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/systems","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/systems/{systemId}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdSystemsBySystemId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"systemId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Positive current system revision shown to the caller.","in":"query","name":"revision","required":true,"schema":{"minimum":1,"type":"integer"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/systems/{systemId}","tags":["buildings"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdSystemsBySystemId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"systemId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingSystemUpdateRequestVariant"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingSystemDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/systems/{systemId}","tags":["buildings"],"x-available-when":[{"field":"archived_at","empty":true}]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/systems/{systemId}/restore":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdSystemsBySystemIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"systemId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingSystemRestoreRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingSystemDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/systems/{systemId}/restore","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/tags":{"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdTags","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingTagsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/wornTagsDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/tags","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdTechnicalRooms","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by the kind of technical place.","in":"query","name":"location_kind","required":false,"schema":{"enum":["floor_cabinet","other","outdoor_pad","premise","roof_area","room","shaft_or_riser"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, code; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, code (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/technicalRoomDTOVariant"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdTechnicalRooms","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomCreateRequestVariant"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdTechnicalRoomsByRoomId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roomId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Positive current room revision shown to the caller.","in":"query","name":"revision","required":true,"schema":{"minimum":1,"type":"integer"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}","tags":["buildings"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdTechnicalRoomsByRoomId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roomId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomUpdateRequestVariant"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}","tags":["buildings"],"x-available-when":[{"field":"archived_at","empty":true}]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/attributes":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdTechnicalRoomsByRoomIdAttributes","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roomId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 50.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":50,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by code, group_code; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/technicalRoomAttributeDTOVariant"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/attributes","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/attributes/{code}":{"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdTechnicalRoomsByRoomIdAttributesByCode","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roomId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"code","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/setTechnicalRoomAttributeRequestVariant"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomAttributeDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/attributes/{code}","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/attributes/{code}/verify":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdTechnicalRoomsByRoomIdAttributesByCodeVerify","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roomId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"code","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/verifyTechnicalRoomAttributeRequestVariant"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomAttributeDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/attributes/{code}/verify","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/restore":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdTechnicalRoomsByRoomIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roomId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomRestoreRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/technicalRoomDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/technical-rooms/{roomId}/restore","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/utility-networks":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdUtilityNetworks","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by utility category.","in":"query","name":"kind","required":false,"schema":{"enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, code, kind; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, code (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/utilityNetworkDTOVariant"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/utility-networks","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdUtilityNetworks","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/utilityNetworkRequestVariant"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/utilityNetworkDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/utility-networks","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/utility-networks/{networkId}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdUtilityNetworksByNetworkId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Positive current revision of the network shown to the caller.","in":"query","name":"revision","required":true,"schema":{"minimum":1,"type":"integer"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/utility-networks/{networkId}","tags":["buildings"]},"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdUtilityNetworksByNetworkId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/utilityNetworkDTOVariant"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/utility-networks/{networkId}","tags":["buildings"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdUtilityNetworksByNetworkId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/utilityNetworkRequestVariant2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/utilityNetworkDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/utility-networks/{networkId}","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdVirtualChannels","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"purpose","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"unit","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"measure","required":false,"schema":{"type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, key, purpose; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, key (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/virtualDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels","tags":["buildings"]},"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdVirtualChannels","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createRequest2"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/virtualDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdVirtualChannelsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels/{id}","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels/{id}/restore":{"post":{"operationId":"postOrgsByOrgIdBuildingsByBuildingIdVirtualChannelsByIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/restoreRequest3"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/virtualDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels/{id}/restore","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels/{id}/values":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdVirtualChannelsByIdValues","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Bucket period: h (hour), d (day), or m (month).","in":"query","name":"period","required":true,"schema":{"enum":["h","d","m"],"type":"string"}},{"description":"Start of the window in RFC 3339 format.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"End of the window in RFC 3339 format.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Optional positive maximum number of buckets per source metric.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/valuesDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/virtual-channels/{id}/values","tags":["buildings"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/weather":{"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdWeather","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Start of the requested weather window (RFC 3339).","in":"query","name":"from","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"End of the requested weather window (RFC 3339).","in":"query","name":"to","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/hourDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/weather","tags":["weather"]}},"/api/v1/orgs/{orgId}/buildings/{buildingId}/weather/site":{"delete":{"operationId":"deleteOrgsByOrgIdBuildingsByBuildingIdWeatherSite","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/buildings/{buildingId}/weather/site","tags":["weather"]},"get":{"operationId":"getOrgsByOrgIdBuildingsByBuildingIdWeatherSite","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/siteDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/buildings/{buildingId}/weather/site","tags":["weather"]},"put":{"operationId":"putOrgsByOrgIdBuildingsByBuildingIdWeatherSite","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/siteRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/siteDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/buildings/{buildingId}/weather/site","tags":["weather"]}},"/api/v1/orgs/{orgId}/catalogue-proposals":{"get":{"operationId":"getOrgsByOrgIdCatalogueProposals","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/proposalsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/catalogue-proposals","tags":["catalogue-proposals"]},"post":{"operationId":"postOrgsByOrgIdCatalogueProposals","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/proposeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/proposalDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/catalogue-proposals","tags":["catalogue-proposals"]}},"/api/v1/orgs/{orgId}/charges":{"get":{"operationId":"getOrgsByOrgIdCharges","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by period_start, amount_minor, status; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/chargeDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/charges","tags":["charges"]}},"/api/v1/orgs/{orgId}/charges/{chargeId}/invoice":{"get":{"operationId":"getOrgsByOrgIdChargesByChargeIdInvoice","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"chargeId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chargeDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/charges/{chargeId}/invoice","tags":["charges"]}},"/api/v1/orgs/{orgId}/charges/{chargeId}/payments":{"post":{"operationId":"postOrgsByOrgIdChargesByChargeIdPayments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"chargeId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/recordPaymentRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/chargeDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/charges/{chargeId}/payments","tags":["charges"],"x-available-when":[{"field":"status","in":["pending","reported","overdue"]}]}},"/api/v1/orgs/{orgId}/command-groups/{groupId}/stop":{"post":{"operationId":"postOrgsByOrgIdCommandGroupsByGroupIdStop","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"groupId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandGroupDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/command-groups/{groupId}/stop","tags":["command-groups"]}},"/api/v1/orgs/{orgId}/control-holds/{holdId}/end":{"post":{"operationId":"postOrgsByOrgIdControlHoldsByHoldIdEnd","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"holdId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/endHoldRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/holdDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/control-holds/{holdId}/end","tags":["control-holds"]}},"/api/v1/orgs/{orgId}/control-holds/{holdId}/renew":{"post":{"operationId":"postOrgsByOrgIdControlHoldsByHoldIdRenew","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"holdId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/renewHoldRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/holdDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/control-holds/{holdId}/renew","tags":["control-holds"]}},"/api/v1/orgs/{orgId}/control-holds/{holdId}/return":{"post":{"operationId":"postOrgsByOrgIdControlHoldsByHoldIdReturn","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"holdId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/returnToServiceRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/holdDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/control-holds/{holdId}/return","tags":["control-holds"]}},"/api/v1/orgs/{orgId}/custom-devices/preview":{"post":{"operationId":"postOrgsByOrgIdCustomDevicesPreview","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exampleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/custom-devices/preview","tags":["custom-devices"]}},"/api/v1/orgs/{orgId}/custom-devices/profiles":{"post":{"operationId":"postOrgsByOrgIdCustomDevicesProfiles","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customCreated"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/custom-devices/profiles","tags":["custom-devices"]}},"/api/v1/orgs/{orgId}/custom-devices/profiles/{profileId}/example":{"get":{"operationId":"getOrgsByOrgIdCustomDevicesProfilesByProfileIdExample","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/exampleDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/custom-devices/profiles/{profileId}/example","tags":["custom-devices"]}},"/api/v1/orgs/{orgId}/custom-devices/reference":{"get":{"operationId":"getOrgsByOrgIdCustomDevicesReference","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/referenceDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/custom-devices/reference","tags":["custom-devices"]}},"/api/v1/orgs/{orgId}/data-policy":{"get":{"operationId":"getOrgsByOrgIdDataPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyDTO2"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/data-policy","tags":["data-policy"]},"put":{"operationId":"putOrgsByOrgIdDataPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyDTO2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/policyDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/data-policy","tags":["data-policy"]}},"/api/v1/orgs/{orgId}/debug":{"get":{"operationId":"getOrgsByOrgIdDebug","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/debugCenterResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/debug","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/deletion":{"delete":{"operationId":"deleteOrgsByOrgIdDeletion","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/deletion","tags":["deletion"]},"get":{"operationId":"getOrgsByOrgIdDeletion","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orgDeletionDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/deletion","tags":["deletion"]},"post":{"operationId":"postOrgsByOrgIdDeletion","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orgDeletionRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orgDeletionDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/deletion","tags":["deletion"]}},"/api/v1/orgs/{orgId}/device-profiles":{"get":{"operationId":"getOrgsByOrgIdDeviceProfiles","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by an exact protocol identifier.","in":"query","name":"protocol","required":false,"schema":{"enum":["axis-skm01","custom","dlms","iec62056-21","mbus","modbus"],"type":"string"}},{"description":"Filter by stored profile lifecycle state.","in":"query","name":"status","required":false,"schema":{"enum":["draft","verified"],"type":"string"}},{"description":"Filter global catalogue profiles or organization-owned profiles.","in":"query","name":"scope","required":false,"schema":{"enum":["global","organization"],"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, protocol, status, revision; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/profileDTOVariant"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/device-profiles","tags":["devices"]},"post":{"operationId":"postOrgsByOrgIdDeviceProfiles","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createProfileRequestVariant"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/profileDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/device-profiles","tags":["devices"]}},"/api/v1/orgs/{orgId}/device-profiles/{profileId}":{"delete":{"operationId":"deleteOrgsByOrgIdDeviceProfilesByProfileId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/device-profiles/{profileId}","tags":["devices"]},"put":{"operationId":"putOrgsByOrgIdDeviceProfilesByProfileId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/updateProfileRequestVariant"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/profileDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/device-profiles/{profileId}","tags":["devices"]}},"/api/v1/orgs/{orgId}/device-profiles/{profileId}/dictionaries":{"get":{"operationId":"getOrgsByOrgIdDeviceProfilesByProfileIdDictionaries","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Language for translated dictionary labels; defaults to the user's language.","in":"query","name":"lang","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"type","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by alias, name, type; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over alias, name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/dictionaryDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/device-profiles/{profileId}/dictionaries","tags":["devices"]}},"/api/v1/orgs/{orgId}/device-profiles/{profileId}/dictionaries/{alias}":{"get":{"operationId":"getOrgsByOrgIdDeviceProfilesByProfileIdDictionariesByAlias","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"alias","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Language for translated dictionary labels; defaults to the user's language.","in":"query","name":"lang","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/dictionaryDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/device-profiles/{profileId}/dictionaries/{alias}","tags":["devices"]}},"/api/v1/orgs/{orgId}/device-profiles/{profileId}/norms":{"get":{"operationId":"getOrgsByOrgIdDeviceProfilesByProfileIdNorms","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by key; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/modelNormDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/device-profiles/{profileId}/norms","tags":["devices"]}},"/api/v1/orgs/{orgId}/device-profiles/{profileId}/norms/{key}":{"delete":{"operationId":"deleteOrgsByOrgIdDeviceProfilesByProfileIdNormsByKey","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/device-profiles/{profileId}/norms/{key}","tags":["devices"]},"put":{"operationId":"putOrgsByOrgIdDeviceProfilesByProfileIdNormsByKey","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/normRequestDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/modelNormDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/device-profiles/{profileId}/norms/{key}","tags":["devices"]}},"/api/v1/orgs/{orgId}/device-profiles/{profileId}/quirks":{"put":{"operationId":"putOrgsByOrgIdDeviceProfilesByProfileIdQuirks","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"profileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/quirksRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/device-profiles/{profileId}/quirks","tags":["devices"]}},"/api/v1/orgs/{orgId}/device-slots":{"get":{"operationId":"getOrgsByOrgIdDeviceSlots","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceSlotsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/device-slots","tags":["device-slots"]}},"/api/v1/orgs/{orgId}/devices":{"get":{"operationId":"getOrgsByOrgIdDevices","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Only devices wearing a tag; comma-separated alternatives are accepted.","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"Filter by owner-controlled device lifecycle state.","in":"query","name":"status","required":false,"schema":{"enum":["planned","commissioned","operating","out_of_service","decommissioned"],"type":"string"}},{"description":"Filter to devices in this building.","in":"query","name":"building_id","required":false,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Filter to devices using this communication path.","in":"query","name":"path_id","required":false,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Filter to devices using this profile.","in":"query","name":"profile_id","required":false,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Filter to devices assigned to this building system.","in":"query","name":"system_id","required":false,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, status, serial; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, serial (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/deviceDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices","tags":["devices"]},"post":{"operationId":"postOrgsByOrgIdDevices","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createDeviceRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}","tags":["devices"]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/updateDeviceRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/activate":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdActivate","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/activateDeviceRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/activate","tags":["devices"],"x-available-when":[{"field":"status","in":["operating","out_of_service","commissioned"]}]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/attachments":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/listingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/attachments","tags":["devices"]},"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}},{"description":"For a file of a task: the step of its checklist the file belongs to.","in":"query","name":"step","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string","x-max-bytes":10485760}}},"description":"The bytes of the file: JPEG, PNG, WebP, HEIC, PDF or DWG, at most 10 MiB. What the file is is read from its bytes.","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/fileDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/attachments","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/backfill":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdBackfill","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/backfillRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/backfill","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/buckets":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdBuckets","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Metric key to aggregate.","in":"query","name":"metric","required":true,"schema":{"type":"string"}},{"description":"Bucket period: hour, day, or month.","in":"query","name":"period","required":true,"schema":{"enum":["h","d","m"],"type":"string"}},{"description":"Start of the window, RFC 3339.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"End of the window, RFC 3339.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Optional point limit; defaults to 1000 and is capped at 5000.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/bucketsResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/buckets","tags":["measurements"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/channels":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdChannels","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by whether channel collection is enabled.","in":"query","name":"enabled","required":false,"schema":{"enum":["true","false"],"type":"string"}},{"description":"Filter by whether channel collection is explicitly paused.","in":"query","name":"paused","required":false,"schema":{"enum":["true","false"],"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"group","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"unit","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by key, name, unit, group; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, key (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/channelDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/channels","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}":{"delete":{"operationId":"deleteOrgsByOrgIdDevicesByDeviceIdChannelsByKey","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/resetChannelRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}","tags":["devices"],"x-available-when":[{"field":"customized","empty":false}]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdChannelsByKey","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/control-proof":{"delete":{"operationId":"deleteOrgsByOrgIdDevicesByDeviceIdChannelsByKeyControlProof","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/resetChannelRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/control-proof","tags":["devices"],"x-available-when":[{"field":"control_approved_at","empty":false}]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdChannelsByKeyControlProof","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/controlProofRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/control-proof","tags":["devices"],"x-available-when":[{"field":"writable","empty":false}]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/write":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdChannelsByKeyWrite","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/writeRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/write","tags":["devices"],"x-available-when":[{"field":"writable","empty":false},{"field":"control_approved_at","empty":false}]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/write-requests":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdChannelsByKeyWriteRequests","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/valueRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pendingWriteDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/write-requests","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/write-rule":{"delete":{"operationId":"deleteOrgsByOrgIdDevicesByDeviceIdChannelsByKeyWriteRule","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/write-rule","tags":["devices"]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdChannelsByKeyWriteRule","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/writeRuleDTO"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/channels/{key}/write-rule","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/command-history":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdCommandHistory","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"key","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"result","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 100.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/commandRecordDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/command-history","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/commands":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdCommands","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by key, name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over key, name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/supportedCommandDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/commands","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/control-holds":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdControlHolds","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/holdsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/control-holds","tags":["devices"]},"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdControlHolds","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/buildingHoldRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/holdDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/control-holds","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/current":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdCurrent","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/currentResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/current","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/debug":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdDebug","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/debugDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/debug","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/debug-mode":{"delete":{"operationId":"deleteOrgsByOrgIdDevicesByDeviceIdDebugMode","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/devices/{deviceId}/debug-mode","tags":["diagnostics"]},"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdDebugMode","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDebugResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/debug-mode","tags":["diagnostics"]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdDebugMode","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/debugRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/setDebugResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/debug-mode","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/debug/live":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdDebugLive","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Live-stream duration in minutes; defaults to 15 and maximum is 60.","in":"query","name":"minutes","required":false,"schema":{"type":"integer"}}],"responses":{"101":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/debug/live","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/debug/stream":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdDebugStream","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Stream duration in minutes; default 15, range 1–60.","in":"query","name":"minutes","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Server-Sent Events: snapshot, update, and end events."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/debug/stream","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/discovered-fields":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdDiscoveredFields","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by field, last_seen, seen; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over field (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/discoveredDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/discovered-fields","tags":["connections"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/discovered-fields/status":{"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdDiscoveredFieldsStatus","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscoveredStatusRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/discovered-fields/status","tags":["connections"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/editions":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdEditions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceEditionsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/editions","tags":["devices"]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdEditions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/moveEditionRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/editions","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/export":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdExport","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated metric keys (1 to 24).","in":"query","name":"metric","required":true,"schema":{"type":"string"}},{"description":"Start of the window, RFC 3339.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"End of the window, RFC 3339.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"text/csv":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/export","tags":["exports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/export/raw":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdExportRaw","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated metric keys (1 to 24).","in":"query","name":"metric","required":true,"schema":{"type":"string"}},{"description":"Start of the window, RFC 3339.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"End of the window, RFC 3339; at most 92 days after from.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}}],"responses":{"200":{"content":{"application/x-ndjson":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/export/raw","tags":["exports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/health":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdHealth","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/healthResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/health","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/history":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdHistory","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Metric key to read.","in":"query","name":"metric","required":true,"schema":{"type":"string"}},{"description":"Start of the window, RFC 3339.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"End of the window, RFC 3339.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Optional point limit; defaults to 1000 and is capped at 5000.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/historyResponseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/history","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/model":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdModel","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/aboutModelDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/model","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/model/files/{fileId}":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdModelFilesByFileId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"fileId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/model/files/{fileId}","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/parameters":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdParameters","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/parametersDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/parameters","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/pipeline":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdPipeline","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by key; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/pipelineDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/pipeline","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/pipeline/{key}":{"delete":{"operationId":"deleteOrgsByOrgIdDevicesByDeviceIdPipelineByKey","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/devices/{deviceId}/pipeline/{key}","tags":["devices"]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdPipelineByKey","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"key","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pipelineDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pipelineDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/pipeline/{key}","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/polling":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdPolling","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/planDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/polling","tags":["acquisition"]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdPolling","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/setPlanRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/planDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/polling","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/probe":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdProbe","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/probeRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/probe","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/raw-exports":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdRawExports","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/requestBody"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/jobDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/raw-exports","tags":["exports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/read-now":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdReadNow","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/read-now","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/recomputes":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdRecomputes","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/recomputeDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/recomputes","tags":["devices"]},"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdRecomputes","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/startRecomputeRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/recomputeDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/recomputes","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/replace":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdReplace","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/request"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/response"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/replace","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/restore":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/restoreDeviceRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/restore","tags":["devices"],"x-available-when":[{"field":"status","in":["decommissioned","retired"]}]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/schedules":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdSchedules","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 200, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/commandScheduleDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/schedules","tags":["reports"]},"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdSchedules","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createCommandScheduleRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandScheduleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/schedules","tags":["reports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}":{"delete":{"operationId":"deleteOrgsByOrgIdDevicesByDeviceIdSchedulesByScheduleId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"scheduleId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}","tags":["reports"]},"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdSchedulesByScheduleId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"scheduleId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/updateCommandScheduleRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandScheduleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}","tags":["reports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}/disable":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdSchedulesByScheduleIdDisable","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"scheduleId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandScheduleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}/disable","tags":["reports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}/enable":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdSchedulesByScheduleIdEnable","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"scheduleId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/enableCommandScheduleRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/commandScheduleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}/enable","tags":["reports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}/runs":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdSchedulesByScheduleIdRuns","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"scheduleId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":50,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by due_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/commandRunDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/schedules/{scheduleId}/runs","tags":["reports"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/sessions":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdSessions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"protocol","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"outcome","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"device_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by started_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/sessionDTO2"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/sessions","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/status":{"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdStatus","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/statusRequestVariant"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/status","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/substation-points":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdSubstationPoints","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by substation_name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/substationUseDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/substation-points","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/system":{"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdSystem","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceSystemRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/system","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/tags":{"put":{"operationId":"putOrgsByOrgIdDevicesByDeviceIdTags","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/deviceTagsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/wornTagsDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/devices/{deviceId}/tags","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/transitions":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdTransitions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/transitionDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/transitions","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/verification-intervals":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdVerificationIntervals","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/intervalsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/verification-intervals","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/verifications":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdVerifications","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/historyDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/verifications","tags":["devices"]},"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdVerifications","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/verificationRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/verificationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/verifications","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/verifications/{verificationId}/attachments":{"get":{"operationId":"getOrgsByOrgIdDevicesByDeviceIdVerificationsByVerificationIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"verificationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/listingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/devices/{deviceId}/verifications/{verificationId}/attachments","tags":["devices"]},"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdVerificationsByVerificationIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"verificationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}},{"description":"For a file of a task: the step of its checklist the file belongs to.","in":"query","name":"step","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string","x-max-bytes":10485760}}},"description":"The bytes of the file: JPEG, PNG, WebP, HEIC, PDF or DWG, at most 10 MiB. What the file is is read from its bytes.","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/fileDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/verifications/{verificationId}/attachments","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/verifications/{verificationId}/review":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdVerificationsByVerificationIdReview","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"verificationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/reviewRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/verificationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/verifications/{verificationId}/review","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/write-requests/{requestId}/approve":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdWriteRequestsByRequestIdApprove","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"requestId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/write-requests/{requestId}/approve","tags":["devices"]}},"/api/v1/orgs/{orgId}/devices/{deviceId}/write-requests/{requestId}/reject":{"post":{"operationId":"postOrgsByOrgIdDevicesByDeviceIdWriteRequestsByRequestIdReject","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"deviceId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"requestId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/devices/{deviceId}/write-requests/{requestId}/reject","tags":["devices"]}},"/api/v1/orgs/{orgId}/domains":{"get":{"operationId":"getOrgsByOrgIdDomains","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by host; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/domainDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/domains","tags":["domains"]},"post":{"operationId":"postOrgsByOrgIdDomains","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/addDomainRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/domainDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/domains","tags":["domains"]}},"/api/v1/orgs/{orgId}/domains/{host}":{"delete":{"operationId":"deleteOrgsByOrgIdDomainsByHost","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"host","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/domains/{host}","tags":["domains"]}},"/api/v1/orgs/{orgId}/domains/{host}/verify":{"post":{"operationId":"postOrgsByOrgIdDomainsByHostVerify","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"host","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/domainDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/domains/{host}/verify","tags":["domains"],"x-available-when":[{"field":"status","in":["pending"]}]}},"/api/v1/orgs/{orgId}/efficiency-scale":{"get":{"operationId":"getOrgsByOrgIdEfficiencyScale","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scaleDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/efficiency-scale","tags":["indicators"]},"put":{"operationId":"putOrgsByOrgIdEfficiencyScale","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scaleDTO"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/efficiency-scale","tags":["indicators"]}},"/api/v1/orgs/{orgId}/export":{"get":{"operationId":"getOrgsByOrgIdExport","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/zip":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/export","tags":["exports"]}},"/api/v1/orgs/{orgId}/features":{"get":{"operationId":"getOrgsByOrgIdFeatures","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"enabled","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by feature; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/orgFeatureDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/features","tags":["commercial"]}},"/api/v1/orgs/{orgId}/grants/{grantId}":{"delete":{"operationId":"deleteOrgsByOrgIdGrantsByGrantId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"grantId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/grants/{grantId}","tags":["identity"]}},"/api/v1/orgs/{orgId}/inbox":{"get":{"operationId":"getOrgsByOrgIdInbox","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Use 1 to return only unread messages; 0 returns all messages.","in":"query","name":"unread","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/inboxDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/inbox","tags":["notifications"]}},"/api/v1/orgs/{orgId}/inbox/read-all":{"post":{"operationId":"postOrgsByOrgIdInboxReadAll","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inboxReadAllDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/inbox/read-all","tags":["notifications"]}},"/api/v1/orgs/{orgId}/inbox/subscriptions":{"get":{"operationId":"getOrgsByOrgIdInboxSubscriptions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"channel_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by event_prefix; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/subDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/inbox/subscriptions","tags":["notifications"]},"post":{"operationId":"postOrgsByOrgIdInboxSubscriptions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inboxSubscribeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/inbox/subscriptions","tags":["notifications"]}},"/api/v1/orgs/{orgId}/inbox/subscriptions/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdInboxSubscriptionsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/inbox/subscriptions/{id}","tags":["notifications"]}},"/api/v1/orgs/{orgId}/inbox/unread":{"get":{"operationId":"getOrgsByOrgIdInboxUnread","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inboxUnreadDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/inbox/unread","tags":["notifications"]}},"/api/v1/orgs/{orgId}/inbox/{id}/read":{"post":{"operationId":"postOrgsByOrgIdInboxByIdRead","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/inbox/{id}/read","tags":["notifications"],"x-available-when":[{"field":"read_at","empty":true}]}},"/api/v1/orgs/{orgId}/incidents":{"get":{"operationId":"getOrgsByOrgIdIncidents","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated building ULIDs; intersected with the caller's grants.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Comma-separated device ULIDs.","in":"query","name":"device_id","required":false,"schema":{"type":"string"}},{"description":"Incident state: open, acknowledged, resolved, or closed.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Incident severity: info, warning, or critical.","in":"query","name":"severity","required":false,"schema":{"type":"string"}},{"description":"Incident kind: limit or manual.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Whether follow-up is required: true or false.","in":"query","name":"follow_up","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by opened_at, updated_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over title (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/incidentDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/incidents","tags":["incidents"]},"post":{"operationId":"postOrgsByOrgIdIncidents","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/openRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/incidentDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/incidents","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/attention":{"get":{"operationId":"getOrgsByOrgIdIncidentsAttention","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"One building ULID to limit the attention list.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/attentionResponseDTO"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/incidents/attention","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/breaches":{"get":{"operationId":"getOrgsByOrgIdIncidentsBreaches","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The device.","in":"query","name":"device_id","required":true,"schema":{"type":"string"}},{"description":"One metric of the device, or omitted for all.","in":"query","name":"metric","required":false,"schema":{"type":"string"}},{"description":"Start of the period, RFC 3339.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"End of the period, RFC 3339; at most 400 days after from.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Items per page; default 100, maximum 50.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":50,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by opened_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/breachDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/incidents/breaches","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/sla":{"get":{"operationId":"getOrgsByOrgIdIncidentsSla","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"$ref":"#/components/schemas/slaTargetDTO"},"type":"object"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/incidents/sla","tags":["incidents"]},"put":{"operationId":"putOrgsByOrgIdIncidentsSla","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":{"$ref":"#/components/schemas/slaTargetRequest"},"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"$ref":"#/components/schemas/slaTargetDTO"},"type":"object"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/incidents/sla","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/sla/calendar":{"delete":{"operationId":"deleteOrgsByOrgIdIncidentsSlaCalendar","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/incidents/sla/calendar","tags":["incidents"]},"get":{"operationId":"getOrgsByOrgIdIncidentsSlaCalendar","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/calendarDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/incidents/sla/calendar","tags":["incidents"]},"put":{"operationId":"putOrgsByOrgIdIncidentsSlaCalendar","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/calendarDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/calendarDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/incidents/sla/calendar","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/sla/rules":{"get":{"operationId":"getOrgsByOrgIdIncidentsSlaRules","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/rulesDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/incidents/sla/rules","tags":["incidents"]},"put":{"operationId":"putOrgsByOrgIdIncidentsSlaRules","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/rulesDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/rulesDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/incidents/sla/rules","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/{id}":{"get":{"operationId":"getOrgsByOrgIdIncidentsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/incidentDetailDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/incidents/{id}","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/{id}/acknowledge":{"post":{"operationId":"postOrgsByOrgIdIncidentsByIdAcknowledge","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/incidentDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/incidents/{id}/acknowledge","tags":["incidents"],"x-available-when":[{"field":"state","in":["open"]}]}},"/api/v1/orgs/{orgId}/incidents/{id}/close":{"post":{"operationId":"postOrgsByOrgIdIncidentsByIdClose","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/incidentDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/incidents/{id}/close","tags":["incidents"],"x-available-when":[{"field":"state","in":["resolved"]}]}},"/api/v1/orgs/{orgId}/incidents/{id}/notes":{"post":{"operationId":"postOrgsByOrgIdIncidentsByIdNotes","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/noteRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/incidents/{id}/notes","tags":["incidents"]}},"/api/v1/orgs/{orgId}/incidents/{id}/reopen":{"post":{"operationId":"postOrgsByOrgIdIncidentsByIdReopen","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/reasonRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/incidentDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/incidents/{id}/reopen","tags":["incidents"],"x-available-when":[{"field":"state","in":["resolved","closed"]}]}},"/api/v1/orgs/{orgId}/incidents/{id}/resolve":{"post":{"operationId":"postOrgsByOrgIdIncidentsByIdResolve","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/causeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/incidentDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/incidents/{id}/resolve","tags":["incidents"],"x-available-when":[{"field":"state","in":["open","acknowledged"]}]}},"/api/v1/orgs/{orgId}/invitations":{"get":{"operationId":"getOrgsByOrgIdInvitations","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/invitationRowDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/invitations","tags":["identity"]},"post":{"operationId":"postOrgsByOrgIdInvitations","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inviteRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inviteResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/invitations","tags":["identity"]}},"/api/v1/orgs/{orgId}/keys":{"get":{"operationId":"getOrgsByOrgIdKeys","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, expires_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/keyDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/keys","tags":["identity"]},"post":{"operationId":"postOrgsByOrgIdKeys","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createKeyRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/keySecretResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/keys","tags":["identity"]}},"/api/v1/orgs/{orgId}/keys/{keyId}":{"delete":{"operationId":"deleteOrgsByOrgIdKeysByKeyId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"keyId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/keys/{keyId}","tags":["identity"],"x-available-when":[{"field":"status","in":["active"]}]}},"/api/v1/orgs/{orgId}/keys/{keyId}/rotate":{"post":{"operationId":"postOrgsByOrgIdKeysByKeyIdRotate","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"keyId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/rotateKeyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/keySecretResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/keys/{keyId}/rotate","tags":["identity"]}},"/api/v1/orgs/{orgId}/legal-terms":{"post":{"operationId":"postOrgsByOrgIdLegalTerms","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/publishOrganizationRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/documentResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/legal-terms","tags":["legal-terms"]}},"/api/v1/orgs/{orgId}/legal-terms/{language}":{"get":{"operationId":"getOrgsByOrgIdLegalTermsByLanguage","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"language","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 10, maximum 10.","in":"query","name":"limit","required":false,"schema":{"default":10,"maximum":10,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/documentResponse"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/legal-terms/{language}","tags":["legal-terms"]}},"/api/v1/orgs/{orgId}/live":{"get":{"operationId":"getOrgsByOrgIdLive","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated topics to follow: incidents, inbox, deliveries. Omitted: every topic the person may see.","in":"query","name":"topics","required":false,"schema":{"type":"string"}},{"description":"Stream duration in minutes; default 15, range 1–60.","in":"query","name":"minutes","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"text/event-stream":{"schema":{"type":"string"}}},"description":"Server-Sent Events: snapshot, update and end. A snapshot gives a fingerprint per topic; an update names the topics whose fingerprint changed (read them again); end says why the stream stopped. No data travels on it."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/live","tags":["live"]}},"/api/v1/orgs/{orgId}/location":{"get":{"operationId":"getOrgsByOrgIdLocation","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/locationDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/location","tags":["location"]}},"/api/v1/orgs/{orgId}/maintenance/plans":{"get":{"operationId":"getOrgsByOrgIdMaintenancePlans","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Recurring work of a building.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Recurring work about a device.","in":"query","name":"device_id","required":false,"schema":{"type":"string"}},{"description":"active, paused or retired.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by next_due, title; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over title (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/planDTO2"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/maintenance/plans","tags":["maintenance"]},"post":{"operationId":"postOrgsByOrgIdMaintenancePlans","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/planCreateRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/planDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/maintenance/plans","tags":["maintenance"]}},"/api/v1/orgs/{orgId}/maintenance/plans/{planId}":{"get":{"operationId":"getOrgsByOrgIdMaintenancePlansByPlanId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"planId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/planDetailDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/maintenance/plans/{planId}","tags":["maintenance"]},"put":{"operationId":"putOrgsByOrgIdMaintenancePlansByPlanId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"planId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/planUpdateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/planDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/maintenance/plans/{planId}","tags":["maintenance"]}},"/api/v1/orgs/{orgId}/maintenance/settings":{"get":{"operationId":"getOrgsByOrgIdMaintenanceSettings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/settingsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/maintenance/settings","tags":["maintenance"]},"put":{"operationId":"putOrgsByOrgIdMaintenanceSettings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/settingsDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/settingsDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/maintenance/settings","tags":["maintenance"]}},"/api/v1/orgs/{orgId}/maintenance/verifications":{"get":{"operationId":"getOrgsByOrgIdMaintenanceVerifications","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Meters of a building.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Comma-separated states: overdue, failed, due_soon, none, valid.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by urgency, valid_until, name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, serial (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/meterDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/maintenance/verifications","tags":["maintenance"]}},"/api/v1/orgs/{orgId}/my-activity":{"get":{"operationId":"getOrgsByOrgIdMyActivity","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/ownActivityDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/my-activity","tags":["my-activity"]}},"/api/v1/orgs/{orgId}/notification-channels":{"get":{"operationId":"getOrgsByOrgIdNotificationChannels","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, kind, status; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/channelDTO2"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/notification-channels","tags":["notifications"]},"post":{"operationId":"postOrgsByOrgIdNotificationChannels","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createRequest3"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/notification-channels","tags":["notifications"]}},"/api/v1/orgs/{orgId}/notification-channels/telegram-bind":{"post":{"operationId":"postOrgsByOrgIdNotificationChannelsTelegramBind","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/bindRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/telegramBindDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/notification-channels/telegram-bind","tags":["notifications"]}},"/api/v1/orgs/{orgId}/notification-channels/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdNotificationChannelsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/notification-channels/{id}","tags":["notifications"]},"patch":{"operationId":"patchOrgsByOrgIdNotificationChannelsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelStatusRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PATCH /api/v1/orgs/{orgId}/notification-channels/{id}","tags":["notifications"]}},"/api/v1/orgs/{orgId}/notification-channels/{id}/quiet":{"get":{"operationId":"getOrgsByOrgIdNotificationChannelsByIdQuiet","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/quietDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/notification-channels/{id}/quiet","tags":["notifications"]},"put":{"operationId":"putOrgsByOrgIdNotificationChannelsByIdQuiet","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/quietDTO"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/notification-channels/{id}/quiet","tags":["notifications"]}},"/api/v1/orgs/{orgId}/notification-channels/{id}/test":{"post":{"operationId":"postOrgsByOrgIdNotificationChannelsByIdTest","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/channelTestDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/notification-channels/{id}/test","tags":["notifications"]}},"/api/v1/orgs/{orgId}/notification-deliveries":{"get":{"operationId":"getOrgsByOrgIdNotificationDeliveries","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"channel_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at, state; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/deliveryDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/notification-deliveries","tags":["notifications"]}},"/api/v1/orgs/{orgId}/notification-subscriptions":{"get":{"operationId":"getOrgsByOrgIdNotificationSubscriptions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"channel_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by event_prefix; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over event_prefix (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/subDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/notification-subscriptions","tags":["notifications"]},"post":{"operationId":"postOrgsByOrgIdNotificationSubscriptions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subDTO"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/notification-subscriptions","tags":["notifications"]}},"/api/v1/orgs/{orgId}/notification-subscriptions/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdNotificationSubscriptionsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/notification-subscriptions/{id}","tags":["notifications"]}},"/api/v1/orgs/{orgId}/oncall":{"get":{"operationId":"getOrgsByOrgIdOncall","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"One building ULID, or omitted for organisation-wide coverage.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Evaluate the rota at this RFC 3339 time; defaults to now.","in":"query","name":"at","required":false,"schema":{"format":"date-time","type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by starts_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/onCallResponseDTO"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/oncall","tags":["incidents"]}},"/api/v1/orgs/{orgId}/oncall/shifts":{"get":{"operationId":"getOrgsByOrgIdOncallShifts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Include shifts starting at or after this RFC 3339 time.","in":"query","name":"from","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"Include shifts starting before this RFC 3339 time.","in":"query","name":"to","required":true,"schema":{"format":"date-time","type":"string"}},{"description":"One building ULID.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"One person ID.","in":"query","name":"person_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by starts_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/shiftDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/oncall/shifts","tags":["incidents"]},"post":{"operationId":"postOrgsByOrgIdOncallShifts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/shiftRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/shiftDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/oncall/shifts","tags":["incidents"]}},"/api/v1/orgs/{orgId}/oncall/shifts/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdOncallShiftsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/oncall/shifts/{id}","tags":["incidents"]}},"/api/v1/orgs/{orgId}/operations/{jobId}":{"get":{"operationId":"getOrgsByOrgIdOperationsByJobId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"jobId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/operationDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/operations/{jobId}","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/packages":{"get":{"operationId":"getOrgsByOrgIdPackages","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by starts_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/orgPackageDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/packages","tags":["commercial"]}},"/api/v1/orgs/{orgId}/paths":{"get":{"operationId":"getOrgsByOrgIdPaths","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by physical communication transport.","in":"query","name":"kind","required":false,"schema":{"enum":["inbound","tcp"],"type":"string"}},{"description":"Filter by owner-controlled path lifecycle state.","in":"query","name":"status","required":false,"schema":{"enum":["enabled","blocked","retired"],"type":"string"}},{"description":"Filter to paths in this building.","in":"query","name":"building_id","required":false,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, kind, status; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, endpoint (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/pathDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths","tags":["connections"]},"post":{"operationId":"postOrgsByOrgIdPaths","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createPathRequestVariant"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/paths","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}":{"put":{"operationId":"putOrgsByOrgIdPathsByPathId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/updatePathRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/allow":{"put":{"operationId":"putOrgsByOrgIdPathsByPathIdAllow","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/allowRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/peerSummaryResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/allow","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/connection":{"get":{"operationId":"getOrgsByOrgIdPathsByPathIdConnection","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/lineDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths/{pathId}/connection","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/inbound":{"get":{"operationId":"getOrgsByOrgIdPathsByPathIdInbound","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inboundDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths/{pathId}/inbound","tags":["connections"]},"put":{"operationId":"putOrgsByOrgIdPathsByPathIdInbound","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/setInboundRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/inboundDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/inbound","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/legacy-aes":{"get":{"operationId":"getOrgsByOrgIdPathsByPathIdLegacyAes","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathLegacyAESResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths/{pathId}/legacy-aes","tags":["connections"]},"put":{"operationId":"putOrgsByOrgIdPathsByPathIdLegacyAes","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathLegacyAESUpdate"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/legacy-aes","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/legacy-aes/key":{"put":{"operationId":"putOrgsByOrgIdPathsByPathIdLegacyAesKey","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathLegacyAESKeyRequest"}}},"required":true},"responses":{"204":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/legacy-aes/key","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/peers":{"get":{"operationId":"getOrgsByOrgIdPathsByPathIdPeers","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/peerSummaryResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths/{pathId}/peers","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/proxies":{"get":{"operationId":"getOrgsByOrgIdPathsByPathIdProxies","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"active","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at, expires_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/proxyDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths/{pathId}/proxies","tags":["diagnostics"]},"post":{"operationId":"postOrgsByOrgIdPathsByPathIdProxies","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/proxyRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/proxyDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/paths/{pathId}/proxies","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/quirks":{"put":{"operationId":"putOrgsByOrgIdPathsByPathIdQuirks","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/quirksRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/quirks","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/recording":{"delete":{"operationId":"deleteOrgsByOrgIdPathsByPathIdRecording","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/paths/{pathId}/recording","tags":["diagnostics"]},"get":{"operationId":"getOrgsByOrgIdPathsByPathIdRecording","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathRecordingResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths/{pathId}/recording","tags":["diagnostics"]},"put":{"operationId":"putOrgsByOrgIdPathsByPathIdRecording","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/debugRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/setPathRecordingResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/recording","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/restore":{"post":{"operationId":"postOrgsByOrgIdPathsByPathIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/restorePathRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/paths/{pathId}/restore","tags":["connections"],"x-available-when":[{"field":"status","in":["retired"]}]}},"/api/v1/orgs/{orgId}/paths/{pathId}/server":{"put":{"operationId":"putOrgsByOrgIdPathsByPathIdServer","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/serverRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/server","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/status":{"put":{"operationId":"putOrgsByOrgIdPathsByPathIdStatus","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/statusRequestVariant2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/pathDTOVariant"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/paths/{pathId}/status","tags":["connections"]}},"/api/v1/orgs/{orgId}/paths/{pathId}/transitions":{"get":{"operationId":"getOrgsByOrgIdPathsByPathIdTransitions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"to","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/transitionDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/paths/{pathId}/transitions","tags":["acquisition"]}},"/api/v1/orgs/{orgId}/people":{"get":{"operationId":"getOrgsByOrgIdPeople","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"account_status","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"email_verified","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by display_name, email, status; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over display_name, email (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/personDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/people","tags":["identity"]},"post":{"operationId":"postOrgsByOrgIdPeople","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/addPersonRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/personIDResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/people","tags":["identity"]}},"/api/v1/orgs/{orgId}/people/{personId}/anonymise":{"post":{"operationId":"postOrgsByOrgIdPeopleByPersonIdAnonymise","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"personId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/people/{personId}/anonymise","tags":["identity"]}},"/api/v1/orgs/{orgId}/people/{personId}/block":{"post":{"operationId":"postOrgsByOrgIdPeopleByPersonIdBlock","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"personId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/lifecycleBlockRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/people/{personId}/block","tags":["identity"],"x-available-when":[{"field":"account_status","not_in":["blocked"]}]}},"/api/v1/orgs/{orgId}/people/{personId}/grants":{"post":{"operationId":"postOrgsByOrgIdPeopleByPersonIdGrants","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"personId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/addGrantRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/grantIDResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/people/{personId}/grants","tags":["identity"]}},"/api/v1/orgs/{orgId}/people/{personId}/invitation":{"post":{"operationId":"postOrgsByOrgIdPeopleByPersonIdInvitation","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"personId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"202":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/people/{personId}/invitation","tags":["identity"]}},"/api/v1/orgs/{orgId}/people/{personId}/revoke-access":{"post":{"operationId":"postOrgsByOrgIdPeopleByPersonIdRevokeAccess","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"personId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/revokeAccessResponse"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/people/{personId}/revoke-access","tags":["identity"]}},"/api/v1/orgs/{orgId}/people/{personId}/unblock":{"post":{"operationId":"postOrgsByOrgIdPeopleByPersonIdUnblock","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"personId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/people/{personId}/unblock","tags":["identity"],"x-available-when":[{"field":"account_status","in":["blocked"]}]}},"/api/v1/orgs/{orgId}/platform-requests":{"get":{"operationId":"getOrgsByOrgIdPlatformRequests","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over message (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/requestDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/platform-requests","tags":["platform-requests"]},"post":{"operationId":"postOrgsByOrgIdPlatformRequests","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/askPlatformRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/requestDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/platform-requests","tags":["platform-requests"]}},"/api/v1/orgs/{orgId}/platform-requests/{requestId}/close":{"post":{"operationId":"postOrgsByOrgIdPlatformRequestsByRequestIdClose","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"requestId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/requestDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/platform-requests/{requestId}/close","tags":["platform-requests"],"x-available-when":[{"field":"status","in":["open"]},{"field":"thread_id","empty":true}]}},"/api/v1/orgs/{orgId}/platform-requests/{requestId}/replies":{"post":{"operationId":"postOrgsByOrgIdPlatformRequestsByRequestIdReplies","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"requestId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/replyBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/requestDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/platform-requests/{requestId}/replies","tags":["platform-requests"],"x-available-when":[{"field":"thread_id","empty":true}]}},"/api/v1/orgs/{orgId}/policy":{"get":{"operationId":"getOrgsByOrgIdPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/policy","tags":["policy"]},"put":{"operationId":"putOrgsByOrgIdPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyUpdate"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/policy","tags":["policy"]}},"/api/v1/orgs/{orgId}/policy/mfa-gaps":{"get":{"operationId":"getOrgsByOrgIdPolicyMfaGaps","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/MFAGap"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/policy/mfa-gaps","tags":["policy"]}},"/api/v1/orgs/{orgId}/policy/mfa-gaps/remind":{"post":{"operationId":"postOrgsByOrgIdPolicyMfaGapsRemind","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderResult"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/policy/mfa-gaps/remind","tags":["policy"]}},"/api/v1/orgs/{orgId}/preferences":{"get":{"operationId":"getOrgsByOrgIdPreferences","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orgDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/preferences","tags":["identity"]},"put":{"operationId":"putOrgsByOrgIdPreferences","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/patchDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orgDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/preferences","tags":["identity"]}},"/api/v1/orgs/{orgId}/proxies":{"get":{"operationId":"getOrgsByOrgIdProxies","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"active","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at, expires_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/proxyDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/proxies","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/proxies/{proxyId}":{"delete":{"operationId":"deleteOrgsByOrgIdProxiesByProxyId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"proxyId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/proxies/{proxyId}","tags":["diagnostics"],"x-available-when":[{"field":"active","empty":false}]},"get":{"operationId":"getOrgsByOrgIdProxiesByProxyId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"proxyId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/proxyDetailResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/proxies/{proxyId}","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/proxies/{proxyId}/live":{"get":{"operationId":"getOrgsByOrgIdProxiesByProxyIdLive","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"proxyId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Live-stream duration in minutes; defaults to 15 and maximum is 60.","in":"query","name":"minutes","required":false,"schema":{"type":"integer"}}],"responses":{"101":{"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/proxies/{proxyId}/live","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/push-endpoints":{"get":{"operationId":"getOrgsByOrgIdPushEndpoints","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, status, created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/endpointDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/push-endpoints","tags":["push-endpoints"]},"post":{"operationId":"postOrgsByOrgIdPushEndpoints","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createEndpointRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createdDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/push-endpoints","tags":["push-endpoints"]}},"/api/v1/orgs/{orgId}/push-endpoints/{pathId}":{"get":{"operationId":"getOrgsByOrgIdPushEndpointsByPathId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/endpointDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/push-endpoints/{pathId}","tags":["push-endpoints"]}},"/api/v1/orgs/{orgId}/push-endpoints/{pathId}/secret":{"post":{"operationId":"postOrgsByOrgIdPushEndpointsByPathIdSecret","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pathId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/createdDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/push-endpoints/{pathId}/secret","tags":["push-endpoints"]}},"/api/v1/orgs/{orgId}/qr-cards/{kind}/{objectId}":{"get":{"operationId":"getOrgsByOrgIdQrCardsByKindByObjectId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"kind","required":true,"schema":{"type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"objectId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/cardDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/qr-cards/{kind}/{objectId}","tags":["qr-cards"]},"put":{"operationId":"putOrgsByOrgIdQrCardsByKindByObjectId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"kind","required":true,"schema":{"type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"objectId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/cardRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/cardDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/qr-cards/{kind}/{objectId}","tags":["qr-cards"]}},"/api/v1/orgs/{orgId}/qr-codes":{"post":{"operationId":"postOrgsByOrgIdQrCodes","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/labelsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/labelsDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/qr-codes","tags":["qr-codes"]}},"/api/v1/orgs/{orgId}/qr-codes/{code}":{"get":{"operationId":"getOrgsByOrgIdQrCodesByCode","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"code","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/labelDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/qr-codes/{code}","tags":["qr-codes"]}},"/api/v1/orgs/{orgId}/raw-exports":{"get":{"operationId":"getOrgsByOrgIdRawExports","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Filter by one or more job states: queued, running, done, failed.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Filter by one or more device IDs.","in":"query","name":"device_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/jobDTO2"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/raw-exports","tags":["exports"]}},"/api/v1/orgs/{orgId}/raw-exports/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdRawExportsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/raw-exports/{id}","tags":["exports"]},"get":{"operationId":"getOrgsByOrgIdRawExportsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/jobDTO2"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/raw-exports/{id}","tags":["exports"]}},"/api/v1/orgs/{orgId}/raw-exports/{id}/download":{"get":{"operationId":"getOrgsByOrgIdRawExportsByIdDownload","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/gzip":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/raw-exports/{id}/download","tags":["exports"],"x-available-when":[{"field":"status","in":["done","ready","succeeded"]}]}},"/api/v1/orgs/{orgId}/recomputes/{id}":{"get":{"operationId":"getOrgsByOrgIdRecomputesById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/recomputeDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/recomputes/{id}","tags":["recomputes"]}},"/api/v1/orgs/{orgId}/recomputes/{id}/cancel":{"post":{"operationId":"postOrgsByOrgIdRecomputesByIdCancel","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/recomputes/{id}/cancel","tags":["recomputes"],"x-available-when":[{"field":"status","in":["queued","running","pending"]}]}},"/api/v1/orgs/{orgId}/reports/archive":{"get":{"operationId":"getOrgsByOrgIdReportsArchive","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"xlsx or pdf.","in":"query","name":"format","required":true,"schema":{"enum":["xlsx","pdf"],"type":"string"}},{"description":"Comma-separated runs, at most 50.","in":"query","name":"id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/zip":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/archive","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/catalogue":{"get":{"operationId":"getOrgsByOrgIdReportsCatalogue","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/catalogueDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/catalogue","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/library":{"get":{"operationId":"getOrgsByOrgIdReportsLibrary","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, published_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/libraryDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/library","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/library/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdReportsLibraryById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/reports/library/{id}","tags":["reports"],"x-available-when":[{"field":"own","empty":false}]}},"/api/v1/orgs/{orgId}/reports/library/{id}/adopt":{"post":{"operationId":"postOrgsByOrgIdReportsLibraryByIdAdopt","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/adoptRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/library/{id}/adopt","tags":["reports"],"x-available-when":[{"field":"own","empty":true}]}},"/api/v1/orgs/{orgId}/reports/overview":{"get":{"operationId":"getOrgsByOrgIdReportsOverview","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"1, 7 or 30 whole days back; not needed with from and until.","in":"query","name":"days","required":false,"schema":{"type":"integer"}},{"description":"First day of the period, 2026-11-01.","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"Last day of the period, included; before today, at most 92 days.","in":"query","name":"until","required":false,"schema":{"type":"string"}},{"description":"Comma-separated buildings; omitted: all the caller may see.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Only devices of this model.","in":"query","name":"profile_id","required":false,"schema":{"type":"string"}},{"description":"Only devices wearing the tag, or in a building wearing it.","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"Only devices of systems of this kind, for example heating.","in":"query","name":"system","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/overviewDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/overview","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/overview/file":{"get":{"operationId":"getOrgsByOrgIdReportsOverviewFile","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"xlsx or pdf.","in":"query","name":"format","required":true,"schema":{"enum":["xlsx","pdf"],"type":"string"}},{"description":"1, 7 or 30 whole days back; not needed with from and until.","in":"query","name":"days","required":false,"schema":{"type":"integer"}},{"description":"First day of the period, 2026-11-01.","in":"query","name":"from","required":false,"schema":{"type":"string"}},{"description":"Last day of the period, included; before today, at most 92 days.","in":"query","name":"until","required":false,"schema":{"type":"string"}},{"description":"Comma-separated buildings; omitted: all the caller may see.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Only devices of this model.","in":"query","name":"profile_id","required":false,"schema":{"type":"string"}},{"description":"Only devices wearing the tag, or in a building wearing it.","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"Only devices of systems of this kind, for example heating.","in":"query","name":"system","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/overview/file","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/overview/subscriptions":{"get":{"operationId":"getOrgsByOrgIdReportsOverviewSubscriptions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscriptionsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/overview/subscriptions","tags":["reports"]},"post":{"operationId":"postOrgsByOrgIdReportsOverviewSubscriptions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscribeRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/subscriptionDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/overview/subscriptions","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/overview/subscriptions/{subscriptionId}":{"delete":{"operationId":"deleteOrgsByOrgIdReportsOverviewSubscriptionsBySubscriptionId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"subscriptionId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/reports/overview/subscriptions/{subscriptionId}","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/runs":{"get":{"operationId":"getOrgsByOrgIdReportsRuns","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated building ULIDs, always restricted to current grants.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Comma-separated report kinds.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Run status: queued, ready, failed, or cancelled.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over title (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/runDTO2"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/runs","tags":["reports"]},"post":{"operationId":"postOrgsByOrgIdReportsRuns","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/runRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/runDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/runDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/runs","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/runs/{id}":{"get":{"operationId":"getOrgsByOrgIdReportsRunsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/runDTO2"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/runs/{id}","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/runs/{id}/cancel":{"post":{"operationId":"postOrgsByOrgIdReportsRunsByIdCancel","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/runDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/runs/{id}/cancel","tags":["reports"],"x-available-when":[{"field":"status","in":["queued","running","pending"]}]}},"/api/v1/orgs/{orgId}/reports/runs/{id}/csv":{"get":{"operationId":"getOrgsByOrgIdReportsRunsByIdCsv","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/csv":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/runs/{id}/csv","tags":["reports"],"x-available-when":[{"field":"status","in":["done","ready","succeeded"]}]}},"/api/v1/orgs/{orgId}/reports/runs/{id}/pdf":{"get":{"operationId":"getOrgsByOrgIdReportsRunsByIdPdf","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/pdf":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/runs/{id}/pdf","tags":["reports"],"x-available-when":[{"field":"status","in":["done","ready","succeeded"]}]}},"/api/v1/orgs/{orgId}/reports/runs/{id}/xlsx":{"get":{"operationId":"getOrgsByOrgIdReportsRunsByIdXlsx","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/runs/{id}/xlsx","tags":["reports"],"x-available-when":[{"field":"status","in":["done","ready","succeeded"]}]}},"/api/v1/orgs/{orgId}/reports/schedules":{"get":{"operationId":"getOrgsByOrgIdReportsSchedules","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"enabled","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by created_at, day_of_month; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/scheduleDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/schedules","tags":["reports"]},"post":{"operationId":"postOrgsByOrgIdReportsSchedules","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduleRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/schedules","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/schedules/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdReportsSchedulesById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/reports/schedules/{id}","tags":["reports"]},"put":{"operationId":"putOrgsByOrgIdReportsSchedulesById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduleChange"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scheduleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/reports/schedules/{id}","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/templates":{"get":{"operationId":"getOrgsByOrgIdReportsTemplates","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"period","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"archived","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/templateDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/templates","tags":["reports"]},"post":{"operationId":"postOrgsByOrgIdReportsTemplates","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/templates","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/templates/{id}":{"delete":{"operationId":"deleteOrgsByOrgIdReportsTemplatesById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/reports/templates/{id}","tags":["reports"]},"patch":{"operationId":"patchOrgsByOrgIdReportsTemplatesById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/editTemplateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PATCH /api/v1/orgs/{orgId}/reports/templates/{id}","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/templates/{id}/publish":{"post":{"operationId":"postOrgsByOrgIdReportsTemplatesByIdPublish","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/publishRequest"}}},"required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/libraryDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/templates/{id}/publish","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/templates/{id}/restore":{"post":{"operationId":"postOrgsByOrgIdReportsTemplatesByIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/restoreTemplateRequest"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/templates/{id}/restore","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/templates/{id}/versions":{"get":{"operationId":"getOrgsByOrgIdReportsTemplatesByIdVersions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by version, created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/templateVersionDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/reports/templates/{id}/versions","tags":["reports"]}},"/api/v1/orgs/{orgId}/reports/templates/{id}/versions/{version}/revert":{"post":{"operationId":"postOrgsByOrgIdReportsTemplatesByIdVersionsByVersionRevert","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"version","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/reports/templates/{id}/versions/{version}/revert","tags":["reports"]}},"/api/v1/orgs/{orgId}/requisites":{"get":{"operationId":"getOrgsByOrgIdRequisites","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/requisitesDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/requisites","tags":["requisites"]},"put":{"operationId":"putOrgsByOrgIdRequisites","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/requisitesRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/requisitesDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/requisites","tags":["requisites"]}},"/api/v1/orgs/{orgId}/resident-applications":{"get":{"operationId":"getOrgsByOrgIdResidentApplications","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Requests about a building.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Comma-separated states: pending, approved, rejected.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by confirmed_at, name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, email, premises_number (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/applicationDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/resident-applications","tags":["resident-applications"]}},"/api/v1/orgs/{orgId}/resident-applications/{applicationId}":{"get":{"operationId":"getOrgsByOrgIdResidentApplicationsByApplicationId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"applicationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/applicationDetailDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/resident-applications/{applicationId}","tags":["resident-applications"]}},"/api/v1/orgs/{orgId}/resident-applications/{applicationId}/approve":{"post":{"operationId":"postOrgsByOrgIdResidentApplicationsByApplicationIdApprove","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"applicationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/approveRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/membershipDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/resident-applications/{applicationId}/approve","tags":["resident-applications"]}},"/api/v1/orgs/{orgId}/resident-applications/{applicationId}/reject":{"post":{"operationId":"postOrgsByOrgIdResidentApplicationsByApplicationIdReject","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"applicationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/rejectRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/applicationDetailDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/resident-applications/{applicationId}/reject","tags":["resident-applications"]}},"/api/v1/orgs/{orgId}/resident-memberships":{"get":{"operationId":"getOrgsByOrgIdResidentMemberships","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Records of a building.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Records of premises.","in":"query","name":"premises_id","required":false,"schema":{"type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"open","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by premises_number, name, from_on; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, email, premises_number (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/membershipDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/resident-memberships","tags":["resident-memberships"]}},"/api/v1/orgs/{orgId}/resident-memberships/{membershipId}/end":{"post":{"operationId":"postOrgsByOrgIdResidentMembershipsByMembershipIdEnd","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"membershipId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/endRequest2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/membershipDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/resident-memberships/{membershipId}/end","tags":["resident-memberships"]}},"/api/v1/orgs/{orgId}/roles":{"get":{"operationId":"getOrgsByOrgIdRoles","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Include archived custom roles; defaults to false.","in":"query","name":"include_archived","required":false,"schema":{"type":"boolean"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, revision; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/customRoleDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/roles","tags":["identity"]},"post":{"operationId":"postOrgsByOrgIdRoles","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customRoleRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customRoleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/roles","tags":["identity"]}},"/api/v1/orgs/{orgId}/roles/{roleId}":{"delete":{"operationId":"deleteOrgsByOrgIdRolesByRoleId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roleId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/roles/{roleId}","tags":["identity"],"x-available-when":[{"field":"archived_at","empty":true}]},"put":{"operationId":"putOrgsByOrgIdRolesByRoleId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"roleId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customRoleUpdateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/customRoleDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/roles/{roleId}","tags":["identity"]}},"/api/v1/orgs/{orgId}/scan-findings":{"get":{"operationId":"getOrgsByOrgIdScanFindings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Minimum finding severity threshold.","in":"query","name":"min_severity","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"scanner","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"severity","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"rule","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by first_seen_at, last_seen_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over title, subject (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/findingDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/scan-findings","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/scan-findings/summary":{"get":{"operationId":"getOrgsByOrgIdScanFindingsSummary","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/findingSummaryResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/scan-findings/summary","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/scan-findings/{id}":{"get":{"operationId":"getOrgsByOrgIdScanFindingsById","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/findingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/scan-findings/{id}","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/scan-findings/{id}/acknowledge":{"post":{"operationId":"postOrgsByOrgIdScanFindingsByIdAcknowledge","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ackRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/findingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/scan-findings/{id}/acknowledge","tags":["diagnostics"],"x-available-when":[{"field":"state","in":["open"]}]}},"/api/v1/orgs/{orgId}/scan-findings/{id}/reopen":{"post":{"operationId":"postOrgsByOrgIdScanFindingsByIdReopen","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/findingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/scan-findings/{id}/reopen","tags":["diagnostics"],"x-available-when":[{"field":"state","in":["acknowledged"]}]}},"/api/v1/orgs/{orgId}/scanners":{"get":{"operationId":"getOrgsByOrgIdScanners","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"category","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"enabled","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"overdue","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by title, category; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over title (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/scannerDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/scanners","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/scanners/{scanner}":{"delete":{"operationId":"deleteOrgsByOrgIdScannersByScanner","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"scanner","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scannerDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/scanners/{scanner}","tags":["diagnostics"]},"put":{"operationId":"putOrgsByOrgIdScannersByScanner","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"scanner","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/settingRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/scannerDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/scanners/{scanner}","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/scanners/{scanner}/run":{"post":{"operationId":"postOrgsByOrgIdScannersByScannerRun","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"scanner","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/runDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/scanners/{scanner}/run","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/sessions/{sessionId}":{"get":{"operationId":"getOrgsByOrgIdSessionsBySessionId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"sessionId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sessionFramesResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/sessions/{sessionId}","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/sessions/{sessionId}/dump":{"get":{"operationId":"getOrgsByOrgIdSessionsBySessionIdDump","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"sessionId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"text/plain":{"schema":{"format":"binary","type":"string"}}},"description":"Success: a file."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/sessions/{sessionId}/dump","tags":["diagnostics"]}},"/api/v1/orgs/{orgId}/storage":{"get":{"operationId":"getOrgsByOrgIdStorage","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/storageDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/storage","tags":["storage"]}},"/api/v1/orgs/{orgId}/storage/files":{"get":{"operationId":"getOrgsByOrgIdStorageFiles","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Only files of this kind of record: task, verification or substation.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by size, uploaded_at, name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/storedFileDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/storage/files","tags":["storage"]}},"/api/v1/orgs/{orgId}/storage/files/{attachmentId}":{"delete":{"operationId":"deleteOrgsByOrgIdStorageFilesByAttachmentId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"attachmentId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/storage/files/{attachmentId}","tags":["storage"]}},"/api/v1/orgs/{orgId}/substations":{"get":{"operationId":"getOrgsByOrgIdSubstations","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Substations of one building.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, created_at; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, code (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/substationDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations","tags":["substations"]},"post":{"operationId":"postOrgsByOrgIdSubstations","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationCreateRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/substations","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}":{"get":{"operationId":"getOrgsByOrgIdSubstationsBySubstationId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations/{substationId}","tags":["substations"]},"put":{"operationId":"putOrgsByOrgIdSubstationsBySubstationId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationUpdateRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/substations/{substationId}","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/attachments":{"get":{"operationId":"getOrgsByOrgIdSubstationsBySubstationIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/listingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations/{substationId}/attachments","tags":["substations"]},"post":{"operationId":"postOrgsByOrgIdSubstationsBySubstationIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}},{"description":"For a file of a task: the step of its checklist the file belongs to.","in":"query","name":"step","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string","x-max-bytes":10485760}}},"description":"The bytes of the file: JPEG, PNG, WebP, HEIC, PDF or DWG, at most 10 MiB. What the file is is read from its bytes.","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/fileDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/substations/{substationId}/attachments","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/bindings":{"get":{"operationId":"getOrgsByOrgIdSubstationsBySubstationIdBindings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"true: the ended bindings too.","in":"query","name":"history","required":false,"schema":{"type":"boolean"}},{"description":"Items per page; default 500, maximum 5000.","in":"query","name":"limit","required":false,"schema":{"default":500,"maximum":5000,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by valid_from; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/substationBindingDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations/{substationId}/bindings","tags":["substations"]},"post":{"operationId":"postOrgsByOrgIdSubstationsBySubstationIdBindings","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationBindRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationBindingDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/substations/{substationId}/bindings","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/bindings/{bindingId}":{"delete":{"operationId":"deleteOrgsByOrgIdSubstationsBySubstationIdBindingsByBindingId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"bindingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/substations/{substationId}/bindings/{bindingId}","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/draft":{"delete":{"operationId":"deleteOrgsByOrgIdSubstationsBySubstationIdDraft","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The revision of the draft that was read.","in":"query","name":"revision","required":true,"schema":{"type":"integer"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/substations/{substationId}/draft","tags":["substations"]},"put":{"operationId":"putOrgsByOrgIdSubstationsBySubstationIdDraft","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationDraftRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationSchemeVersionDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/substations/{substationId}/draft","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/publish":{"post":{"operationId":"postOrgsByOrgIdSubstationsBySubstationIdPublish","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationPublishRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationSchemeVersionDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/substations/{substationId}/publish","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/regulation/simulate":{"post":{"operationId":"postOrgsByOrgIdSubstationsBySubstationIdRegulationSimulate","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationSimulationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationSimulationDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/substations/{substationId}/regulation/simulate","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/report":{"get":{"operationId":"getOrgsByOrgIdSubstationsBySubstationIdReport","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"First day, 2026-11-01, of the building's calendar.","in":"query","name":"from","required":true,"schema":{"type":"string"}},{"description":"Last day, included; at most 92 days from the first.","in":"query","name":"to","required":true,"schema":{"type":"string"}},{"description":"true: also what the first instrument of a value measured before it was bound.","in":"query","name":"before_binding","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationReportDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations/{substationId}/report","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/state":{"get":{"operationId":"getOrgsByOrgIdSubstationsBySubstationIdState","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationStateDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations/{substationId}/state","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/versions":{"get":{"operationId":"getOrgsByOrgIdSubstationsBySubstationIdVersions","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by number; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/substationVersionDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations/{substationId}/versions","tags":["substations"]}},"/api/v1/orgs/{orgId}/substations/{substationId}/versions/{versionNumber}":{"get":{"operationId":"getOrgsByOrgIdSubstationsBySubstationIdVersionsByVersionNumber","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"substationId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Path value.","in":"path","name":"versionNumber","required":true,"schema":{"type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/substationSchemeVersionDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/substations/{substationId}/versions/{versionNumber}","tags":["substations"]}},"/api/v1/orgs/{orgId}/supply-map":{"get":{"operationId":"getOrgsByOrgIdSupplyMap","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Only supply of this kind.","in":"query","name":"kind","required":false,"schema":{"enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"}},{"description":"Items per page; default 500, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":500,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, kind; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, code (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/supplyLinkDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/supply-map","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-map/layouts":{"get":{"operationId":"getOrgsByOrgIdSupplyMapLayouts","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 500, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":500,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by network_id; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/linkLayoutDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/supply-map/layouts","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-map/links/{networkId}":{"get":{"operationId":"getOrgsByOrgIdSupplyMapLinksByNetworkId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/setupDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/supply-map/links/{networkId}","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-map/links/{networkId}/balance":{"get":{"operationId":"getOrgsByOrgIdSupplyMapLinksByNetworkIdBalance","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"First day, 2026-11-01, of the source building's calendar.","in":"query","name":"from","required":true,"schema":{"type":"string"}},{"description":"Last day, included; at most 92 days from the first.","in":"query","name":"to","required":true,"schema":{"type":"string"}},{"description":"true: also what the first meter of an end measured before it was bound.","in":"query","name":"before_binding","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/balanceDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/supply-map/links/{networkId}/balance","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-map/links/{networkId}/layout":{"get":{"operationId":"getOrgsByOrgIdSupplyMapLinksByNetworkIdLayout","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/layoutDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/supply-map/links/{networkId}/layout","tags":["supply-map"]},"put":{"operationId":"putOrgsByOrgIdSupplyMapLinksByNetworkIdLayout","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/layoutRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/layoutDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/supply-map/links/{networkId}/layout","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-map/links/{networkId}/points":{"post":{"operationId":"postOrgsByOrgIdSupplyMapLinksByNetworkIdPoints","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/bindRequest2"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/boundDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/supply-map/links/{networkId}/points","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-map/links/{networkId}/points/{pointId}":{"delete":{"operationId":"deleteOrgsByOrgIdSupplyMapLinksByNetworkIdPointsByPointId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"pointId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/supply-map/links/{networkId}/points/{pointId}","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-map/links/{networkId}/pressure":{"get":{"operationId":"getOrgsByOrgIdSupplyMapLinksByNetworkIdPressure","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"networkId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The moment to look at, RFC 3339; omitted: now.","in":"query","name":"at","required":false,"schema":{"type":"string"}},{"description":"The drop from the usual pressure that counts, 5 to 60 percent; 15 when omitted.","in":"query","name":"threshold","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/leakDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/supply-map/links/{networkId}/pressure","tags":["supply-map"]}},"/api/v1/orgs/{orgId}/supply-systems":{"get":{"operationId":"getOrgsByOrgIdSupplySystems","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The kind of systems offered as ends of a link.","in":"query","name":"kind","required":true,"schema":{"enum":["cooling","electricity","gas","heating","hot_water","other","ventilation","water"],"type":"string"}},{"description":"Items per page; default 2000, maximum 2000.","in":"query","name":"limit","required":false,"schema":{"default":2000,"maximum":2000,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by building_name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over building_name, name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/supplySystemDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/supply-systems","tags":["supply-systems"]}},"/api/v1/orgs/{orgId}/support-grants":{"get":{"operationId":"getOrgsByOrgIdSupportGrants","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"status","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by issued_at, valid_to; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/supportDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/support-grants","tags":["support-grants"]},"post":{"operationId":"postOrgsByOrgIdSupportGrants","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/issueSupportRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/supportDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/support-grants","tags":["support-grants"]}},"/api/v1/orgs/{orgId}/tagged":{"get":{"operationId":"getOrgsByOrgIdTagged","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated tags; an object must wear all of them.","in":"query","name":"tag","required":false,"schema":{"type":"string"}},{"description":"building, part, system, room or device.","in":"query","name":"kind","required":false,"schema":{"type":"string"}},{"description":"One object.","in":"query","name":"object_id","required":false,"schema":{"type":"string"}},{"description":"Objects of one building.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 50, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name, kind; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name, detail (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/taggedObjectDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tagged","tags":["tagged"]}},"/api/v1/orgs/{orgId}/tags":{"get":{"operationId":"getOrgsByOrgIdTags","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 200, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by count, tag; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over tag (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/tagCountDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tags","tags":["tags"]}},"/api/v1/orgs/{orgId}/tariffs":{"get":{"operationId":"getOrgsByOrgIdTariffs","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"resource","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"code","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"category","required":false,"schema":{"type":"string"}},{"description":"Exact-match filter; use one comma-separated value to match any listed value.","in":"query","name":"currency","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 100, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by code, valid_from, resource; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over code, name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/tariffDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tariffs","tags":["tariffs"]},"post":{"operationId":"postOrgsByOrgIdTariffs","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/registerRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/tariffDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tariffs","tags":["tariffs"]}},"/api/v1/orgs/{orgId}/tariffs/import/apply":{"post":{"operationId":"postOrgsByOrgIdTariffsImportApply","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Lowercase SHA-256 hex digest from the matching CSV preview; the submitted file must have identical bytes.","in":"query","name":"hash","required":true,"schema":{"maxLength":64,"minLength":64,"pattern":"^[a-f0-9]{64}$","type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"The exact same UTF-8 CSV bytes used for preview, at most 1 MiB; the required hash must match that preview.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO4"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tariffs/import/apply","tags":["tariffs"]}},"/api/v1/orgs/{orgId}/tariffs/import/preview":{"post":{"operationId":"postOrgsByOrgIdTariffsImportPreview","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"text/csv":{"schema":{"format":"binary","type":"string","x-max-bytes":1048576}}},"description":"UTF-8 CSV with a header and tariff rows. Maximum size is 1 MiB.","required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/importResponseDTO4"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tariffs/import/preview","tags":["tariffs"]}},"/api/v1/orgs/{orgId}/tariffs/{id}/close":{"post":{"operationId":"postOrgsByOrgIdTariffsByIdClose","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"id","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/closeRequest2"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tariffs/{id}/close","tags":["tariffs"],"x-available-when":[{"field":"valid_until","empty":true}]}},"/api/v1/orgs/{orgId}/task-templates":{"get":{"operationId":"getOrgsByOrgIdTaskTemplates","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"1 lists the templates taken out of use.","in":"query","name":"archived","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templatesDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/task-templates","tags":["task-templates"]},"post":{"operationId":"postOrgsByOrgIdTaskTemplates","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateRequest2"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/task-templates","tags":["task-templates"]}},"/api/v1/orgs/{orgId}/task-templates/starters":{"post":{"operationId":"postOrgsByOrgIdTaskTemplatesStarters","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templatesDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/task-templates/starters","tags":["task-templates"]}},"/api/v1/orgs/{orgId}/task-templates/{templateId}":{"get":{"operationId":"getOrgsByOrgIdTaskTemplatesByTemplateId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"templateId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO2"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/task-templates/{templateId}","tags":["task-templates"]},"put":{"operationId":"putOrgsByOrgIdTaskTemplatesByTemplateId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"templateId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateRequest2"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/templateDTO2"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/task-templates/{templateId}","tags":["task-templates"]}},"/api/v1/orgs/{orgId}/task-templates/{templateId}/archive":{"post":{"operationId":"postOrgsByOrgIdTaskTemplatesByTemplateIdArchive","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"templateId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/task-templates/{templateId}/archive","tags":["task-templates"]}},"/api/v1/orgs/{orgId}/task-templates/{templateId}/restore":{"post":{"operationId":"postOrgsByOrgIdTaskTemplatesByTemplateIdRestore","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"templateId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/task-templates/{templateId}/restore","tags":["task-templates"]}},"/api/v1/orgs/{orgId}/tasks":{"get":{"operationId":"getOrgsByOrgIdTasks","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated states; open means every state that is not done or cancelled, overdue narrows to open tasks past their deadline.","in":"query","name":"state","required":false,"schema":{"type":"string"}},{"description":"Comma-separated priorities.","in":"query","name":"priority","required":false,"schema":{"type":"string"}},{"description":"Comma-separated buildings.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Comma-separated people; me is the caller.","in":"query","name":"assignee_id","required":false,"schema":{"type":"string"}},{"description":"Tasks about a device.","in":"query","name":"device_id","required":false,"schema":{"type":"string"}},{"description":"Tasks made for an incident.","in":"query","name":"incident_id","required":false,"schema":{"type":"string"}},{"description":"Boolean scope selector; accepts exactly 0 or 1.","in":"query","name":"overdue","required":false,"schema":{"enum":["0","1"],"type":"string"}},{"description":"Items per page; default 100, maximum 200.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by due_at, created_at, priority; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over title (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/workTaskDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tasks","tags":["tasks"]},"post":{"operationId":"postOrgsByOrgIdTasks","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskCreateRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tasks","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/assignees":{"get":{"operationId":"getOrgsByOrgIdTasksAssignees","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Building the task is in.","in":"query","name":"building_id","required":true,"schema":{"type":"string"}},{"description":"Items per page; default 200, maximum 500.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by name; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}},{"description":"Text search over name (maximum 128 characters).","in":"query","name":"q","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/workTaskAssigneeDTO"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tasks/assignees","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/policy":{"get":{"operationId":"getOrgsByOrgIdTasksPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskPolicyDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tasks/policy","tags":["tasks"]},"put":{"operationId":"putOrgsByOrgIdTasksPolicy","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskPolicyDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskPolicyDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/tasks/policy","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}":{"get":{"operationId":"getOrgsByOrgIdTasksByTaskId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskDetailDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tasks/{taskId}","tags":["tasks"]},"put":{"operationId":"putOrgsByOrgIdTasksByTaskId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskEditRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/tasks/{taskId}","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/attachments":{"get":{"operationId":"getOrgsByOrgIdTasksByTaskIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/listingDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tasks/{taskId}/attachments","tags":["tasks"]},"post":{"operationId":"postOrgsByOrgIdTasksByTaskIdAttachments","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"The name of the file.","in":"query","name":"name","required":true,"schema":{"type":"string"}},{"description":"For a file of a task: the step of its checklist the file belongs to.","in":"query","name":"step","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string","x-max-bytes":10485760}}},"description":"The bytes of the file: JPEG, PNG, WebP, HEIC, PDF or DWG, at most 10 MiB. What the file is is read from its bytes.","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/fileDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tasks/{taskId}/attachments","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/checklist-template":{"post":{"operationId":"postOrgsByOrgIdTasksByTaskIdChecklistTemplate","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/applyTemplateRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tasks/{taskId}/checklist-template","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/manage":{"post":{"operationId":"postOrgsByOrgIdTasksByTaskIdManage","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskManageRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tasks/{taskId}/manage","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/progress":{"post":{"operationId":"postOrgsByOrgIdTasksByTaskIdProgress","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskProgressRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/workTaskDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tasks/{taskId}/progress","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/step-order":{"put":{"operationId":"putOrgsByOrgIdTasksByTaskIdStepOrder","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepOrderRequest"}}},"required":true},"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/tasks/{taskId}/step-order","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/steps":{"get":{"operationId":"getOrgsByOrgIdTasksByTaskIdSteps","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/tasks/{taskId}/steps","tags":["tasks"]},"post":{"operationId":"postOrgsByOrgIdTasksByTaskIdSteps","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepDefDTO"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/taskStepDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /api/v1/orgs/{orgId}/tasks/{taskId}/steps","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/steps/{stepId}":{"delete":{"operationId":"deleteOrgsByOrgIdTasksByTaskIdStepsByStepId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"stepId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"204":{"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"DELETE /api/v1/orgs/{orgId}/tasks/{taskId}/steps/{stepId}","tags":["tasks"]},"put":{"operationId":"putOrgsByOrgIdTasksByTaskIdStepsByStepId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"stepId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepDefDTO"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/taskStepDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/tasks/{taskId}/steps/{stepId}","tags":["tasks"]}},"/api/v1/orgs/{orgId}/tasks/{taskId}/steps/{stepId}/result":{"put":{"operationId":"putOrgsByOrgIdTasksByTaskIdStepsByStepIdResult","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"taskId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"stepId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Optional key (maximum 128 characters) to safely retry this mutation for 24 hours. Reusing it with a different request is rejected.","in":"header","name":"Idempotency-Key","required":false,"schema":{"maxLength":128,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/stepResultRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/taskStepDTO"}}},"description":"Success.","headers":{"Idempotent-Replay":{"description":"Set to true when this response is a replay of a completed mutation.","schema":{"enum":["true"],"type":"string"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"PUT /api/v1/orgs/{orgId}/tasks/{taskId}/steps/{stepId}/result","tags":["tasks"]}},"/api/v1/orgs/{orgId}/usage":{"get":{"operationId":"getOrgsByOrgIdUsage","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/usageDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/usage","tags":["usage"]}},"/api/v1/orgs/{orgId}/weather/sites":{"get":{"operationId":"getOrgsByOrgIdWeatherSites","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated building ULIDs to limit the places to.","in":"query","name":"building_id","required":false,"schema":{"type":"string"}},{"description":"Items per page; default 1000, maximum 1000.","in":"query","name":"limit","required":false,"schema":{"default":1000,"maximum":1000,"minimum":1,"type":"integer"}},{"description":"Opaque cursor from page.next_cursor; bound to the list filters and sort.","in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"description":"Sort by building_id; prefix a field with - for descending order.","in":"query","name":"sort","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"items":{"description":"Items returned for the current page; each endpoint defines its item schema.","items":{"$ref":"#/components/schemas/locationDTO2"},"type":"array"},"page":{"$ref":"#/components/schemas/Page","description":"Pagination details and the cursor for the next page, when one exists."}},"required":["items","page"],"type":"object"}}},"description":"Success.","headers":{"Link":{"description":"Pagination link with rel=next when another page exists.","schema":{"type":"string"}},"X-Total-Count":{"description":"Total matching items when the endpoint can provide a count.","schema":{"minimum":0,"type":"integer"}}}},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/weather/sites","tags":["weather"]}},"/api/v1/orgs/{orgId}/worklist":{"get":{"operationId":"getOrgsByOrgIdWorklist","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"Comma-separated building ULIDs, 1 to 50: a page of the building list.","in":"query","name":"building_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/worklistSummaryDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/worklist","tags":["worklist"]}},"/api/v1/orgs/{orgId}/worklist/buildings/{buildingId}":{"get":{"operationId":"getOrgsByOrgIdWorklistBuildingsByBuildingId","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/worklistDetailDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/worklist/buildings/{buildingId}","tags":["buildings"]}},"/api/v1/orgs/{orgId}/worklist/buildings/{buildingId}/groups":{"get":{"operationId":"getOrgsByOrgIdWorklistBuildingsByBuildingIdGroups","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"buildingId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"How to cut the building: system (the default) or part (entrances and sections).","in":"query","name":"by","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/worklistGroupsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/worklist/buildings/{buildingId}/groups","tags":["buildings"]}},"/api/v1/orgs/{orgId}/worklist/problems":{"get":{"operationId":"getOrgsByOrgIdWorklistProblems","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}},{"description":"Human sessions may select one assigned role for this request. Required when the person has more than one role in this organisation. Use role_key from GET /api/v1/me; custom roles use custom:\u003crole_id\u003e. The value ALL switches every assigned role on at once (the union of their permissions and building scopes). This only narrows permissions. Service credentials must omit this header.","in":"header","name":"X-Active-Role","required":false,"schema":{"type":"string"}},{"description":"How many devices to name, 1 to 100; 10 when omitted.","in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/worklistProblemsDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/orgs/{orgId}/worklist/problems","tags":["worklist"]}},"/api/v1/qr/{code}":{"get":{"operationId":"getQrByCode","parameters":[{"description":"Path value.","in":"path","name":"code","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/whoseDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/qr/{code}","tags":["qr"]}},"/api/v1/site/brand":{"get":{"operationId":"getSiteBrand","parameters":[{"description":"The host the site is opened on.","in":"query","name":"host","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/siteBrandResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/site/brand","tags":["commercial"]}},"/api/v1/site/floor-numbering":{"get":{"operationId":"getSiteFloorNumbering","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/floorNumberingResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/site/floor-numbering","tags":["site"]}},"/api/v1/site/legal-documents/registration":{"get":{"operationId":"getSiteLegalDocumentsRegistration","parameters":[{"description":"Country code for the current registration document.","in":"query","name":"country","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/publicDocumentResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/site/legal-documents/registration","tags":["site"]}},"/api/v1/site/locales":{"get":{"operationId":"getSiteLocales","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/localesDTO"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/site/locales","tags":["site"]}},"/api/v1/site/organizations/{orgId}/legal-terms":{"get":{"operationId":"getSiteOrganizationsByOrgIdLegalTerms","parameters":[{"description":"26-character, uppercase Crockford Base32 ULID.","in":"path","name":"orgId","required":true,"schema":{"format":"ulid","maxLength":26,"minLength":26,"pattern":"^[0-7][0-9A-HJKMNP-TV-Z]{25}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/publicOrganizationDocumentResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/site/organizations/{orgId}/legal-terms","tags":["site"]}},"/api/v1/site/packages":{"get":{"operationId":"getSitePackages","parameters":[{"description":"The country of the sign-up (ISO 3166-1 alpha-2).","in":"query","name":"country","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/sitePackagesResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/site/packages","tags":["commercial"]}},"/api/v1/site/packages/quote":{"get":{"operationId":"getSitePackagesQuote","parameters":[{"description":"The country of the sign-up (ISO 3166-1 alpha-2).","in":"query","name":"country","required":true,"schema":{"type":"string"}},{"description":"How many devices; 1 by default.","in":"query","name":"devices","required":false,"schema":{"type":"string"}},{"description":"Months of history kept; 1 by default.","in":"query","name":"history_months","required":false,"schema":{"type":"string"}},{"description":"The fastest poll interval in seconds; 3600 by default.","in":"query","name":"min_interval_seconds","required":false,"schema":{"type":"string"}},{"description":"Reads ordered by hand a day; 0 by default.","in":"query","name":"unscheduled_reads_per_day","required":false,"schema":{"type":"string"}},{"description":"Feature codes, comma-separated.","in":"query","name":"features","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/siteQuoteResponse"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"GET /api/v1/site/packages/quote","tags":["commercial"]}},"/api/v1/site/registration-countries":{"get":{"operationId":"getSiteRegistrationCountries","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/countriesResponseDoc"}}},"description":"Success."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /api/v1/site/registration-countries","tags":["site"]}},"/ingest/v1/telegrams":{"post":{"operationId":"postIngestTelegrams","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Request"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response"}}},"description":"201 for a new receipt; 200 when the message was already received."},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response"}}},"description":"201 for a new receipt; 200 when the message was already received."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"summary":"POST /ingest/v1/telegrams","tags":["ingest"]}},"/livez":{"get":{"operationId":"getLivez","responses":{"200":{"content":{"text/plain":{"schema":{"type":"string"}}},"description":"Process liveness probe."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /livez","tags":["livez"]}},"/readyz":{"get":{"operationId":"getReadyz","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/readinessDTO"}}},"description":"Readiness probe; 503 includes failed dependency checks."},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/readinessDTO"}}},"description":"Readiness probe; 503 includes failed dependency checks."},"default":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Error response using the standard error envelope. A rate-limited response may include Retry-After (seconds).","headers":{"Retry-After":{"description":"Seconds to wait before retrying when the error is rate-limited.","schema":{"minimum":0,"type":"integer"}}}}},"security":[],"summary":"GET /readyz","tags":["readyz"]}}},"security":[{"bearerAuth":[]}]}