{"openapi":"3.1.0","info":{"title":"Lagvera API","version":"1.0","description":"Read and write the management system of one workspace. Create a key under Settings (Inställningar). Webhooks are signed with X-Lagvera-Signature. Guide: https://lagvera.se/integrationer"},"servers":[{"url":"https://lagvera.se/api/v1"}],"security":[{"bearer":[]}],"paths":{"/me":{"get":{"summary":"Check the key","operationId":"whoami","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Me"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/events":{"get":{"summary":"Events, newest first","operationId":"listEvents","description":"The same objects that webhooks send. Kept for 30 days, and only while the workspace has an API key or a webhook.","parameters":[{"name":"type","in":"query","schema":{"type":"string","enum":["deviation.created","deviation.closed","record.created","law.changed","task.due","control.signed","report.due"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPage"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hooks":{"get":{"summary":"List subscriptions","operationId":"listHooks","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Subscribe (REST Hooks)","operationId":"subscribe","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Subscribe"}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Subscription"}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hooks/{id}":{"delete":{"summary":"Unsubscribe","operationId":"unsubscribe","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"No such subscription","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/status":{"get":{"summary":"Counts and what is overdue in the workspace.","operationId":"list_status","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/aspects":{"get":{"summary":"Environmental aspects register. Significance is calculated as severity x extent.","operationId":"list_aspects","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (activity + aspect)","operationId":"save_aspects","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"activity":{"type":"string","description":"text, required"},"aspect":{"type":"string","description":"text, required"},"impact":{"type":"string","description":"text"},"severity":{"type":"string","description":"1-3"},"extent":{"type":"string","description":"1-3"},"legal":{"type":"boolean","description":"boolean"},"control":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"responsible":{"type":"string","description":"text"}},"required":["activity","aspect"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"activity":{"type":"string","description":"text, required"},"aspect":{"type":"string","description":"text, required"},"impact":{"type":"string","description":"text"},"severity":{"type":"string","description":"1-3"},"extent":{"type":"string","description":"1-3"},"legal":{"type":"boolean","description":"boolean"},"control":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"responsible":{"type":"string","description":"text"}},"required":["activity","aspect"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/controls":{"get":{"summary":"Recurring checks: self-monitoring, sampling, inspections and audits.","operationId":"list_controls","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (title)","operationId":"save_controls","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required"},"kind":{"type":"string","description":"egenkontroll | provtagning | besiktning | revision"},"interval_months":{"type":"string","description":"1-120, default 12"},"next_due":{"type":"string","format":"date","description":"date YYYY-MM-DD, default today"},"responsible":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"text"},"note":{"type":"string","description":"text"}},"required":["title"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required"},"kind":{"type":"string","description":"egenkontroll | provtagning | besiktning | revision"},"interval_months":{"type":"string","description":"1-120, default 12"},"next_due":{"type":"string","format":"date","description":"date YYYY-MM-DD, default today"},"responsible":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"text"},"note":{"type":"string","description":"text"}},"required":["title"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/control_results":{"get":{"summary":"A performed check or a lab result. Moves the next due date forward by the interval.","operationId":"list_control_results","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (control + done_on + result + value)","operationId":"save_control_results","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"control":{"type":"string","description":"title of the control, or control_id"},"done_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, default today"},"result":{"type":"string","description":"ok | avvikelse"},"value":{"type":"string","description":"measured value as text, e.g. \"pH 7,4\""},"note":{"type":"string","description":"text"}},"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"control":{"type":"string","description":"title of the control, or control_id"},"done_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, default today"},"result":{"type":"string","description":"ok | avvikelse"},"value":{"type":"string","description":"measured value as text, e.g. \"pH 7,4\""},"note":{"type":"string","description":"text"}},"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/indicators":{"get":{"summary":"Key figures followed per quarter. Reading returns the values too.","operationId":"list_indicators","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (name)","operationId":"save_indicators","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"text, required"},"unit":{"type":"string","description":"text"},"area":{"type":"string","description":"text"},"target":{"type":"number","description":"number"},"direction":{"type":"string","description":"lower | higher (which way is better)"}},"required":["name"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"text, required"},"unit":{"type":"string","description":"text"},"area":{"type":"string","description":"text"},"target":{"type":"number","description":"number"},"direction":{"type":"string","description":"lower | higher (which way is better)"}},"required":["name"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/indicator_values":{"get":{"summary":"One quarterly value. The indicator is created if it does not exist. value null clears it.","operationId":"list_indicator_values","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (indicator + year + quarter)","operationId":"save_indicator_values","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"indicator":{"type":"string","description":"name, required"},"year":{"type":"string","description":"required"},"quarter":{"type":"string","description":"1-4, required"},"value":{"type":"number","description":"number, required"},"unit":{"type":"string","description":"used when the indicator is created"}},"required":["indicator","year","quarter","value"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"indicator":{"type":"string","description":"name, required"},"year":{"type":"string","description":"required"},"quarter":{"type":"string","description":"1-4, required"},"value":{"type":"number","description":"number, required"},"unit":{"type":"string","description":"used when the indicator is created"}},"required":["indicator","year","quarter","value"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/plan":{"get":{"summary":"Annual business plan: area, goal and activities.","operationId":"list_plan","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (year + activity)","operationId":"save_plan","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"activity":{"type":"string","description":"text, required"},"year":{"type":"string","description":"default current year"},"area":{"type":"string","description":"text"},"goal":{"type":"string","description":"text"},"responsible":{"type":"string","description":"text"},"quarter":{"type":"string","description":"1-4"},"status":{"type":"string","description":"planerad | pagar | klar | struken"}},"required":["activity"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"activity":{"type":"string","description":"text, required"},"year":{"type":"string","description":"default current year"},"area":{"type":"string","description":"text"},"goal":{"type":"string","description":"text"},"responsible":{"type":"string","description":"text"},"quarter":{"type":"string","description":"1-4"},"status":{"type":"string","description":"planerad | pagar | klar | struken"}},"required":["activity"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/certificates":{"get":{"summary":"Certificates and permits with validity and next audit.","operationId":"list_certificates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (name)","operationId":"save_certificates","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"text, required"},"issuer":{"type":"string","description":"text"},"cert_number":{"type":"string","description":"text"},"valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD"},"next_audit":{"type":"string","format":"date","description":"date YYYY-MM-DD"}},"required":["name"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"text, required"},"issuer":{"type":"string","description":"text"},"cert_number":{"type":"string","description":"text"},"valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD"},"next_audit":{"type":"string","format":"date","description":"date YYYY-MM-DD"}},"required":["name"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/customer_requirements":{"get":{"summary":"Reports and statements customers require from the company.","operationId":"list_customer_requirements","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (customer + requirement)","operationId":"save_customer_requirements","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"customer":{"type":"string","description":"text, required"},"requirement":{"type":"string","description":"text, required"},"deliverable":{"type":"string","description":"text"},"framework":{"type":"string","description":"text"},"interval_months":{"type":"string","description":"0-120, 0 = once"},"next_due":{"type":"string","format":"date","description":"date YYYY-MM-DD"},"responsible":{"type":"string","description":"text"},"beyond_vsme":{"type":"boolean","description":"boolean"},"note":{"type":"string","description":"text"}},"required":["customer","requirement"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"customer":{"type":"string","description":"text, required"},"requirement":{"type":"string","description":"text, required"},"deliverable":{"type":"string","description":"text"},"framework":{"type":"string","description":"text"},"interval_months":{"type":"string","description":"0-120, 0 = once"},"next_due":{"type":"string","format":"date","description":"date YYYY-MM-DD"},"responsible":{"type":"string","description":"text"},"beyond_vsme":{"type":"boolean","description":"boolean"},"note":{"type":"string","description":"text"}},"required":["customer","requirement"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reporting_profile":{"get":{"summary":"Company size, used for the CSRD assessment.","operationId":"list_reporting_profile","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (one per workspace)","operationId":"save_reporting_profile","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"employees":{"type":"string","description":"integer, required"},"turnover_msek":{"type":"number","description":"number, required"},"balance_msek":{"type":"number","description":"number"},"listed":{"type":"boolean","description":"boolean"}},"required":["employees","turnover_msek"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"employees":{"type":"string","description":"integer, required"},"turnover_msek":{"type":"number","description":"number, required"},"balance_msek":{"type":"number","description":"number"},"listed":{"type":"boolean","description":"boolean"}},"required":["employees","turnover_msek"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/documents":{"get":{"summary":"Governing documents. Posting text runs the checks against laws and regulations. Same title gives a new version.","operationId":"list_documents","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (title)","operationId":"save_documents","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required"},"text":{"type":"string","description":"plain text of the document, required"}},"required":["title","text"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required"},"text":{"type":"string","description":"plain text of the document, required"}},"required":["title","text"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/law_list":{"get":{"summary":"The legal register with the compliance assessment per requirement.","operationId":"list_law_list","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/findings":{"get":{"summary":"Open findings: outdated references and issues in the documents.","operationId":"list_findings","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/regulations":{"get":{"summary":"All regulations monitored nightly, with status and last change.","operationId":"list_regulations","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sites":{"get":{"summary":"Sites and facilities. Other rows refer to a site by its name.","operationId":"list_sites","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (name)","operationId":"save_sites","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"name":{"type":"string","description":"text, required"},"address":{"type":"string","description":"text"},"municipality":{"type":"string","description":"text"},"activity_code":{"type":"string","description":"e.g. \"90.30\""},"authority":{"type":"string","description":"supervisory authority"},"note":{"type":"string","description":"text"}},"required":["name"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"text, required"},"address":{"type":"string","description":"text"},"municipality":{"type":"string","description":"text"},"activity_code":{"type":"string","description":"e.g. \"90.30\""},"authority":{"type":"string","description":"supervisory authority"},"note":{"type":"string","description":"text"}},"required":["name"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/requirements":{"get":{"summary":"Binding requirements of the company itself: permit conditions, court decisions, municipal rules, contracts.","operationId":"list_requirements","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_requirements","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad kravet gäller)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_bedomt | uppfylls | delvis | uppfylls_inte | ej_aktuellt, default ej_bedomt"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa uppföljning)"},"source_type":{"type":"string","description":"tillstand | forelaggande | anmalan | kommunal | avtal | agardirektiv | atagande | annat, required (Var kommer kravet ifrån?)"},"issuer":{"type":"string","description":"text (Vem har beslutat?)"},"reference":{"type":"string","description":"text (Diarienummer eller avtal)"},"clause":{"type":"string","description":"text (Villkor eller punkt)"},"decided_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Beslutat)"},"valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Gäller till)"},"text":{"type":"string","description":"text (Kravets lydelse)"},"limit":{"type":"string","description":"text (Gränsvärde)"},"followed_by":{"type":"string","description":"text (Följs upp genom)"},"check_kind":{"type":"string","description":"provtagning | egenkontroll | besiktning (Typ av uppföljning)"},"check_method":{"type":"string","description":"text (Mätning eller kontroll)"},"check_interval":{"type":"string","description":"1 | 3 | 6 | 12 | 24 | 36 | 60 | 72 (Hur ofta villkoret följs upp)"},"how_met":{"type":"string","description":"text (Så uppfyller vi kravet)"},"report_what":{"type":"string","description":"text (Rapport som kravet kräver)"},"report_to":{"type":"string","description":"text (Mottagare av rapporten)"},"report_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Sista dag för nästa rapport)"},"report_interval":{"type":"string","description":"0 | 1 | 3 | 6 | 12 | 24 | 36 (Hur ofta rapporten lämnas)"},"report_area":{"type":"string","description":"miljo | kvalitet | arbetsmiljo (Område för rapporten)"}},"required":["title","source_type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad kravet gäller)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_bedomt | uppfylls | delvis | uppfylls_inte | ej_aktuellt, default ej_bedomt"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa uppföljning)"},"source_type":{"type":"string","description":"tillstand | forelaggande | anmalan | kommunal | avtal | agardirektiv | atagande | annat, required (Var kommer kravet ifrån?)"},"issuer":{"type":"string","description":"text (Vem har beslutat?)"},"reference":{"type":"string","description":"text (Diarienummer eller avtal)"},"clause":{"type":"string","description":"text (Villkor eller punkt)"},"decided_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Beslutat)"},"valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Gäller till)"},"text":{"type":"string","description":"text (Kravets lydelse)"},"limit":{"type":"string","description":"text (Gränsvärde)"},"followed_by":{"type":"string","description":"text (Följs upp genom)"},"check_kind":{"type":"string","description":"provtagning | egenkontroll | besiktning (Typ av uppföljning)"},"check_method":{"type":"string","description":"text (Mätning eller kontroll)"},"check_interval":{"type":"string","description":"1 | 3 | 6 | 12 | 24 | 36 | 60 | 72 (Hur ofta villkoret följs upp)"},"how_met":{"type":"string","description":"text (Så uppfyller vi kravet)"},"report_what":{"type":"string","description":"text (Rapport som kravet kräver)"},"report_to":{"type":"string","description":"text (Mottagare av rapporten)"},"report_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Sista dag för nästa rapport)"},"report_interval":{"type":"string","description":"0 | 1 | 3 | 6 | 12 | 24 | 36 (Hur ofta rapporten lämnas)"},"report_area":{"type":"string","description":"miljo | kvalitet | arbetsmiljo (Område för rapporten)"}},"required":["title","source_type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/deviations":{"get":{"summary":"Nonconformities, incidents and complaints with cause, corrective action and follow-up.","operationId":"list_deviations","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_deviations","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad hände?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"oppen | utreds | atgard | uppfoljning | stangd, default oppen"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärdad senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"type":{"type":"string","description":"avvikelse | riskobservation | tillbud | olycka | klagomal | revision | forbattring | lagefterlevnad, required (Typ)"},"area":{"type":"string","description":"miljo | arbetsmiljo | kvalitet | sakerhet | annat (Område)"},"risk":{"type":"string","description":"lag | medel | hog (Allvarlighet)"},"cost":{"type":"number","description":"number (Kostnad, kr)"},"occurred_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Inträffade)"},"reported_by":{"type":"string","description":"text (Rapporterat av)"},"company":{"type":"string","description":"text (Företag)"},"description":{"type":"string","description":"text (Beskrivning)"},"immediate":{"type":"string","description":"text (Omedelbar åtgärd)"},"cause":{"type":"string","description":"text (Orsak)"},"action":{"type":"string","description":"text (Korrigerande åtgärd)"},"verified":{"type":"string","description":"text (Uppföljning: hjälpte åtgärden?)"},"closed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Stängd)"}},"required":["title","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad hände?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"oppen | utreds | atgard | uppfoljning | stangd, default oppen"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärdad senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"type":{"type":"string","description":"avvikelse | riskobservation | tillbud | olycka | klagomal | revision | forbattring | lagefterlevnad, required (Typ)"},"area":{"type":"string","description":"miljo | arbetsmiljo | kvalitet | sakerhet | annat (Område)"},"risk":{"type":"string","description":"lag | medel | hog (Allvarlighet)"},"cost":{"type":"number","description":"number (Kostnad, kr)"},"occurred_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Inträffade)"},"reported_by":{"type":"string","description":"text (Rapporterat av)"},"company":{"type":"string","description":"text (Företag)"},"description":{"type":"string","description":"text (Beskrivning)"},"immediate":{"type":"string","description":"text (Omedelbar åtgärd)"},"cause":{"type":"string","description":"text (Orsak)"},"action":{"type":"string","description":"text (Korrigerande åtgärd)"},"verified":{"type":"string","description":"text (Uppföljning: hjälpte åtgärden?)"},"closed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Stängd)"}},"required":["title","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/risks":{"get":{"summary":"Risks and opportunities with likelihood and consequence.","operationId":"list_risks","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_risks","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Risk eller möjlighet)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"identifierad | atgard | hanterad | accepterad, default identifierad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Följs upp)"},"type":{"type":"string","description":"risk | mojlighet, required (Typ)"},"area":{"type":"string","description":"miljo | klimat | arbetsmiljo | efterlevnad | leverantor | verksamhet | annat (Område)"},"likelihood":{"type":"string","description":"1 | 2 | 3, required (Sannolikhet)"},"consequence":{"type":"string","description":"1 | 2 | 3, required (Konsekvens)"},"description":{"type":"string","description":"text (Beskrivning)"},"action":{"type":"string","description":"text (Vad gör vi åt det?)"}},"required":["title","type","likelihood","consequence"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Risk eller möjlighet)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"identifierad | atgard | hanterad | accepterad, default identifierad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Följs upp)"},"type":{"type":"string","description":"risk | mojlighet, required (Typ)"},"area":{"type":"string","description":"miljo | klimat | arbetsmiljo | efterlevnad | leverantor | verksamhet | annat (Område)"},"likelihood":{"type":"string","description":"1 | 2 | 3, required (Sannolikhet)"},"consequence":{"type":"string","description":"1 | 2 | 3, required (Konsekvens)"},"description":{"type":"string","description":"text (Beskrivning)"},"action":{"type":"string","description":"text (Vad gör vi åt det?)"}},"required":["title","type","likelihood","consequence"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/stakeholders":{"get":{"summary":"Interested parties and what they require or expect.","operationId":"list_stakeholders","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_stakeholders","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Intressent)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn)"},"category":{"type":"string","description":"kund | myndighet | agare | anstallda | leverantor | grannar | finans | bransch | annat, required (Grupp)"},"needs":{"type":"string","description":"text (Behov och förväntningar)"},"binding":{"type":"boolean","description":"boolean (Vi har gjort det här till ett bindande krav)"},"how":{"type":"string","description":"text (Så möter vi det)"},"contact":{"type":"string","description":"text (Kontaktväg)"}},"required":["title","category"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Intressent)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn)"},"category":{"type":"string","description":"kund | myndighet | agare | anstallda | leverantor | grannar | finans | bransch | annat, required (Grupp)"},"needs":{"type":"string","description":"text (Behov och förväntningar)"},"binding":{"type":"boolean","description":"boolean (Vi har gjort det här till ett bindande krav)"},"how":{"type":"string","description":"text (Så möter vi det)"},"contact":{"type":"string","description":"text (Kontaktväg)"}},"required":["title","category"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/competence":{"get":{"summary":"Competence and training per person or role, with expiry dates.","operationId":"list_competence","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_competence","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Utbildning eller behörighet)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | giltig | saknas | avslutad, default giltig. \"giltig\" needs evidence that is attached in Lagvera, so the API saves it as \"planerad\" and says so in warnings"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text, required (the function responsible, a role rather than a name)"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"person":{"type":"string","description":"text, required (Person eller roll)"},"why":{"type":"string","description":"text (Varför krävs den?)"},"area":{"type":"string","description":"miljo | kvalitet | arbetsmiljo (Område)"},"provider":{"type":"string","description":"text (Utbildare)"},"completed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Genomförd)"},"recur_months":{"type":"number","description":"number (Återkommer var, månader)"},"evidence_type":{"type":"string","description":"certifikat | intyg | kursintyg | intern (Typ av bevis)"},"certificate_no":{"type":"string","description":"text (Intygsnummer)"}},"required":["title","responsible","person"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Utbildning eller behörighet)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | giltig | saknas | avslutad, default giltig. \"giltig\" needs evidence that is attached in Lagvera, so the API saves it as \"planerad\" and says so in warnings"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text, required (the function responsible, a role rather than a name)"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"person":{"type":"string","description":"text, required (Person eller roll)"},"why":{"type":"string","description":"text (Varför krävs den?)"},"area":{"type":"string","description":"miljo | kvalitet | arbetsmiljo (Område)"},"provider":{"type":"string","description":"text (Utbildare)"},"completed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Genomförd)"},"recur_months":{"type":"number","description":"number (Återkommer var, månader)"},"evidence_type":{"type":"string","description":"certifikat | intyg | kursintyg | intern (Typ av bevis)"},"certificate_no":{"type":"string","description":"text (Intygsnummer)"}},"required":["title","responsible","person"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/emergency":{"get":{"summary":"Emergency situations, the plan for each and when it was last drilled.","operationId":"list_emergency","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_emergency","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Nödläge)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa övning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"area":{"type":"string","description":"arbetsmiljo | miljo | bada (Område)"},"scenario":{"type":"string","description":"text (Vad kan hända och vad blir följden?)"},"prevention":{"type":"string","description":"text (Så förebygger vi)"},"response":{"type":"string","description":"text (Så agerar vi)"},"equipment":{"type":"string","description":"text (Utrustning och var den finns)"},"contacts":{"type":"string","description":"text (Larmlista)"},"last_drill":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste övning)"},"drill_result":{"type":"string","description":"text (Vad lärde vi oss av övningen?)"}},"required":["title"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Nödläge)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa övning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"area":{"type":"string","description":"arbetsmiljo | miljo | bada (Område)"},"scenario":{"type":"string","description":"text (Vad kan hända och vad blir följden?)"},"prevention":{"type":"string","description":"text (Så förebygger vi)"},"response":{"type":"string","description":"text (Så agerar vi)"},"equipment":{"type":"string","description":"text (Utrustning och var den finns)"},"contacts":{"type":"string","description":"text (Larmlista)"},"last_drill":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste övning)"},"drill_result":{"type":"string","description":"text (Vad lärde vi oss av övningen?)"}},"required":["title"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/work_environment_plans":{"get":{"summary":"Construction work environment plans per project: client, BAS-P and BAS-U, special risks, rules and revision date.","operationId":"list_work_environment_plans","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_work_environment_plans","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Projekt eller arbetsplats)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planering | utforande | avslutat, default planering"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång av planen)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"focus":{"type":"string","description":"bygg | industri | vard | transport | handel | kontor | evenemang | annat, required (Inriktning)"},"address":{"type":"string","description":"text (Adress eller plats)"},"project_no":{"type":"string","description":"text (Projekt- eller ordernummer)"},"client":{"type":"string","description":"text (Beställare eller byggherre)"},"bas_p":{"type":"string","description":"text (BAS-P, planering och projektering)"},"bas_u":{"type":"string","description":"text (BAS-U, utförande)"},"notice":{"type":"string","description":"kravs_ej | ska_goras | gjord (Förhandsanmälan till Arbetsmiljöverket)"},"start_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Start)"},"end_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Beräknat klart)"},"max_workers":{"type":"number","description":"number (Flest samtidigt på plats)"},"work_days":{"type":"number","description":"number (Beräknade arbetsdagar på byggarbetsplatsen)"},"person_days":{"type":"number","description":"number (Beräknade persondagar totalt)"},"special_risks":{"type":"string","description":"text (Risker och hur de hanteras)"},"rules":{"type":"string","description":"text (Ordningsregler)"},"organisation":{"type":"string","description":"text (Organisation och samordning)"},"facilities":{"type":"string","description":"text (Personalutrymmen och första hjälpen)"},"revised_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast reviderad)"}},"required":["title","focus"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Projekt eller arbetsplats)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planering | utforande | avslutat, default planering"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång av planen)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"focus":{"type":"string","description":"bygg | industri | vard | transport | handel | kontor | evenemang | annat, required (Inriktning)"},"address":{"type":"string","description":"text (Adress eller plats)"},"project_no":{"type":"string","description":"text (Projekt- eller ordernummer)"},"client":{"type":"string","description":"text (Beställare eller byggherre)"},"bas_p":{"type":"string","description":"text (BAS-P, planering och projektering)"},"bas_u":{"type":"string","description":"text (BAS-U, utförande)"},"notice":{"type":"string","description":"kravs_ej | ska_goras | gjord (Förhandsanmälan till Arbetsmiljöverket)"},"start_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Start)"},"end_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Beräknat klart)"},"max_workers":{"type":"number","description":"number (Flest samtidigt på plats)"},"work_days":{"type":"number","description":"number (Beräknade arbetsdagar på byggarbetsplatsen)"},"person_days":{"type":"number","description":"number (Beräknade persondagar totalt)"},"special_risks":{"type":"string","description":"text (Risker och hur de hanteras)"},"rules":{"type":"string","description":"text (Ordningsregler)"},"organisation":{"type":"string","description":"text (Organisation och samordning)"},"facilities":{"type":"string","description":"text (Personalutrymmen och första hjälpen)"},"revised_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast reviderad)"}},"required":["title","focus"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/subcontractors":{"get":{"summary":"Subcontractors per project: trade, checks of tax, insurance, ID06, induction, risk assessment and qualifications, and last site check.","operationId":"list_subcontractors","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_subcontractors","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Företag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_kontrollerad | godkand | anmarkning | avslutad, default ej_kontrollerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"org_no":{"type":"string","description":"text (Organisationsnummer)"},"project":{"type":"string","description":"text (Projekt)"},"trade":{"type":"string","description":"text, required (Arbete)"},"contact":{"type":"string","description":"text (Kontaktperson på plats)"},"start_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Börjar)"},"end_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Slutar)"},"f_tax":{"type":"boolean","description":"boolean (F-skatt kontrollerad)"},"insurance":{"type":"boolean","description":"boolean (Ansvarsförsäkring finns)"},"id06":{"type":"boolean","description":"boolean (Registrerade i personalliggaren med ID06)"},"intro":{"type":"boolean","description":"boolean (Introduktion i arbetsmiljöplanen gjord)"},"risk_assessment":{"type":"boolean","description":"boolean (Riskbedömning för deras arbete finns)"},"qualifications":{"type":"string","description":"text (Behörigheter som krävs)"},"qualifications_ok":{"type":"boolean","description":"boolean (Behörigheterna är kontrollerade)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll på plats)"},"notes":{"type":"string","description":"text (Anmärkningar och uppföljning)"}},"required":["title","trade"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Företag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_kontrollerad | godkand | anmarkning | avslutad, default ej_kontrollerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"org_no":{"type":"string","description":"text (Organisationsnummer)"},"project":{"type":"string","description":"text (Projekt)"},"trade":{"type":"string","description":"text, required (Arbete)"},"contact":{"type":"string","description":"text (Kontaktperson på plats)"},"start_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Börjar)"},"end_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Slutar)"},"f_tax":{"type":"boolean","description":"boolean (F-skatt kontrollerad)"},"insurance":{"type":"boolean","description":"boolean (Ansvarsförsäkring finns)"},"id06":{"type":"boolean","description":"boolean (Registrerade i personalliggaren med ID06)"},"intro":{"type":"boolean","description":"boolean (Introduktion i arbetsmiljöplanen gjord)"},"risk_assessment":{"type":"boolean","description":"boolean (Riskbedömning för deras arbete finns)"},"qualifications":{"type":"string","description":"text (Behörigheter som krävs)"},"qualifications_ok":{"type":"boolean","description":"boolean (Behörigheterna är kontrollerade)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll på plats)"},"notes":{"type":"string","description":"text (Anmärkningar och uppföljning)"}},"required":["title","trade"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/measurements":{"get":{"summary":"Occupational hygiene and work environment measurements: factor, value, unit, limit value and its source, and follow-up.","operationId":"list_measurements","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_measurements","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad mättes?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"godkand | atgard | uppfoljd, default godkand"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa mätning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"factor":{"type":"string","description":"buller | damm | kvarts | vibrationer | kemiska | klimat | belysning | radon | stralning | annat, required (Mätning av)"},"measured_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Mätt)"},"location":{"type":"string","description":"text (Var och vid vilket arbete)"},"method":{"type":"string","description":"text (Metod)"},"value":{"type":"number","description":"number, required (Uppmätt värde)"},"unit":{"type":"string","description":"text, required (Enhet)"},"limit":{"type":"number","description":"number (Gränsvärde)"},"limit_source":{"type":"string","description":"text (Gränsvärdets källa)"},"performed_by":{"type":"string","description":"text (Mätt av)"},"action":{"type":"string","description":"text (Åtgärd och uppföljning)"}},"required":["title","factor","measured_on","value","unit"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad mättes?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"godkand | atgard | uppfoljd, default godkand"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa mätning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"factor":{"type":"string","description":"buller | damm | kvarts | vibrationer | kemiska | klimat | belysning | radon | stralning | annat, required (Mätning av)"},"measured_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Mätt)"},"location":{"type":"string","description":"text (Var och vid vilket arbete)"},"method":{"type":"string","description":"text (Metod)"},"value":{"type":"number","description":"number, required (Uppmätt värde)"},"unit":{"type":"string","description":"text, required (Enhet)"},"limit":{"type":"number","description":"number (Gränsvärde)"},"limit_source":{"type":"string","description":"text (Gränsvärdets källa)"},"performed_by":{"type":"string","description":"text (Mätt av)"},"action":{"type":"string","description":"text (Åtgärd och uppföljning)"}},"required":["title","factor","measured_on","value","unit"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/chemicals":{"get":{"summary":"Chemical products with hazards, use, storage and yearly consumption.","operationId":"list_chemicals","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_chemicals","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Produktnamn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | utfasas | avvecklad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn)"},"supplier":{"type":"string","description":"text (Leverantör)"},"use":{"type":"string","description":"text (Användning)"},"location":{"type":"string","description":"text (Förvaras)"},"cas":{"type":"string","description":"text (Ämnen och CAS-nummer)"},"annual_qty":{"type":"number","description":"number (Förbrukning per år)"},"unit":{"type":"string","description":"kg | liter | st (Enhet)"},"max_stored":{"type":"number","description":"number (Största lagrad mängd)"},"sds_date":{"type":"string","format":"date","description":"date YYYY-MM-DD (Säkerhetsdatablad daterat)"},"hazard":{"type":"string","description":"text (Faroangivelser)"},"signal":{"type":"string","description":"fara | varning (Signalord)"},"frequency":{"type":"string","description":"dagligen | veckovis | manadsvis | sallan (Hur ofta används den?)"},"handling":{"type":"string","description":"slutet | doseras | penslas | sprutas (Hur hanteras den?)"},"ventilation":{"type":"string","description":"punktutsug | allman | utomhus | ingen (Ventilation)"},"ppe_used":{"type":"string","description":"text (Skyddsutrustning som används)"},"risk_assessed":{"type":"boolean","description":"boolean (Riskbedömd)"},"spill_protection":{"type":"string","description":"finns | saknas | ej_aktuellt (Spillskydd)"},"svhc":{"type":"boolean","description":"boolean (Innehåller ämne på kandidatförteckningen)"},"substitution":{"type":"string","description":"ej_bedomd | kan_bytas | kan_inte | utfasas (Kan den bytas ut?)"},"waste":{"type":"string","description":"text (Avfall)"}},"required":["title"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Produktnamn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | utfasas | avvecklad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn)"},"supplier":{"type":"string","description":"text (Leverantör)"},"use":{"type":"string","description":"text (Användning)"},"location":{"type":"string","description":"text (Förvaras)"},"cas":{"type":"string","description":"text (Ämnen och CAS-nummer)"},"annual_qty":{"type":"number","description":"number (Förbrukning per år)"},"unit":{"type":"string","description":"kg | liter | st (Enhet)"},"max_stored":{"type":"number","description":"number (Största lagrad mängd)"},"sds_date":{"type":"string","format":"date","description":"date YYYY-MM-DD (Säkerhetsdatablad daterat)"},"hazard":{"type":"string","description":"text (Faroangivelser)"},"signal":{"type":"string","description":"fara | varning (Signalord)"},"frequency":{"type":"string","description":"dagligen | veckovis | manadsvis | sallan (Hur ofta används den?)"},"handling":{"type":"string","description":"slutet | doseras | penslas | sprutas (Hur hanteras den?)"},"ventilation":{"type":"string","description":"punktutsug | allman | utomhus | ingen (Ventilation)"},"ppe_used":{"type":"string","description":"text (Skyddsutrustning som används)"},"risk_assessed":{"type":"boolean","description":"boolean (Riskbedömd)"},"spill_protection":{"type":"string","description":"finns | saknas | ej_aktuellt (Spillskydd)"},"svhc":{"type":"boolean","description":"boolean (Innehåller ämne på kandidatförteckningen)"},"substitution":{"type":"string","description":"ej_bedomd | kan_bytas | kan_inte | utfasas (Kan den bytas ut?)"},"waste":{"type":"string","description":"text (Avfall)"}},"required":["title"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/waste":{"get":{"summary":"Waste log: what was handed over, when, how much, to whom.","operationId":"list_waste","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_waste","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Avfallsslag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"waste_code":{"type":"string","description":"text (Avfallskod)"},"hazardous":{"type":"boolean","description":"boolean (Farligt avfall)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"amount":{"type":"number","description":"number, required (Mängd)"},"unit":{"type":"string","description":"kg | ton | m3 | st, required (Enhet)"},"transporter":{"type":"string","description":"text (Transportör)"},"receiver":{"type":"string","description":"text (Mottagare)"},"treatment":{"type":"string","description":"ateranvandning | materialatervinning | energiatervinning | deponi | annat (Behandling)"},"doc_ref":{"type":"string","description":"text (Transportdokument)"},"reported":{"type":"boolean","description":"boolean (Rapporterat till avfallsregistret)"}},"required":["title","date","amount","unit"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Avfallsslag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"waste_code":{"type":"string","description":"text (Avfallskod)"},"hazardous":{"type":"boolean","description":"boolean (Farligt avfall)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"amount":{"type":"number","description":"number, required (Mängd)"},"unit":{"type":"string","description":"kg | ton | m3 | st, required (Enhet)"},"transporter":{"type":"string","description":"text (Transportör)"},"receiver":{"type":"string","description":"text (Mottagare)"},"treatment":{"type":"string","description":"ateranvandning | materialatervinning | energiatervinning | deponi | annat (Behandling)"},"doc_ref":{"type":"string","description":"text (Transportdokument)"},"reported":{"type":"boolean","description":"boolean (Rapporterat till avfallsregistret)"}},"required":["title","date","amount","unit"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/refrigerants":{"get":{"summary":"Equipment with refrigerants: charge, leak checks and refills.","operationId":"list_refrigerants","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_refrigerants","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Aggregat)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_drift | avstalld | skrotad, default i_drift"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa läckagekontroll)"},"refrigerant":{"type":"string","description":"text, required (Köldmedium)"},"charge_kg":{"type":"number","description":"number, required (Fyllnadsmängd, kg)"},"gwp":{"type":"number","description":"number (GWP-värde)"},"location":{"type":"string","description":"text (Placering)"},"installed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Installerat)"},"hermetic":{"type":"boolean","description":"boolean (Hermetiskt slutet och märkt som det)"},"leak_detection":{"type":"boolean","description":"boolean (Har system för läckagedetektering)"},"leak_interval":{"type":"string","description":"0 | 3 | 6 | 12 | 24 (Läckagekontroll)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll)"},"last_result":{"type":"string","description":"tat | lackage (Resultat)"},"refilled_kg":{"type":"number","description":"number (Påfyllt i år, kg)"},"recovered_kg":{"type":"number","description":"number (Omhändertaget i år, kg)"},"company":{"type":"string","description":"text (Certifierat företag)"},"company_cert":{"type":"string","description":"text (Företagscertifikat)"}},"required":["title","refrigerant","charge_kg"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Aggregat)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_drift | avstalld | skrotad, default i_drift"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa läckagekontroll)"},"refrigerant":{"type":"string","description":"text, required (Köldmedium)"},"charge_kg":{"type":"number","description":"number, required (Fyllnadsmängd, kg)"},"gwp":{"type":"number","description":"number (GWP-värde)"},"location":{"type":"string","description":"text (Placering)"},"installed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Installerat)"},"hermetic":{"type":"boolean","description":"boolean (Hermetiskt slutet och märkt som det)"},"leak_detection":{"type":"boolean","description":"boolean (Har system för läckagedetektering)"},"leak_interval":{"type":"string","description":"0 | 3 | 6 | 12 | 24 (Läckagekontroll)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll)"},"last_result":{"type":"string","description":"tat | lackage (Resultat)"},"refilled_kg":{"type":"number","description":"number (Påfyllt i år, kg)"},"recovered_kg":{"type":"number","description":"number (Omhändertaget i år, kg)"},"company":{"type":"string","description":"text (Certifierat företag)"},"company_cert":{"type":"string","description":"text (Företagscertifikat)"}},"required":["title","refrigerant","charge_kg"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/emissions":{"get":{"summary":"Greenhouse gas calculation rows: activity data and emission factor per year and scope.","operationId":"list_emissions","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_emissions","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Aktivitet)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"period_from":{"type":"string","format":"date","description":"date YYYY-MM-DD (Period från)"},"period_to":{"type":"string","format":"date","description":"date YYYY-MM-DD (Period till)"},"year":{"type":"number","description":"number (År)"},"scope":{"type":"string","description":"1 | 2 | 3, required (Scope)"},"category":{"type":"string","description":"text (Kategori)"},"amount":{"type":"number","description":"number, required (Mängd)"},"unit":{"type":"string","description":"text, required (Enhet)"},"factor":{"type":"number","description":"number, required (Emissionsfaktor, kg CO₂e per enhet)"},"factor_source":{"type":"string","description":"text, required (Faktorns källa och år)"},"method":{"type":"string","description":"matt | beraknad | uppskattad (Underlag)"}},"required":["title","scope","amount","unit","factor","factor_source"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Aktivitet)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"period_from":{"type":"string","format":"date","description":"date YYYY-MM-DD (Period från)"},"period_to":{"type":"string","format":"date","description":"date YYYY-MM-DD (Period till)"},"year":{"type":"number","description":"number (År)"},"scope":{"type":"string","description":"1 | 2 | 3, required (Scope)"},"category":{"type":"string","description":"text (Kategori)"},"amount":{"type":"number","description":"number, required (Mängd)"},"unit":{"type":"string","description":"text, required (Enhet)"},"factor":{"type":"number","description":"number, required (Emissionsfaktor, kg CO₂e per enhet)"},"factor_source":{"type":"string","description":"text, required (Faktorns källa och år)"},"method":{"type":"string","description":"matt | beraknad | uppskattad (Underlag)"}},"required":["title","scope","amount","unit","factor","factor_source"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/safety_representatives":{"get":{"summary":"Safety representatives per workplace: appointed by, term of office, deputy, training and work email.","operationId":"list_safety_representatives","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_safety_representatives","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktiv | vakant | avgatt, default aktiv"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mandatperioden går ut)"},"role":{"type":"string","description":"skyddsombud | huvudskyddsombud | ersattare, required (Uppdrag)"},"workplace":{"type":"string","description":"text, required (Arbetsställe eller skyddsområde)"},"appointed_by":{"type":"string","description":"organisation | arbetstagarna (Utsedd av)"},"organisation":{"type":"string","description":"text (Arbetstagarorganisation)"},"period_from":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mandatperiod från)"},"period_to":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mandatperiod till)"},"substitute":{"type":"string","description":"text (Ersättare)"},"training":{"type":"string","description":"text (Utbildning)"},"training_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Utbildning genomförd)"},"email":{"type":"string","description":"text (Arbetsmejl)"}},"required":["title","role","workplace"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktiv | vakant | avgatt, default aktiv"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mandatperioden går ut)"},"role":{"type":"string","description":"skyddsombud | huvudskyddsombud | ersattare, required (Uppdrag)"},"workplace":{"type":"string","description":"text, required (Arbetsställe eller skyddsområde)"},"appointed_by":{"type":"string","description":"organisation | arbetstagarna (Utsedd av)"},"organisation":{"type":"string","description":"text (Arbetstagarorganisation)"},"period_from":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mandatperiod från)"},"period_to":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mandatperiod till)"},"substitute":{"type":"string","description":"text (Ersättare)"},"training":{"type":"string","description":"text (Utbildning)"},"training_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Utbildning genomförd)"},"email":{"type":"string","description":"text (Arbetsmejl)"}},"required":["title","role","workplace"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/safety_committee_meetings":{"get":{"summary":"Safety committee meetings: date, agenda, attendees, decisions and next meeting.","operationId":"list_safety_committee_meetings","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_safety_committee_meetings","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Möte)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerat | hallet | installt, default planerat"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mötesdag)"},"meeting_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Mötesdag)"},"agenda":{"type":"string","description":"text (Dagordning)"},"present":{"type":"string","description":"text (Närvarande)"},"decisions":{"type":"string","description":"text (Beslut)"},"next_meeting":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa möte)"}},"required":["title","meeting_on"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Möte)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerat | hallet | installt, default planerat"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Mötesdag)"},"meeting_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Mötesdag)"},"agenda":{"type":"string","description":"text (Dagordning)"},"present":{"type":"string","description":"text (Närvarande)"},"decisions":{"type":"string","description":"text (Beslut)"},"next_meeting":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa möte)"}},"required":["title","meeting_on"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/safety_committee_members":{"get":{"summary":"Members of the safety committee and their roles.","operationId":"list_safety_committee_members","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_safety_committee_members","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktiv | avgatt, default aktiv"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"role":{"type":"string","description":"ordforande | sekreterare | arbetsgivare | skyddsombud | arbetstagare | foretagshalsovard | annan, required (Roll)"},"side":{"type":"string","description":"arbetsgivaren | arbetstagarna | ingen (Företräder)"},"member_from":{"type":"string","format":"date","description":"date YYYY-MM-DD (Ledamot sedan)"},"email":{"type":"string","description":"text (Arbetsmejl)"}},"required":["title","role"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktiv | avgatt, default aktiv"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"role":{"type":"string","description":"ordforande | sekreterare | arbetsgivare | skyddsombud | arbetstagare | foretagshalsovard | annan, required (Roll)"},"side":{"type":"string","description":"arbetsgivaren | arbetstagarna | ingen (Företräder)"},"member_from":{"type":"string","format":"date","description":"date YYYY-MM-DD (Ledamot sedan)"},"email":{"type":"string","description":"text (Arbetsmejl)"}},"required":["title","role"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/whistleblowing_channels":{"get":{"summary":"Whistleblowing channels: how to report, who receives and follows up, shared channel and routine.","operationId":"list_whistleblowing_channels","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_whistleblowing_channels","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kanal)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktiv | planerad | avvecklad, default aktiv"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn av rutinen)"},"type":{"type":"string","description":"digital | post | mote | muntlig | annat, required (Sätt att rapportera)"},"how":{"type":"string","description":"text (Så rapporterar man)"},"receiver":{"type":"string","description":"text, required (Tar emot och följer upp)"},"shared":{"type":"string","description":"egen | delad | extern (Egen eller delad kanal)"},"shared_with":{"type":"string","description":"text (Delas med)"},"routine":{"type":"string","description":"text (Rutin)"},"informed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Medarbetarna informerades)"}},"required":["title","type","receiver"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kanal)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktiv | planerad | avvecklad, default aktiv"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn av rutinen)"},"type":{"type":"string","description":"digital | post | mote | muntlig | annat, required (Sätt att rapportera)"},"how":{"type":"string","description":"text (Så rapporterar man)"},"receiver":{"type":"string","description":"text, required (Tar emot och följer upp)"},"shared":{"type":"string","description":"egen | delad | extern (Egen eller delad kanal)"},"shared_with":{"type":"string","description":"text (Delas med)"},"routine":{"type":"string","description":"text (Rutin)"},"informed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Medarbetarna informerades)"}},"required":["title","type","receiver"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/active_measures":{"get":{"summary":"Active measures against discrimination and the annual pay survey: type, area, year, findings, actions and follow-up.","operationId":"list_active_measures","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_active_measures","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | pagar | klar, default planerad"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Klart senast)"},"type":{"type":"string","description":"lonekartlaggning | trakasserier | undersokning | atgard | uppfoljning | dokumentation, required (Typ)"},"field":{"type":"string","description":"arbetsforhallanden | lon | rekrytering | utbildning | foraldraskap (Område)"},"year":{"type":"number","description":"number (År)"},"findings":{"type":"string","description":"text (Vad visade undersökningen eller kartläggningen?)"},"action":{"type":"string","description":"text (Åtgärd och varför)"},"cooperation":{"type":"string","description":"text (Samverkan)"},"done_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Genomförd)"},"follow_up":{"type":"string","description":"text (Uppföljning: hjälpte det?)"}},"required":["title","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | pagar | klar, default planerad"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Klart senast)"},"type":{"type":"string","description":"lonekartlaggning | trakasserier | undersokning | atgard | uppfoljning | dokumentation, required (Typ)"},"field":{"type":"string","description":"arbetsforhallanden | lon | rekrytering | utbildning | foraldraskap (Område)"},"year":{"type":"number","description":"number (År)"},"findings":{"type":"string","description":"text (Vad visade undersökningen eller kartläggningen?)"},"action":{"type":"string","description":"text (Åtgärd och varför)"},"cooperation":{"type":"string","description":"text (Samverkan)"},"done_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Genomförd)"},"follow_up":{"type":"string","description":"text (Uppföljning: hjälpte det?)"}},"required":["title","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/temperatur":{"get":{"summary":"Temperaturer i kyl, frys, varmhållning, nedkylning och vid mottagning. Gränsen fylls i efter enhetstyp och kan ändras. Det som ligger utanför gränsen blir en avvikelse som ska ha en åtgärd.","operationId":"list_temperatur","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_temperatur","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Var mättes det?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ok | avvikelse | atgardad, default ok"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"unit":{"type":"string","description":"kyl | frys | varmhallning | nedkylning | mottagning, required (Enhet)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"time":{"type":"string","description":"text (Klockslag)"},"value":{"type":"number","description":"number, required (Uppmätt temperatur, °C)"},"limit":{"type":"number","description":"number (Gräns, °C)"},"signature":{"type":"string","description":"text (Signatur)"},"action":{"type":"string","description":"text (Åtgärd vid avvikelse)"}},"required":["title","unit","date","value"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Var mättes det?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ok | avvikelse | atgardad, default ok"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"unit":{"type":"string","description":"kyl | frys | varmhallning | nedkylning | mottagning, required (Enhet)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"time":{"type":"string","description":"text (Klockslag)"},"value":{"type":"number","description":"number, required (Uppmätt temperatur, °C)"},"limit":{"type":"number","description":"number (Gräns, °C)"},"signature":{"type":"string","description":"text (Signatur)"},"action":{"type":"string","description":"text (Åtgärd vid avvikelse)"}},"required":["title","unit","date","value"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/allergen":{"get":{"summary":"Vilka av de 14 allergenerna som finns i varje rätt på menyn, när det senast kontrollerades och vem som ansvarar. Se över rätten när ett recept, en råvara eller en leverantör byts.","operationId":"list_allergen","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_allergen","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Rätt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | ses_over | utgatt, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"gluten":{"type":"boolean","description":"boolean (Spannmål som innehåller gluten)"},"kraftdjur":{"type":"boolean","description":"boolean (Kräftdjur)"},"agg":{"type":"boolean","description":"boolean (Ägg)"},"fisk":{"type":"boolean","description":"boolean (Fisk)"},"jordnot":{"type":"boolean","description":"boolean (Jordnötter)"},"soja":{"type":"boolean","description":"boolean (Sojabönor)"},"mjolk":{"type":"boolean","description":"boolean (Mjölk)"},"notter":{"type":"boolean","description":"boolean (Nötter)"},"selleri":{"type":"boolean","description":"boolean (Selleri)"},"senap":{"type":"boolean","description":"boolean (Senap)"},"sesam":{"type":"boolean","description":"boolean (Sesamfrön)"},"svavel":{"type":"boolean","description":"boolean (Svaveldioxid och sulfiter)"},"lupin":{"type":"boolean","description":"boolean (Lupin)"},"blotdjur":{"type":"boolean","description":"boolean (Blötdjur)"},"checked_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Senast kontrollerad)"},"source":{"type":"string","description":"text (Underlag)"},"notes":{"type":"string","description":"text (Att säga till gästen)"}},"required":["title","checked_on"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Rätt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | ses_over | utgatt, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"gluten":{"type":"boolean","description":"boolean (Spannmål som innehåller gluten)"},"kraftdjur":{"type":"boolean","description":"boolean (Kräftdjur)"},"agg":{"type":"boolean","description":"boolean (Ägg)"},"fisk":{"type":"boolean","description":"boolean (Fisk)"},"jordnot":{"type":"boolean","description":"boolean (Jordnötter)"},"soja":{"type":"boolean","description":"boolean (Sojabönor)"},"mjolk":{"type":"boolean","description":"boolean (Mjölk)"},"notter":{"type":"boolean","description":"boolean (Nötter)"},"selleri":{"type":"boolean","description":"boolean (Selleri)"},"senap":{"type":"boolean","description":"boolean (Senap)"},"sesam":{"type":"boolean","description":"boolean (Sesamfrön)"},"svavel":{"type":"boolean","description":"boolean (Svaveldioxid och sulfiter)"},"lupin":{"type":"boolean","description":"boolean (Lupin)"},"blotdjur":{"type":"boolean","description":"boolean (Blötdjur)"},"checked_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Senast kontrollerad)"},"source":{"type":"string","description":"text (Underlag)"},"notes":{"type":"string","description":"text (Att säga till gästen)"}},"required":["title","checked_on"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/kontrollrapport":{"get":{"summary":"Rapporterna från kommunens livsmedelskontroller: vilken sorts kontroll det var, vad som kontrollerades, vilka brister som hittades och vad ni har gjort åt dem. Inför nästa kontroll är det här det första inspektören frågar efter.","operationId":"list_kontrollrapport","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_kontrollrapport","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kontroll)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"atgarder_kvar | atgardad | utan_anmarkning, default atgarder_kvar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärdat senast)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum för kontrollen)"},"type":{"type":"string","description":"planerad | uppfoljande | klagomal | extra | revision | annan, required (Sorts kontroll)"},"authority":{"type":"string","description":"text (Kontrollmyndighet)"},"reference":{"type":"string","description":"text (Diarienummer)"},"scope":{"type":"string","description":"text (Vad kontrollerades)"},"findings":{"type":"string","description":"text (Brister)"},"actions":{"type":"string","description":"text (Vad vi gör åt bristerna)"},"deadline":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärdat senast)"},"fee":{"type":"number","description":"number (Kontrollavgift, kr)"}},"required":["title","date","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kontroll)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"atgarder_kvar | atgardad | utan_anmarkning, default atgarder_kvar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärdat senast)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum för kontrollen)"},"type":{"type":"string","description":"planerad | uppfoljande | klagomal | extra | revision | annan, required (Sorts kontroll)"},"authority":{"type":"string","description":"text (Kontrollmyndighet)"},"reference":{"type":"string","description":"text (Diarienummer)"},"scope":{"type":"string","description":"text (Vad kontrollerades)"},"findings":{"type":"string","description":"text (Brister)"},"actions":{"type":"string","description":"text (Vad vi gör åt bristerna)"},"deadline":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärdat senast)"},"fee":{"type":"number","description":"number (Kontrollavgift, kr)"}},"required":["title","date","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ccp":{"get":{"summary":"Övervakningen av de kritiska styrpunkterna i HACCP-planen: vad som mättes, mot vilket kritiskt gränsvärde, vem som mätte och vad som gjordes när gränsen passerades.","operationId":"list_ccp","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_ccp","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kritisk styrpunkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"inom | utanfor | atgardad, default inom"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"direction":{"type":"string","description":"max | min, required (Gränsvärdet är)"},"limit":{"type":"number","description":"number, required (Kritiskt gränsvärde)"},"value":{"type":"number","description":"number, required (Uppmätt värde)"},"unit":{"type":"string","description":"text, required (Enhet)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"time":{"type":"string","description":"text (Klockslag)"},"batch":{"type":"string","description":"text (Batch eller parti)"},"signature":{"type":"string","description":"text (Signatur)"},"corrective":{"type":"string","description":"text (Korrigerande åtgärd)"},"disposition":{"type":"string","description":"frislappt | omarbetad | sparrad | kasserad (Vad hände med produkten?)"},"verified_by":{"type":"string","description":"text (Granskad av)"},"ccp_id":{"type":"string","description":"text (Styrpunkt i HACCP-planen)"},"deviation_id":{"type":"string","description":"text (Avvikelse)"}},"required":["title","direction","limit","value","unit","date"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kritisk styrpunkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"inom | utanfor | atgardad, default inom"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"direction":{"type":"string","description":"max | min, required (Gränsvärdet är)"},"limit":{"type":"number","description":"number, required (Kritiskt gränsvärde)"},"value":{"type":"number","description":"number, required (Uppmätt värde)"},"unit":{"type":"string","description":"text, required (Enhet)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"time":{"type":"string","description":"text (Klockslag)"},"batch":{"type":"string","description":"text (Batch eller parti)"},"signature":{"type":"string","description":"text (Signatur)"},"corrective":{"type":"string","description":"text (Korrigerande åtgärd)"},"disposition":{"type":"string","description":"frislappt | omarbetad | sparrad | kasserad (Vad hände med produkten?)"},"verified_by":{"type":"string","description":"text (Granskad av)"},"ccp_id":{"type":"string","description":"text (Styrpunkt i HACCP-planen)"},"deviation_id":{"type":"string","description":"text (Avvikelse)"}},"required":["title","direction","limit","value","unit","date"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/leverantor":{"get":{"summary":"Godkända leverantörer av råvaror, förpackningar och tjänster: certifiering och hur länge den gäller, riskbedömning och när leverantören senast bedömdes.","operationId":"list_leverantor","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_leverantor","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Leverantör)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_bedomd | godkand | villkor | underkand | avslutad, default ej_bedomd"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa bedömning)"},"material":{"type":"string","description":"text, required (Råvara eller tjänst)"},"cert":{"type":"string","description":"fssc | brcgs | ifs | annan | ingen, required (Certifiering)"},"cert_other":{"type":"string","description":"text (Vilken annan certifiering?)"},"cert_valid":{"type":"string","format":"date","description":"date YYYY-MM-DD (Certifikatet gäller till)"},"risk":{"type":"string","description":"lag | medel | hog, required (Riskbedömning)"},"risk_basis":{"type":"string","description":"text (Varför den bedömningen?)"},"method":{"type":"string","description":"certifikat | enkat | revision | analys | historik (Så bedöms leverantören)"},"last_review":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste bedömning)"},"spec":{"type":"boolean","description":"boolean (Specifikation finns)"},"allergen_info":{"type":"boolean","description":"boolean (Allergeninformation finns)"},"doc_contact":{"type":"boolean","description":"boolean (Intyg om överensstämmelse för kontaktmaterial finns)"}},"required":["title","material","cert","risk"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Leverantör)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_bedomd | godkand | villkor | underkand | avslutad, default ej_bedomd"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa bedömning)"},"material":{"type":"string","description":"text, required (Råvara eller tjänst)"},"cert":{"type":"string","description":"fssc | brcgs | ifs | annan | ingen, required (Certifiering)"},"cert_other":{"type":"string","description":"text (Vilken annan certifiering?)"},"cert_valid":{"type":"string","format":"date","description":"date YYYY-MM-DD (Certifikatet gäller till)"},"risk":{"type":"string","description":"lag | medel | hog, required (Riskbedömning)"},"risk_basis":{"type":"string","description":"text (Varför den bedömningen?)"},"method":{"type":"string","description":"certifikat | enkat | revision | analys | historik (Så bedöms leverantören)"},"last_review":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste bedömning)"},"spec":{"type":"boolean","description":"boolean (Specifikation finns)"},"allergen_info":{"type":"boolean","description":"boolean (Allergeninformation finns)"},"doc_contact":{"type":"boolean","description":"boolean (Intyg om överensstämmelse för kontaktmaterial finns)"}},"required":["title","material","cert","risk"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/haccp":{"get":{"summary":"HACCP-planen enligt artikel 5 i förordning (EG) nr 852/2004 och Codex: HACCP-grupp, produktbeskrivning, avsedd användning, flödesschema, verifiering och dokumentation. Faroanalysen och de kritiska styrpunkterna görs per processteg på planens sida.","operationId":"list_haccp","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_haccp","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Plan)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"utkast | faststalld | ersatt, default utkast"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång av planen)"},"scope":{"type":"string","description":"text (Vad planen omfattar)"},"team":{"type":"string","description":"text (HACCP-gruppen)"},"team_lead":{"type":"string","description":"text (Ledare för gruppen)"},"product":{"type":"string","description":"text (Produkter och sammansättning)"},"properties":{"type":"string","description":"text (Egenskaper som påverkar säkerheten)"},"packaging":{"type":"string","description":"text (Förpackning)"},"shelf_life":{"type":"string","description":"text (Hållbarhet och hur den är satt)"},"storage":{"type":"string","description":"text (Förvaring och distribution)"},"allergens":{"type":"string","description":"text (Allergener i produkterna)"},"labelling":{"type":"string","description":"text (Märkning och anvisningar till konsumenten)"},"intended_use":{"type":"string","description":"text (Avsedd användning)"},"consumers":{"type":"string","description":"text (Konsumenter och känsliga grupper)"},"misuse":{"type":"string","description":"text (Felanvändning som går att förutse)"},"flow":{"type":"string","description":"text (Processteg i ordning, ett per rad)"},"process_id":{"type":"string","description":"text (Processkarta)"},"flow_verified_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Flödesschemat kontrollerat på plats)"},"flow_verified_by":{"type":"string","description":"text (Kontrollerat av)"},"verification":{"type":"string","description":"text (Så verifieras planen)"},"validation":{"type":"string","description":"text (Validering av gränsvärdena)"},"review_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste genomgång av hela planen)"},"review_triggers":{"type":"string","description":"text (När planen ses över utöver den årliga genomgången)"},"records":{"type":"string","description":"text (Dokumentation och hur länge den sparas)"},"approved_by":{"type":"string","description":"text (Fastställd av)"},"approved_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Fastställd)"}},"required":["title"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Plan)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"utkast | faststalld | ersatt, default utkast"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång av planen)"},"scope":{"type":"string","description":"text (Vad planen omfattar)"},"team":{"type":"string","description":"text (HACCP-gruppen)"},"team_lead":{"type":"string","description":"text (Ledare för gruppen)"},"product":{"type":"string","description":"text (Produkter och sammansättning)"},"properties":{"type":"string","description":"text (Egenskaper som påverkar säkerheten)"},"packaging":{"type":"string","description":"text (Förpackning)"},"shelf_life":{"type":"string","description":"text (Hållbarhet och hur den är satt)"},"storage":{"type":"string","description":"text (Förvaring och distribution)"},"allergens":{"type":"string","description":"text (Allergener i produkterna)"},"labelling":{"type":"string","description":"text (Märkning och anvisningar till konsumenten)"},"intended_use":{"type":"string","description":"text (Avsedd användning)"},"consumers":{"type":"string","description":"text (Konsumenter och känsliga grupper)"},"misuse":{"type":"string","description":"text (Felanvändning som går att förutse)"},"flow":{"type":"string","description":"text (Processteg i ordning, ett per rad)"},"process_id":{"type":"string","description":"text (Processkarta)"},"flow_verified_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Flödesschemat kontrollerat på plats)"},"flow_verified_by":{"type":"string","description":"text (Kontrollerat av)"},"verification":{"type":"string","description":"text (Så verifieras planen)"},"validation":{"type":"string","description":"text (Validering av gränsvärdena)"},"review_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste genomgång av hela planen)"},"review_triggers":{"type":"string","description":"text (När planen ses över utöver den årliga genomgången)"},"records":{"type":"string","description":"text (Dokumentation och hur länge den sparas)"},"approved_by":{"type":"string","description":"text (Fastställd av)"},"approved_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Fastställd)"}},"required":["title"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/haccp_fara":{"get":{"summary":"Faroanalysen i HACCP-planen: en rad per fara och processteg, med sannolikhet och allvarlighet, beslutsträdet och för de kritiska styrpunkterna gränsvärde, övervakning, korrigerande åtgärd och verifiering.","operationId":"list_haccp_fara","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_haccp_fara","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fara i steget)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"bedoms | ej_betydande | prp | ccp | andra, default bedoms"},"responsible":{"type":"string","description":"text"},"plan_id":{"type":"string","description":"text (HACCP-plan)"},"step":{"type":"string","description":"text, required (Processteg)"},"step_no":{"type":"number","description":"number (Stegets nummer i flödet)"},"hazard_type":{"type":"string","description":"biologisk | kemisk | fysisk | allergen, required (Typ av fara)"},"cause":{"type":"string","description":"text (Orsak eller källa)"},"likelihood":{"type":"string","description":"1 | 2 | 3, required (Sannolikhet)"},"severity":{"type":"string","description":"1 | 2 | 3, required (Allvarlighet)"},"control":{"type":"string","description":"text (Förebyggande åtgärd)"},"q1":{"type":"string","description":"ja | nej (Fråga 1: Finns det förebyggande åtgärder för faran?)"},"q2":{"type":"string","description":"ja | nej (Fråga 2: Är steget utformat för att eliminera faran eller minska den till en godtagbar nivå?)"},"q3":{"type":"string","description":"ja | nej (Fråga 3: Kan faran uppstå eller öka till en oacceptabel nivå i steget?)"},"q4":{"type":"string","description":"ja | nej (Fråga 4: Kommer ett senare steg att eliminera faran eller minska den till en godtagbar nivå?)"},"ccp_no":{"type":"string","description":"text (Styrpunktens nummer)"},"direction":{"type":"string","description":"max | min (Gränsvärdet är)"},"limit":{"type":"number","description":"number (Kritiskt gränsvärde)"},"unit":{"type":"string","description":"text (Enhet)"},"limit_basis":{"type":"string","description":"text (Underlag för gränsvärdet)"},"monitoring":{"type":"string","description":"text (Övervakning: vad, hur, hur ofta och vem)"},"corrective":{"type":"string","description":"text (Korrigerande åtgärd när gränsen passeras)"},"verification":{"type":"string","description":"text (Verifiering av styrpunkten)"},"records":{"type":"string","description":"text (Dokumentation)"}},"required":["title","step","hazard_type","likelihood","severity"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fara i steget)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"bedoms | ej_betydande | prp | ccp | andra, default bedoms"},"responsible":{"type":"string","description":"text"},"plan_id":{"type":"string","description":"text (HACCP-plan)"},"step":{"type":"string","description":"text, required (Processteg)"},"step_no":{"type":"number","description":"number (Stegets nummer i flödet)"},"hazard_type":{"type":"string","description":"biologisk | kemisk | fysisk | allergen, required (Typ av fara)"},"cause":{"type":"string","description":"text (Orsak eller källa)"},"likelihood":{"type":"string","description":"1 | 2 | 3, required (Sannolikhet)"},"severity":{"type":"string","description":"1 | 2 | 3, required (Allvarlighet)"},"control":{"type":"string","description":"text (Förebyggande åtgärd)"},"q1":{"type":"string","description":"ja | nej (Fråga 1: Finns det förebyggande åtgärder för faran?)"},"q2":{"type":"string","description":"ja | nej (Fråga 2: Är steget utformat för att eliminera faran eller minska den till en godtagbar nivå?)"},"q3":{"type":"string","description":"ja | nej (Fråga 3: Kan faran uppstå eller öka till en oacceptabel nivå i steget?)"},"q4":{"type":"string","description":"ja | nej (Fråga 4: Kommer ett senare steg att eliminera faran eller minska den till en godtagbar nivå?)"},"ccp_no":{"type":"string","description":"text (Styrpunktens nummer)"},"direction":{"type":"string","description":"max | min (Gränsvärdet är)"},"limit":{"type":"number","description":"number (Kritiskt gränsvärde)"},"unit":{"type":"string","description":"text (Enhet)"},"limit_basis":{"type":"string","description":"text (Underlag för gränsvärdet)"},"monitoring":{"type":"string","description":"text (Övervakning: vad, hur, hur ofta och vem)"},"corrective":{"type":"string","description":"text (Korrigerande åtgärd när gränsen passeras)"},"verification":{"type":"string","description":"text (Verifiering av styrpunkten)"},"records":{"type":"string","description":"text (Dokumentation)"}},"required":["title","step","hazard_type","likelihood","severity"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/provtagning":{"get":{"summary":"Provtagningsplanen och resultaten: ytprover och miljöprover efter hygienzon, till exempel Listeria och Enterobacteriaceae, produktprover enligt förordning (EG) nr 2073/2005, vattenprover och ATP-mätning. Ett prov utanför gränsen blir en avvikelse.","operationId":"list_provtagning","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_provtagning","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Provpunkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | ok | utanfor | atgardad, default planerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa provtagning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"zone":{"type":"string","description":"zon1 | zon2 | zon3 | zon4 | produkt | vatten, required (Zon eller typ)"},"sample_type":{"type":"string","description":"svabb | kontaktplatta | atp | produkt | vatten | luft, required (Provtyp)"},"analysis":{"type":"string","description":"listeria_mono | listeria_spp | enterobacteriaceae | salmonella | ecoli | totalantal | mogel | atp | allergen | annan, required (Analys)"},"analysis_other":{"type":"string","description":"text (Vilken annan analys?)"},"frequency":{"type":"string","description":"vecka | manad | kvartal | halvar | ar | vid_behov (Hur ofta)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD (Provtaget)"},"lab":{"type":"string","description":"text (Laboratorium)"},"detected":{"type":"string","description":"ja | nej (Påvisad?)"},"value":{"type":"number","description":"number (Resultat)"},"limit":{"type":"number","description":"number (Gräns)"},"unit":{"type":"string","description":"text (Enhet)"},"corrective":{"type":"string","description":"text (Åtgärd vid prov utanför gränsen)"},"deviation_id":{"type":"string","description":"text (Avvikelse)"}},"required":["title","zone","sample_type","analysis"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Provpunkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | ok | utanfor | atgardad, default planerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa provtagning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"zone":{"type":"string","description":"zon1 | zon2 | zon3 | zon4 | produkt | vatten, required (Zon eller typ)"},"sample_type":{"type":"string","description":"svabb | kontaktplatta | atp | produkt | vatten | luft, required (Provtyp)"},"analysis":{"type":"string","description":"listeria_mono | listeria_spp | enterobacteriaceae | salmonella | ecoli | totalantal | mogel | atp | allergen | annan, required (Analys)"},"analysis_other":{"type":"string","description":"text (Vilken annan analys?)"},"frequency":{"type":"string","description":"vecka | manad | kvartal | halvar | ar | vid_behov (Hur ofta)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD (Provtaget)"},"lab":{"type":"string","description":"text (Laboratorium)"},"detected":{"type":"string","description":"ja | nej (Påvisad?)"},"value":{"type":"number","description":"number (Resultat)"},"limit":{"type":"number","description":"number (Gräns)"},"unit":{"type":"string","description":"text (Enhet)"},"corrective":{"type":"string","description":"text (Åtgärd vid prov utanför gränsen)"},"deviation_id":{"type":"string","description":"text (Avvikelse)"}},"required":["title","zone","sample_type","analysis"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/aterkallelse":{"get":{"summary":"Protokoll från spårbarhetstester och återkallelseövningar: vilken batch, vad som spårades ett steg bakåt och ett steg framåt, hur lång tid det tog och vad som inte fungerade.","operationId":"list_aterkallelse","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_aterkallelse","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Övningens namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | godkand | avvikelse, default pagar"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa spårbarhetstest)"},"exercise_type":{"type":"string","description":"sparbarhet | ovning | verklig, required (Typ)"},"batch":{"type":"string","description":"text, required (Batch eller parti)"},"product":{"type":"string","description":"text (Produkt)"},"started_at":{"type":"string","description":"text (Startad)"},"ended_at":{"type":"string","description":"text (Avslutad)"},"target_minutes":{"type":"number","description":"number (Mål för tiden, minuter)"},"back_trace":{"type":"string","description":"text (Ett steg bakåt: råvaror, förpackningar och leverantörer med parti)"},"back_ok":{"type":"string","description":"ja | nej (Gick allt att spåra bakåt?)"},"forward_trace":{"type":"string","description":"text (Ett steg framåt: kunder, mängder och leveransdatum)"},"forward_ok":{"type":"string","description":"ja | nej (Gick alla kunder att hitta?)"},"qty_produced":{"type":"number","description":"number (Producerad mängd)"},"qty_found":{"type":"number","description":"number (Spårad mängd)"},"qty_unit":{"type":"string","description":"text (Enhet)"},"minutes":{"type":"number","description":"number (Tid, minuter)"},"contacted":{"type":"string","description":"text (Vilka kontaktades i övningen)"},"deviations":{"type":"string","description":"text (Avvikelser och brister)"},"actions":{"type":"string","description":"text (Åtgärder)"},"deviation_id":{"type":"string","description":"text (Avvikelse)"}},"required":["title","exercise_type","batch"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Övningens namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | godkand | avvikelse, default pagar"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa spårbarhetstest)"},"exercise_type":{"type":"string","description":"sparbarhet | ovning | verklig, required (Typ)"},"batch":{"type":"string","description":"text, required (Batch eller parti)"},"product":{"type":"string","description":"text (Produkt)"},"started_at":{"type":"string","description":"text (Startad)"},"ended_at":{"type":"string","description":"text (Avslutad)"},"target_minutes":{"type":"number","description":"number (Mål för tiden, minuter)"},"back_trace":{"type":"string","description":"text (Ett steg bakåt: råvaror, förpackningar och leverantörer med parti)"},"back_ok":{"type":"string","description":"ja | nej (Gick allt att spåra bakåt?)"},"forward_trace":{"type":"string","description":"text (Ett steg framåt: kunder, mängder och leveransdatum)"},"forward_ok":{"type":"string","description":"ja | nej (Gick alla kunder att hitta?)"},"qty_produced":{"type":"number","description":"number (Producerad mängd)"},"qty_found":{"type":"number","description":"number (Spårad mängd)"},"qty_unit":{"type":"string","description":"text (Enhet)"},"minutes":{"type":"number","description":"number (Tid, minuter)"},"contacted":{"type":"string","description":"text (Vilka kontaktades i övningen)"},"deviations":{"type":"string","description":"text (Avvikelser och brister)"},"actions":{"type":"string","description":"text (Åtgärder)"},"deviation_id":{"type":"string","description":"text (Avvikelse)"}},"required":["title","exercise_type","batch"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/atk_kontakt":{"get":{"summary":"Vilka som ska nås när en produkt dras tillbaka eller återkallas: återkallelsegruppen, kontrollmyndigheten, kunder, leverantörer, laboratorium och transport. Skriv funktion och företag. Personnummer sparas inte.","operationId":"list_atk_kontakt","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_atk_kontakt","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Funktion eller företag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"responsible":{"type":"string","description":"text"},"role":{"type":"string","description":"grupp | myndighet | kund | leverantor | lab | transport | forsakring | media | annan, required (Roll i återkallelsen)"},"organisation":{"type":"string","description":"text (Företag eller myndighet)"},"contact":{"type":"string","description":"text (Kontaktväg)"},"when":{"type":"string","description":"text (När de kontaktas)"},"notes":{"type":"string","description":"text (Anteckningar)"}},"required":["title","role"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Funktion eller företag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"responsible":{"type":"string","description":"text"},"role":{"type":"string","description":"grupp | myndighet | kund | leverantor | lab | transport | forsakring | media | annan, required (Roll i återkallelsen)"},"organisation":{"type":"string","description":"text (Företag eller myndighet)"},"contact":{"type":"string","description":"text (Kontaktväg)"},"when":{"type":"string","description":"text (När de kontaktas)"},"notes":{"type":"string","description":"text (Anteckningar)"}},"required":["title","role"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/atk_rutin":{"get":{"summary":"Rutinen för tillbakadragande och återkallelse enligt artikel 19 i förordning (EG) nr 178/2002: vem som beslutar, när kontrollmyndigheten informeras, hur leveranser stoppas och kunder och konsumenter nås.","operationId":"list_atk_rutin","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_atk_rutin","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Rutinens namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"utkast | faststalld, default utkast"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång)"},"triggers":{"type":"string","description":"text (När rutinen startar)"},"decision":{"type":"string","description":"text (Vem som beslutar och vilka som ingår i gruppen)"},"authority":{"type":"string","description":"text (Information till kontrollmyndigheten)"},"stop":{"type":"string","description":"text (Så stoppas leveranser och lager spärras)"},"customers":{"type":"string","description":"text (Så informeras kunder och konsumenter)"},"returns":{"type":"string","description":"text (Returer, kassation och avslut)"},"revised_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast reviderad)"}},"required":["title"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Rutinens namn)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"utkast | faststalld, default utkast"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång)"},"triggers":{"type":"string","description":"text (När rutinen startar)"},"decision":{"type":"string","description":"text (Vem som beslutar och vilka som ingår i gruppen)"},"authority":{"type":"string","description":"text (Information till kontrollmyndigheten)"},"stop":{"type":"string","description":"text (Så stoppas leveranser och lager spärras)"},"customers":{"type":"string","description":"text (Så informeras kunder och konsumenter)"},"returns":{"type":"string","description":"text (Returer, kassation och avslut)"},"revised_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast reviderad)"}},"required":["title"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/behorighet":{"get":{"summary":"Körkortsbehörigheter, YKB, ADR-intyg, truckutbildning och utbildning enligt ADR 1.3 med sista giltighetsdag. Listan visar vad som är giltigt, vad som går ut inom 60 dagar och vad som redan har gått ut. Skriv namn eller initialer. Personnummer sparas inte.","operationId":"list_behorighet","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_behorighet","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Person)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | avslutad, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"type":{"type":"string","description":"korkort | ykb | adr | truck | adr13 | annat, required (Typ)"},"scope":{"type":"string","description":"text (Behörighet eller omfattning)"},"valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"issuer":{"type":"string","description":"text (Utfärdare)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Person)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | avslutad, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"type":{"type":"string","description":"korkort | ykb | adr | truck | adr13 | annat, required (Typ)"},"scope":{"type":"string","description":"text (Behörighet eller omfattning)"},"valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"issuer":{"type":"string","description":"text (Utfärdare)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/farligtgods":{"get":{"summary":"Det farliga gods ni transporterar, lastar, packar eller skickar: UN-nummer, klass, förpackningsgrupp och största mängd per transport. Ange om transporterna görs under gränsen i 1.1.3.6 och när säkerhetsrådgivaren senast lämnade en årsrapport.","operationId":"list_farligtgods","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_farligtgods","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Benämning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | upphort, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"un":{"type":"string","description":"text, required (UN-nummer)"},"class":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9, required (Klass)"},"pg":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp)"},"qty":{"type":"string","description":"text (Största mängd per transport)"},"exemption":{"type":"string","description":"inget | u1136, required (Undantag)"},"advisor_report":{"type":"string","format":"date","description":"date YYYY-MM-DD (Säkerhetsrådgivarens senaste årsrapport)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","un","class","exemption"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Benämning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | upphort, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"un":{"type":"string","description":"text, required (UN-nummer)"},"class":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9, required (Klass)"},"pg":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp)"},"qty":{"type":"string","description":"text (Största mängd per transport)"},"exemption":{"type":"string","description":"inget | u1136, required (Undantag)"},"advisor_report":{"type":"string","format":"date","description":"date YYYY-MM-DD (Säkerhetsrådgivarens senaste årsrapport)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","un","class","exemption"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/dangerous_goods_shipments":{"get":{"summary":"Shipments of dangerous goods: UN number, class, packing group, transport category and quantity per line, the 1.1.3.6 exemption, documents, equipment, driver and vehicle.","operationId":"list_dangerous_goods_shipments","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_dangerous_goods_shipments","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Sändning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | avgatt | levererad | avbruten, default planerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"shipped_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Avfärd)"},"role":{"type":"string","description":"transportor | avsandare | lastare | mottagare (Er roll i transporten)"},"route":{"type":"string","description":"text (Från och till)"},"consignee":{"type":"string","description":"text (Mottagare)"},"driver":{"type":"string","description":"text (Förare)"},"vehicle":{"type":"string","description":"text (Fordon, registreringsnummer)"},"un1":{"type":"string","description":"text, required (UN-nummer, rad 1)"},"name1":{"type":"string","description":"text (Officiell transportbenämning, rad 1)"},"class1":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9 (Klass, rad 1)"},"pg1":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp, rad 1)"},"cat1":{"type":"string","description":"0 | 1 | 2 | 3 | 4 | 1a (Transportkategori, rad 1)"},"qty1":{"type":"number","description":"number (Mängd, rad 1)"},"unit1":{"type":"string","description":"liter | kg (Enhet, rad 1)"},"un2":{"type":"string","description":"text (UN-nummer, rad 2)"},"name2":{"type":"string","description":"text (Officiell transportbenämning, rad 2)"},"class2":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9 (Klass, rad 2)"},"pg2":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp, rad 2)"},"cat2":{"type":"string","description":"0 | 1 | 2 | 3 | 4 | 1a (Transportkategori, rad 2)"},"qty2":{"type":"number","description":"number (Mängd, rad 2)"},"unit2":{"type":"string","description":"liter | kg (Enhet, rad 2)"},"un3":{"type":"string","description":"text (UN-nummer, rad 3)"},"name3":{"type":"string","description":"text (Officiell transportbenämning, rad 3)"},"class3":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9 (Klass, rad 3)"},"pg3":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp, rad 3)"},"cat3":{"type":"string","description":"0 | 1 | 2 | 3 | 4 | 1a (Transportkategori, rad 3)"},"qty3":{"type":"number","description":"number (Mängd, rad 3)"},"unit3":{"type":"string","description":"liter | kg (Enhet, rad 3)"},"exemption":{"type":"string","description":"u1136 | full | lq | annat, required (Transporten görs)"},"doc_ref":{"type":"string","description":"text (Transporthandling)"},"doc_ok":{"type":"boolean","description":"boolean (Transporthandlingen följer med och stämmer med lasten)"},"extinguisher":{"type":"boolean","description":"boolean (Brandsläckare enligt 8.1.4 finns och är kontrollerad)"},"instructions":{"type":"boolean","description":"boolean (Skriftliga instruktioner finns i hytten)"},"equipment":{"type":"boolean","description":"boolean (Utrustningen enligt de skriftliga instruktionerna finns)"},"plates":{"type":"boolean","description":"boolean (Orange skyltar är uppsatta)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","shipped_on","un1","exemption"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Sändning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | avgatt | levererad | avbruten, default planerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"shipped_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Avfärd)"},"role":{"type":"string","description":"transportor | avsandare | lastare | mottagare (Er roll i transporten)"},"route":{"type":"string","description":"text (Från och till)"},"consignee":{"type":"string","description":"text (Mottagare)"},"driver":{"type":"string","description":"text (Förare)"},"vehicle":{"type":"string","description":"text (Fordon, registreringsnummer)"},"un1":{"type":"string","description":"text, required (UN-nummer, rad 1)"},"name1":{"type":"string","description":"text (Officiell transportbenämning, rad 1)"},"class1":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9 (Klass, rad 1)"},"pg1":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp, rad 1)"},"cat1":{"type":"string","description":"0 | 1 | 2 | 3 | 4 | 1a (Transportkategori, rad 1)"},"qty1":{"type":"number","description":"number (Mängd, rad 1)"},"unit1":{"type":"string","description":"liter | kg (Enhet, rad 1)"},"un2":{"type":"string","description":"text (UN-nummer, rad 2)"},"name2":{"type":"string","description":"text (Officiell transportbenämning, rad 2)"},"class2":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9 (Klass, rad 2)"},"pg2":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp, rad 2)"},"cat2":{"type":"string","description":"0 | 1 | 2 | 3 | 4 | 1a (Transportkategori, rad 2)"},"qty2":{"type":"number","description":"number (Mängd, rad 2)"},"unit2":{"type":"string","description":"liter | kg (Enhet, rad 2)"},"un3":{"type":"string","description":"text (UN-nummer, rad 3)"},"name3":{"type":"string","description":"text (Officiell transportbenämning, rad 3)"},"class3":{"type":"string","description":"k1 | k2 | k3 | k41 | k42 | k43 | k51 | k52 | k61 | k62 | k7 | k8 | k9 (Klass, rad 3)"},"pg3":{"type":"string","description":"I | II | III | ingen (Förpackningsgrupp, rad 3)"},"cat3":{"type":"string","description":"0 | 1 | 2 | 3 | 4 | 1a (Transportkategori, rad 3)"},"qty3":{"type":"number","description":"number (Mängd, rad 3)"},"unit3":{"type":"string","description":"liter | kg (Enhet, rad 3)"},"exemption":{"type":"string","description":"u1136 | full | lq | annat, required (Transporten görs)"},"doc_ref":{"type":"string","description":"text (Transporthandling)"},"doc_ok":{"type":"boolean","description":"boolean (Transporthandlingen följer med och stämmer med lasten)"},"extinguisher":{"type":"boolean","description":"boolean (Brandsläckare enligt 8.1.4 finns och är kontrollerad)"},"instructions":{"type":"boolean","description":"boolean (Skriftliga instruktioner finns i hytten)"},"equipment":{"type":"boolean","description":"boolean (Utrustningen enligt de skriftliga instruktionerna finns)"},"plates":{"type":"boolean","description":"boolean (Orange skyltar är uppsatta)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","shipped_on","un1","exemption"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/driving_time_infringements":{"get":{"summary":"Infringements of driving and rest time and working time per driver (name or initials), with type, severity, cause, action and follow-up.","operationId":"list_driving_time_infringements","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_driving_time_infringements","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Förare)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ny | atgard | uppfoljd, default ny"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Följs upp senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"occurred_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum för överträdelsen)"},"type":{"type":"string","description":"kortid | rast | dygnsvila | veckovila | veckokortid | tvaveckor | arbetstid | registrering | annat, required (Typ)"},"severity":{"type":"string","description":"msi | vsi | si | mi | ej (Allvarlighet)"},"source":{"type":"string","description":"analys | vagkontroll | foretagsbesok | egen (Upptäckt genom)"},"vehicle":{"type":"string","description":"text (Fordon, registreringsnummer)"},"description":{"type":"string","description":"text (Beskrivning)"},"cause":{"type":"string","description":"text (Orsak)"},"action":{"type":"string","description":"text (Åtgärd)"},"talked_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Genomgånget med föraren)"}},"required":["title","occurred_on","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Förare)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ny | atgard | uppfoljd, default ny"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Följs upp senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"occurred_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum för överträdelsen)"},"type":{"type":"string","description":"kortid | rast | dygnsvila | veckovila | veckokortid | tvaveckor | arbetstid | registrering | annat, required (Typ)"},"severity":{"type":"string","description":"msi | vsi | si | mi | ej (Allvarlighet)"},"source":{"type":"string","description":"analys | vagkontroll | foretagsbesok | egen (Upptäckt genom)"},"vehicle":{"type":"string","description":"text (Fordon, registreringsnummer)"},"description":{"type":"string","description":"text (Beskrivning)"},"cause":{"type":"string","description":"text (Orsak)"},"action":{"type":"string","description":"text (Åtgärd)"},"talked_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Genomgånget med föraren)"}},"required":["title","occurred_on","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tachograph_downloads":{"get":{"summary":"Tachograph data downloads per vehicle unit (every 90 days) and driver card (every 28 days).","operationId":"list_tachograph_downloads","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_tachograph_downloads","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fordon eller förare)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | avslutad, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa nedladdning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"unit":{"type":"string","description":"fordon | kort, required (Enhet)"},"last_download":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Senaste nedladdning)"},"stored":{"type":"string","description":"text (Sparas i)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","unit","last_download"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fordon eller förare)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"aktuell | avslutad, default aktuell"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa nedladdning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"unit":{"type":"string","description":"fordon | kort, required (Enhet)"},"last_download":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Senaste nedladdning)"},"stored":{"type":"string","description":"text (Sparas i)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","unit","last_download"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/vehicles":{"get":{"summary":"Vehicles and trailers with next roadworthiness test, ADR certificate of approval, service and tachograph inspection.","operationId":"list_vehicles","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_vehicles","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Registreringsnummer)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_trafik | avstalld | avford, default i_trafik"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa datum)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"vtype":{"type":"string","description":"lastbil | dragbil | slap | tankbil | skap | truck | annat, required (Typ)"},"model":{"type":"string","description":"text (Märke och modell)"},"inspection_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontrollbesiktning)"},"adr_type":{"type":"string","description":"ingen | fl | at | ex2 | ex3 | memu (Godkännande för farligt gods (9.1.3))"},"adr_valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Godkännandeintyget gäller till)"},"service_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa service)"},"tacho_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll av färdskrivaren)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","vtype"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Registreringsnummer)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_trafik | avstalld | avford, default i_trafik"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa datum)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"vtype":{"type":"string","description":"lastbil | dragbil | slap | tankbil | skap | truck | annat, required (Typ)"},"model":{"type":"string","description":"text (Märke och modell)"},"inspection_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontrollbesiktning)"},"adr_type":{"type":"string","description":"ingen | fl | at | ex2 | ex3 | memu (Godkännande för farligt gods (9.1.3))"},"adr_valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Godkännandeintyget gäller till)"},"service_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa service)"},"tacho_due":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll av färdskrivaren)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","vtype"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/warehouse_equipment":{"get":{"summary":"Forklifts, pallet racking, lifting equipment, loading docks and doors with last and next inspection and the result.","operationId":"list_warehouse_equipment","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_warehouse_equipment","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Utrustning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | avstangd | utrangerad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"etype":{"type":"string","description":"truck | pallstall | lyft | lastkaj | port | annat, required (Typ)"},"location":{"type":"string","description":"text (Plats)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll)"},"next_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"checked_by":{"type":"string","description":"text (Kontrollerad av)"},"result":{"type":"string","description":"ok | anmarkning | fel (Resultat)"},"max_load":{"type":"string","description":"text (Största tillåtna last)"},"remarks":{"type":"string","description":"text (Anmärkningar och åtgärder)"}},"required":["title","etype"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Utrustning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | avstangd | utrangerad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"etype":{"type":"string","description":"truck | pallstall | lyft | lastkaj | port | annat, required (Typ)"},"location":{"type":"string","description":"text (Plats)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll)"},"next_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"checked_by":{"type":"string","description":"text (Kontrollerad av)"},"result":{"type":"string","description":"ok | anmarkning | fel (Resultat)"},"max_load":{"type":"string","description":"text (Största tillåtna last)"},"remarks":{"type":"string","description":"text (Anmärkningar och åtgärder)"}},"required":["title","etype"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/oljeavskiljare":{"get":{"summary":"Journal för oljeavskiljare: typ, egen kontroll av skikt och nivåer, larmtest, tömning, besiktning och provtagning. Lagvera räknar ut nästa datum för varje del och påminner den som är tilldelad. Det är det miljöinspektören brukar be att få se.","operationId":"list_oljeavskiljare","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_oljeavskiljare","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Anläggning eller placering)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_drift | brist | ur_drift, default i_drift"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa åtgärd)"},"type":{"type":"string","description":"klass1 | klass2 | aldre | okand, required (Typ)"},"serves":{"type":"string","description":"text (Vad som är anslutet)"},"volumes":{"type":"string","description":"text (Volym för slam och olja)"},"inspect_interval":{"type":"string","description":"1 | 3 | 6 (Egen kontroll)"},"last_inspection":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste egna kontroll)"},"sludge_pct":{"type":"number","description":"number (Slamnivå vid kontrollen, % av slamvolymen)"},"oil_pct":{"type":"number","description":"number (Oljeskikt vid kontrollen, % av oljevolymen)"},"last_alarm_test":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste larmtest)"},"alarm_ok":{"type":"boolean","description":"boolean (Larmet fungerade vid testet)"},"alarm_interval":{"type":"string","description":"1 | 3 | 6 (Larmtest)"},"inspected_by":{"type":"string","description":"text (Kontrollen gjordes av)"},"empty_interval":{"type":"string","description":"0 | 3 | 6 | 12 | 24 (Tömning)"},"last_emptied":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste tömning)"},"emptied_by":{"type":"string","description":"text (Tömt av)"},"full_emptying":{"type":"boolean","description":"boolean (Heltömning)"},"empty_doc":{"type":"string","description":"text (Tömningsintyg eller transportdokument)"},"last_survey":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste besiktning av externt företag)"},"surveyed_by":{"type":"string","description":"text (Besiktat av)"},"sample_interval":{"type":"string","description":"0 | 6 | 12 | 24 | 36 (Provtagning)"},"last_sample":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste provtagning)"},"sample_type":{"type":"string","description":"samlingsprov | stickprov (Typ av prov)"},"sample_result":{"type":"string","description":"text (Provsvar)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Anläggning eller placering)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_drift | brist | ur_drift, default i_drift"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa åtgärd)"},"type":{"type":"string","description":"klass1 | klass2 | aldre | okand, required (Typ)"},"serves":{"type":"string","description":"text (Vad som är anslutet)"},"volumes":{"type":"string","description":"text (Volym för slam och olja)"},"inspect_interval":{"type":"string","description":"1 | 3 | 6 (Egen kontroll)"},"last_inspection":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste egna kontroll)"},"sludge_pct":{"type":"number","description":"number (Slamnivå vid kontrollen, % av slamvolymen)"},"oil_pct":{"type":"number","description":"number (Oljeskikt vid kontrollen, % av oljevolymen)"},"last_alarm_test":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste larmtest)"},"alarm_ok":{"type":"boolean","description":"boolean (Larmet fungerade vid testet)"},"alarm_interval":{"type":"string","description":"1 | 3 | 6 (Larmtest)"},"inspected_by":{"type":"string","description":"text (Kontrollen gjordes av)"},"empty_interval":{"type":"string","description":"0 | 3 | 6 | 12 | 24 (Tömning)"},"last_emptied":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste tömning)"},"emptied_by":{"type":"string","description":"text (Tömt av)"},"full_emptying":{"type":"boolean","description":"boolean (Heltömning)"},"empty_doc":{"type":"string","description":"text (Tömningsintyg eller transportdokument)"},"last_survey":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste besiktning av externt företag)"},"surveyed_by":{"type":"string","description":"text (Besiktat av)"},"sample_interval":{"type":"string","description":"0 | 6 | 12 | 24 | 36 (Provtagning)"},"last_sample":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste provtagning)"},"sample_type":{"type":"string","description":"samlingsprov | stickprov (Typ av prov)"},"sample_result":{"type":"string","description":"text (Provsvar)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/farligt_avfall":{"get":{"summary":"En anteckning varje gång farligt avfall hämtas från verkstaden: avfallskod, vikt, transportör, mottagare och transportdokument. Uppgifterna ska lämnas till Naturvårdsverkets avfallsregister senast två arbetsdagar efter hämtningen, och posten visar sista dagen och påminner den som är tilldelad. Anteckningarna sparas i minst tre år. Annat avfall skrivs i Avfallsjournalen.","operationId":"list_farligt_avfall","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_farligt_avfall","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Avfallsslag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_rapporterad | rattas | rapporterad, default ej_rapporterad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporteras senast)"},"waste_code":{"type":"string","description":"text, required (Avfallskod)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Hämtades)"},"amount_kg":{"type":"number","description":"number, required (Vikt, kg)"},"origin":{"type":"string","description":"text (Plats där avfallet uppkom)"},"transporter":{"type":"string","description":"text (Transportör)"},"transporter_org":{"type":"string","description":"text (Transportörens organisationsnummer)"},"transport_mode":{"type":"string","description":"vag | jarnvag | sjo | annat (Transportsätt)"},"receiver":{"type":"string","description":"text (Mottagare)"},"receiver_org":{"type":"string","description":"text (Mottagarens organisationsnummer)"},"receiver_place":{"type":"string","description":"text (Mottagarens anläggning)"},"treatment":{"type":"string","description":"text (Behandling)"},"doc_ref":{"type":"string","description":"text (Transportdokument)"},"reported_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporterad till avfallsregistret)"},"reported_by":{"type":"string","description":"verkstaden | ombud (Rapporterad av)"},"agent":{"type":"string","description":"text (Ombud)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","waste_code","date","amount_kg"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Avfallsslag)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ej_rapporterad | rattas | rapporterad, default ej_rapporterad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporteras senast)"},"waste_code":{"type":"string","description":"text, required (Avfallskod)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Hämtades)"},"amount_kg":{"type":"number","description":"number, required (Vikt, kg)"},"origin":{"type":"string","description":"text (Plats där avfallet uppkom)"},"transporter":{"type":"string","description":"text (Transportör)"},"transporter_org":{"type":"string","description":"text (Transportörens organisationsnummer)"},"transport_mode":{"type":"string","description":"vag | jarnvag | sjo | annat (Transportsätt)"},"receiver":{"type":"string","description":"text (Mottagare)"},"receiver_org":{"type":"string","description":"text (Mottagarens organisationsnummer)"},"receiver_place":{"type":"string","description":"text (Mottagarens anläggning)"},"treatment":{"type":"string","description":"text (Behandling)"},"doc_ref":{"type":"string","description":"text (Transportdokument)"},"reported_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporterad till avfallsregistret)"},"reported_by":{"type":"string","description":"verkstaden | ombud (Rapporterad av)"},"agent":{"type":"string","description":"text (Ombud)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","waste_code","date","amount_kg"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/fgas_logg":{"get":{"summary":"Läckagekontroller, påfyllningar, tömningar och reparationer av aggregaten i Köldmedier, och köldmedium som tappas av och fylls på vid AC-arbete på kundbilar. Skriv aggregatets namn som det står i Köldmedier, så kommer händelsen med i aggregatets journal och i årsrapporten. Journalen ska sparas i minst fem år.","operationId":"list_fgas_logg","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_fgas_logg","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Aggregat eller arbete)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"registrerad | lackage | uppfoljd, default registrerad"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Uppföljande kontroll senast)"},"event":{"type":"string","description":"lackagekontroll | pafyllning | tomning | reparation | installation | avveckling | ac_kundbil, required (Händelse)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"refrigerant":{"type":"string","description":"text (Köldmedium)"},"added_kg":{"type":"number","description":"number (Påfyllt, kg)"},"recovered_kg":{"type":"number","description":"number (Tömt eller återvunnet, kg)"},"result":{"type":"string","description":"tat | lackage (Resultat av kontrollen)"},"leak_where":{"type":"string","description":"text (Var läckaget fanns och vad som gjordes)"},"technician":{"type":"string","description":"text (Tekniker)"},"technician_cert":{"type":"string","description":"text (Personcertifikat eller utbildningsintyg)"},"company":{"type":"string","description":"text (Företag som utförde arbetet)"},"company_cert":{"type":"string","description":"text (Företagscertifikat)"},"recovered_to":{"type":"string","description":"text (Återvunnet köldmedium lämnat till)"},"work_order":{"type":"string","description":"text (Arbetsorder)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","event","date"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Aggregat eller arbete)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"registrerad | lackage | uppfoljd, default registrerad"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Uppföljande kontroll senast)"},"event":{"type":"string","description":"lackagekontroll | pafyllning | tomning | reparation | installation | avveckling | ac_kundbil, required (Händelse)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"refrigerant":{"type":"string","description":"text (Köldmedium)"},"added_kg":{"type":"number","description":"number (Påfyllt, kg)"},"recovered_kg":{"type":"number","description":"number (Tömt eller återvunnet, kg)"},"result":{"type":"string","description":"tat | lackage (Resultat av kontrollen)"},"leak_where":{"type":"string","description":"text (Var läckaget fanns och vad som gjordes)"},"technician":{"type":"string","description":"text (Tekniker)"},"technician_cert":{"type":"string","description":"text (Personcertifikat eller utbildningsintyg)"},"company":{"type":"string","description":"text (Företag som utförde arbetet)"},"company_cert":{"type":"string","description":"text (Företagscertifikat)"},"recovered_to":{"type":"string","description":"text (Återvunnet köldmedium lämnat till)"},"work_order":{"type":"string","description":"text (Arbetsorder)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","event","date"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/kontrollobjekt":{"get":{"summary":"Billyftar, traverser, tryckkärl och annan utrustning som ska besiktas eller kontrolleras av ett ackrediterat organ. Skriv in kontrollklass eller intervall från protokollet, så syns det när nästa kontroll närmar sig.","operationId":"list_kontrollobjekt","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_kontrollobjekt","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Objekt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"godkand | anmarkning | underkand | ur_bruk, default godkand"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"type":{"type":"string","description":"billyft | travers | tryckkarl | kompressor | annat, required (Typ)"},"location":{"type":"string","description":"text (Placering)"},"serial":{"type":"string","description":"text (Tillverkare och tillverkningsnummer)"},"control_class":{"type":"string","description":"text (Kontrollklass eller intervall)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll)"},"inspector":{"type":"string","description":"text (Kontrollorgan)"},"remarks":{"type":"string","description":"text (Anmärkningar)"}},"required":["title","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Objekt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"godkand | anmarkning | underkand | ur_bruk, default godkand"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"type":{"type":"string","description":"billyft | travers | tryckkarl | kompressor | annat, required (Typ)"},"location":{"type":"string","description":"text (Placering)"},"serial":{"type":"string","description":"text (Tillverkare och tillverkningsnummer)"},"control_class":{"type":"string","description":"text (Kontrollklass eller intervall)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste kontroll)"},"inspector":{"type":"string","description":"text (Kontrollorgan)"},"remarks":{"type":"string","description":"text (Anmärkningar)"}},"required":["title","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/maskin":{"get":{"summary":"Maskinerna i verksamheten: tillverkare och år, CE-märkning, när riskbedömningen gjordes och vad som har ändrats sedan dess. En maskin som byggs om eller får nya funktioner ska riskbedömas igen.","operationId":"list_maskin","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_maskin","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Maskin)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | ses_over | ur_bruk, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"inventory_no":{"type":"string","description":"text (Maskinnummer eller inventarienummer)"},"location":{"type":"string","description":"text (Placering)"},"manufacturer":{"type":"string","description":"text (Tillverkare)"},"model":{"type":"string","description":"text (Modell eller typ)"},"year":{"type":"number","description":"number (Tillverkningsår)"},"ce":{"type":"string","description":"ja | nej | ombyggd, required (CE-märkt)"},"risk_assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Riskbedömning gjord)"},"changes":{"type":"string","description":"text (Ändring sedan senaste riskbedömningen)"},"external_id":{"type":"string","description":"text (Id i underhållssystemet)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","ce"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Maskin)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | ses_over | ur_bruk, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa genomgång)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"inventory_no":{"type":"string","description":"text (Maskinnummer eller inventarienummer)"},"location":{"type":"string","description":"text (Placering)"},"manufacturer":{"type":"string","description":"text (Tillverkare)"},"model":{"type":"string","description":"text (Modell eller typ)"},"year":{"type":"number","description":"number (Tillverkningsår)"},"ce":{"type":"string","description":"ja | nej | ombyggd, required (CE-märkt)"},"risk_assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Riskbedömning gjord)"},"changes":{"type":"string","description":"text (Ändring sedan senaste riskbedömningen)"},"external_id":{"type":"string","description":"text (Id i underhållssystemet)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","ce"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/maskinrisk":{"get":{"summary":"En riskbedömning per maskin och tillfälle: ny maskin, ombyggnad, flytt eller sammankoppling till en linje. Bedömningen tar upp farorna, sannolikhet och konsekvens, åtgärderna och om ändringen är så stor att maskinen ska CE-märkas igen. Maskinen anges med samma namn som i Maskiner och CE, så syns bedömningen på maskinen.","operationId":"list_maskinrisk","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_maskinrisk","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad bedöms?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | atgarder | klar, default pagar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärderna klara senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"machine":{"type":"string","description":"text, required (Maskin)"},"occasion":{"type":"string","description":"ny | andring | flytt | linje | tillbud | periodisk, required (Varför görs bedömningen?)"},"assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Bedömd)"},"assessed_by":{"type":"string","description":"text (Bedömd av)"},"h_mech":{"type":"boolean","description":"boolean (Klämning, skärning eller intrassling)"},"h_el":{"type":"boolean","description":"boolean (El och styrsystem)"},"h_noise":{"type":"boolean","description":"boolean (Buller eller vibrationer)"},"h_chem":{"type":"boolean","description":"boolean (Kemikalier, rök eller damm)"},"h_ergo":{"type":"boolean","description":"boolean (Belastning och arbetsställning)"},"h_energy":{"type":"boolean","description":"boolean (Lagrad energi, tryck eller värme)"},"hazards":{"type":"string","description":"text (Faror och var de finns)"},"likelihood":{"type":"string","description":"1 | 2 | 3, required (Sannolikhet)"},"consequence":{"type":"string","description":"1 | 2 | 3, required (Konsekvens)"},"measures":{"type":"string","description":"text (Åtgärder)"},"substantial":{"type":"string","description":"nej | oklart | ja | ej_aktuellt (Väsentlig ändring enligt maskinförordningen?)"},"instructions_ok":{"type":"boolean","description":"boolean (Bruksanvisning och instruktion på svenska finns)"},"lockout_ok":{"type":"boolean","description":"boolean (Rutin för låsning och märkning vid service finns)"},"residual":{"type":"string","description":"text (Kvarvarande risk)"}},"required":["title","machine","occasion","assessed_on","likelihood","consequence"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Vad bedöms?)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | atgarder | klar, default pagar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Åtgärderna klara senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"machine":{"type":"string","description":"text, required (Maskin)"},"occasion":{"type":"string","description":"ny | andring | flytt | linje | tillbud | periodisk, required (Varför görs bedömningen?)"},"assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Bedömd)"},"assessed_by":{"type":"string","description":"text (Bedömd av)"},"h_mech":{"type":"boolean","description":"boolean (Klämning, skärning eller intrassling)"},"h_el":{"type":"boolean","description":"boolean (El och styrsystem)"},"h_noise":{"type":"boolean","description":"boolean (Buller eller vibrationer)"},"h_chem":{"type":"boolean","description":"boolean (Kemikalier, rök eller damm)"},"h_ergo":{"type":"boolean","description":"boolean (Belastning och arbetsställning)"},"h_energy":{"type":"boolean","description":"boolean (Lagrad energi, tryck eller värme)"},"hazards":{"type":"string","description":"text (Faror och var de finns)"},"likelihood":{"type":"string","description":"1 | 2 | 3, required (Sannolikhet)"},"consequence":{"type":"string","description":"1 | 2 | 3, required (Konsekvens)"},"measures":{"type":"string","description":"text (Åtgärder)"},"substantial":{"type":"string","description":"nej | oklart | ja | ej_aktuellt (Väsentlig ändring enligt maskinförordningen?)"},"instructions_ok":{"type":"boolean","description":"boolean (Bruksanvisning och instruktion på svenska finns)"},"lockout_ok":{"type":"boolean","description":"boolean (Rutin för låsning och märkning vid service finns)"},"residual":{"type":"string","description":"text (Kvarvarande risk)"}},"required":["title","machine","occasion","assessed_on","likelihood","consequence"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/kemexponering":{"get":{"summary":"Exponeringen för kemiska risker per arbetsmoment, enligt AFS 2023:10 kapitel 7: vilka produkter som används, hur och hur länge, jämfört med gränsvärdena i AFS 2023:14, och om arbetet kräver särskild utbildning eller medicinska kontroller. Produkterna anges med samma namn som i Kemikalieförteckningen, och mätningarna läggs i Mätningar.","operationId":"list_kemexponering","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_kemexponering","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Arbetsmoment)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | atgarder | klar, default pagar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa bedömning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"products":{"type":"string","description":"text, required (Produkter)"},"substances":{"type":"string","description":"text (Ämnen med gränsvärde)"},"route":{"type":"string","description":"inandning | hud | bada | ogon, required (Exponeringsväg)"},"duration":{"type":"string","description":"kort | del | halv | hel (Hur länge per dag)"},"people":{"type":"number","description":"number (Antal som exponeras)"},"limit_state":{"type":"string","description":"under | nara | over | ej_matt | saknas (Jämfört med gränsvärdet)"},"measurement":{"type":"string","description":"text (Mätning)"},"level":{"type":"string","description":"1 | 2 | 3, required (Risknivå)"},"measures":{"type":"string","description":"text (Åtgärder)"},"special_training":{"type":"boolean","description":"boolean (Kräver särskild utbildning (allergiframkallande ämnen, AFS 2023:10 8 kap. 7 §))"},"medical":{"type":"boolean","description":"boolean (Kräver medicinska kontroller (AFS 2023:15))"},"assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Bedömd)"}},"required":["title","products","route","level"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Arbetsmoment)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | atgarder | klar, default pagar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa bedömning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"products":{"type":"string","description":"text, required (Produkter)"},"substances":{"type":"string","description":"text (Ämnen med gränsvärde)"},"route":{"type":"string","description":"inandning | hud | bada | ogon, required (Exponeringsväg)"},"duration":{"type":"string","description":"kort | del | halv | hel (Hur länge per dag)"},"people":{"type":"number","description":"number (Antal som exponeras)"},"limit_state":{"type":"string","description":"under | nara | over | ej_matt | saknas (Jämfört med gränsvärdet)"},"measurement":{"type":"string","description":"text (Mätning)"},"level":{"type":"string","description":"1 | 2 | 3, required (Risknivå)"},"measures":{"type":"string","description":"text (Åtgärder)"},"special_training":{"type":"boolean","description":"boolean (Kräver särskild utbildning (allergiframkallande ämnen, AFS 2023:10 8 kap. 7 §))"},"medical":{"type":"boolean","description":"boolean (Kräver medicinska kontroller (AFS 2023:15))"},"assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Bedömd)"}},"required":["title","products","route","level"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/forbrukning":{"get":{"summary":"Yearly use of inks, plastisol, solvents and cleaning agents with VOC content, stock and recovered solvent. The solvent balance is calculated from these rows.","operationId":"list_forbrukning","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_forbrukning","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Produkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"preliminar | avstamd, default preliminar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"year":{"type":"number","description":"number, required (År)"},"type":{"type":"string","description":"losningsmedelsbaserad | vattenbaserad | plastisol | annan, required (Typ)"},"process":{"type":"string","description":"screentryck | rotationsscreen_textil | rotationsscreen | heatset | arkoffset | flexografi | djuptryck_publikation | djuptryck | lackering | digitaltryck | transfer | rengoring | ytrengoring | annat (Används till)"},"amount":{"type":"number","description":"number, required (Inköpt mängd under året)"},"unit":{"type":"string","description":"kg | liter, required (Enhet)"},"stock_start":{"type":"number","description":"number (Lager vid årets början)"},"stock_end":{"type":"number","description":"number (Lager vid årets slut)"},"voc_pct":{"type":"number","description":"number (VOC-halt, %)"},"density":{"type":"number","description":"number (Densitet, kg per liter)"},"recovered_kg":{"type":"number","description":"number (Återvunnet för återanvändning, kg lösningsmedel)"},"waste_kg":{"type":"number","description":"number (Lösningsmedel i avfall, kg)"},"halogenated":{"type":"boolean","description":"boolean (Innehåller halogenerade lösningsmedel)"},"cmr":{"type":"boolean","description":"boolean (Innehåller ämnen som kan orsaka cancer, genetiska skador eller skada fortplantningen)"},"supplier":{"type":"string","description":"text (Leverantör)"},"article":{"type":"string","description":"text (Artikelnummer)"},"source":{"type":"string","description":"text (Underlag för mängden)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","year","type","amount","unit"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Produkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"preliminar | avstamd, default preliminar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"year":{"type":"number","description":"number, required (År)"},"type":{"type":"string","description":"losningsmedelsbaserad | vattenbaserad | plastisol | annan, required (Typ)"},"process":{"type":"string","description":"screentryck | rotationsscreen_textil | rotationsscreen | heatset | arkoffset | flexografi | djuptryck_publikation | djuptryck | lackering | digitaltryck | transfer | rengoring | ytrengoring | annat (Används till)"},"amount":{"type":"number","description":"number, required (Inköpt mängd under året)"},"unit":{"type":"string","description":"kg | liter, required (Enhet)"},"stock_start":{"type":"number","description":"number (Lager vid årets början)"},"stock_end":{"type":"number","description":"number (Lager vid årets slut)"},"voc_pct":{"type":"number","description":"number (VOC-halt, %)"},"density":{"type":"number","description":"number (Densitet, kg per liter)"},"recovered_kg":{"type":"number","description":"number (Återvunnet för återanvändning, kg lösningsmedel)"},"waste_kg":{"type":"number","description":"number (Lösningsmedel i avfall, kg)"},"halogenated":{"type":"boolean","description":"boolean (Innehåller halogenerade lösningsmedel)"},"cmr":{"type":"boolean","description":"boolean (Innehåller ämnen som kan orsaka cancer, genetiska skador eller skada fortplantningen)"},"supplier":{"type":"string","description":"text (Leverantör)"},"article":{"type":"string","description":"text (Artikelnummer)"},"source":{"type":"string","description":"text (Underlag för mängden)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","year","type","amount","unit"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/print_hazardous_waste":{"get":{"summary":"Hazardous waste from printing: ink residues, wash water, rags. Waste code, amount, solvent share, transporter, transport document and reporting to the waste register.","operationId":"list_print_hazardous_waste","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_print_hazardous_waste","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Avfall)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"lagras | hamtat | rapporterat, default lagras"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"waste_type":{"type":"string","description":"fargrester | plastisol | losningsmedel | tvattvatten | trasor | forpackningar | lack | filter | annat, required (Avfallsslag)"},"waste_code":{"type":"string","description":"text (Avfallskod)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Hämtdatum)"},"amount":{"type":"number","description":"number, required (Mängd)"},"unit":{"type":"string","description":"kg | liter | ton, required (Enhet)"},"solvent_pct":{"type":"number","description":"number (Andel lösningsmedel, %)"},"density":{"type":"number","description":"number (Densitet, kg per liter)"},"origin":{"type":"string","description":"text (Var avfallet uppstod)"},"transporter":{"type":"string","description":"text (Transportör)"},"transporter_org":{"type":"string","description":"text (Transportörens organisationsnummer)"},"transporter_permit":{"type":"string","description":"text (Transportörens tillstånd eller anmälan)"},"receiver":{"type":"string","description":"text (Mottagare)"},"receiver_org":{"type":"string","description":"text (Mottagarens organisationsnummer)"},"doc_no":{"type":"string","description":"text (Transportdokumentets nummer)"},"noted":{"type":"boolean","description":"boolean (Antecknat innan avfallet hämtades)"},"reported_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporterat till avfallsregistret)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","waste_type","date","amount","unit"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Avfall)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"lagras | hamtat | rapporterat, default lagras"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"waste_type":{"type":"string","description":"fargrester | plastisol | losningsmedel | tvattvatten | trasor | forpackningar | lack | filter | annat, required (Avfallsslag)"},"waste_code":{"type":"string","description":"text (Avfallskod)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Hämtdatum)"},"amount":{"type":"number","description":"number, required (Mängd)"},"unit":{"type":"string","description":"kg | liter | ton, required (Enhet)"},"solvent_pct":{"type":"number","description":"number (Andel lösningsmedel, %)"},"density":{"type":"number","description":"number (Densitet, kg per liter)"},"origin":{"type":"string","description":"text (Var avfallet uppstod)"},"transporter":{"type":"string","description":"text (Transportör)"},"transporter_org":{"type":"string","description":"text (Transportörens organisationsnummer)"},"transporter_permit":{"type":"string","description":"text (Transportörens tillstånd eller anmälan)"},"receiver":{"type":"string","description":"text (Mottagare)"},"receiver_org":{"type":"string","description":"text (Mottagarens organisationsnummer)"},"doc_no":{"type":"string","description":"text (Transportdokumentets nummer)"},"noted":{"type":"boolean","description":"boolean (Antecknat innan avfallet hämtades)"},"reported_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporterat till avfallsregistret)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","waste_type","date","amount","unit"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/sterilisator":{"get":{"summary":"En rad per körning eller test i autoklaven eller torrsterilisatorn: program, temperatur, om indikatorn godkändes och vilken batch det gällde. En körning som underkänns blir en avvikelse direkt. Ett godkänt sporprov flyttar fram nästa sporprov för apparaten med samma namn under Autoklaver och sterilisatorer.","operationId":"list_sterilisator","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_sterilisator","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Apparat)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ok | underkand, default ok"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"program":{"type":"string","description":"text (Program)"},"temperature":{"type":"number","description":"number (Temperatur, °C)"},"indicator_type":{"type":"string","description":"kemisk | sporprov | processtest (Indikator eller test)"},"indicator_ok":{"type":"string","description":"ja | nej, required (Indikatorn godkänd)"},"batch":{"type":"string","description":"text (Batch eller lot)"},"signature":{"type":"string","description":"text (Signatur)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","date","indicator_ok"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Apparat)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ok | underkand, default ok"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"program":{"type":"string","description":"text (Program)"},"temperature":{"type":"number","description":"number (Temperatur, °C)"},"indicator_type":{"type":"string","description":"kemisk | sporprov | processtest (Indikator eller test)"},"indicator_ok":{"type":"string","description":"ja | nej, required (Indikatorn godkänd)"},"batch":{"type":"string","description":"text (Batch eller lot)"},"signature":{"type":"string","description":"text (Signatur)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","date","indicator_ok"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/autoklav":{"get":{"summary":"Varje autoklav eller torrsterilisator med hur ofta den ska kontrolleras med sporprov och få service enligt tillverkarens anvisning. Nästa kontroll räknas ut och kommer som påminnelse. Godkända sporprov i steriliseringsloggen förs in här automatiskt.","operationId":"list_autoklav","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_autoklav","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Apparat)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | ur_bruk, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"type":{"type":"string","description":"autoklav_b | autoklav_s | torr | annan (Typ)"},"model":{"type":"string","description":"text (Fabrikat och modell)"},"serial":{"type":"string","description":"text (Serienummer)"},"spore_months":{"type":"number","description":"number (Sporprov, månader mellan)"},"last_spore":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste godkända sporprov)"},"service_months":{"type":"number","description":"number (Service, månader mellan)"},"last_service":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste service eller validering)"},"service_by":{"type":"string","description":"text (Serviceföretag)"},"manual":{"type":"string","description":"text (Var finns tillverkarens anvisning?)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Apparat)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | ur_bruk, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"type":{"type":"string","description":"autoklav_b | autoklav_s | torr | annan (Typ)"},"model":{"type":"string","description":"text (Fabrikat och modell)"},"serial":{"type":"string","description":"text (Serienummer)"},"spore_months":{"type":"number","description":"number (Sporprov, månader mellan)"},"last_spore":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste godkända sporprov)"},"service_months":{"type":"number","description":"number (Service, månader mellan)"},"last_service":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste service eller validering)"},"service_by":{"type":"string","description":"text (Serviceföretag)"},"manual":{"type":"string","description":"text (Var finns tillverkarens anvisning?)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/behandling":{"get":{"summary":"Egenkontroll per behandling ni erbjuder: om den är anmäld till kommunen, riskbedömningen för blodsmitta, kemikalier och allergi, var den skrivna rutinen finns och när den ska ses över nästa gång. Behandlingar med stickande eller skärande verktyg ska vara anmälda innan ni börjar. Uppgifter om enskilda kunder skrivs inte här.","operationId":"list_behandling","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_behandling","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Behandling)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"erbjuds | ses_over | upphort, default erbjuds"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa granskning)"},"type":{"type":"string","description":"tatuering | permanentfarg | piercing | microneedling | akupunktur | rakning | fotvard | nagel | harfargning | permanent | hudvard | fransar | vaxning | laser | annat, required (Typ av behandling)"},"notified":{"type":"string","description":"ja | nej | behovs_inte, required (Anmäld till kommunen)"},"notified_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Anmäld datum)"},"risk_blood":{"type":"boolean","description":"boolean (Risk för blodsmitta)"},"risk_blood_how":{"type":"string","description":"text (Så hanteras risken för blodsmitta)"},"risk_chemical":{"type":"boolean","description":"boolean (Kemisk risk)"},"risk_chemical_how":{"type":"string","description":"text (Så hanteras den kemiska risken)"},"risk_allergy":{"type":"boolean","description":"boolean (Risk för allergi)"},"risk_allergy_how":{"type":"string","description":"text (Så hanteras risken för allergi)"},"declaration":{"type":"string","description":"ja | nej | behovs_inte (Deklaration och samtycke före behandling)"},"info_written":{"type":"string","description":"ja | nej (Skriftlig information om risker och eftervård)"},"routine":{"type":"string","description":"ja | nej, required (Skriven rutin finns)"},"routine_where":{"type":"string","description":"text (Var finns rutinen?)"},"reviewed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast granskad)"},"review_months":{"type":"number","description":"number (Granskas var)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","type","notified","routine"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Behandling)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"erbjuds | ses_over | upphort, default erbjuds"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa granskning)"},"type":{"type":"string","description":"tatuering | permanentfarg | piercing | microneedling | akupunktur | rakning | fotvard | nagel | harfargning | permanent | hudvard | fransar | vaxning | laser | annat, required (Typ av behandling)"},"notified":{"type":"string","description":"ja | nej | behovs_inte, required (Anmäld till kommunen)"},"notified_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Anmäld datum)"},"risk_blood":{"type":"boolean","description":"boolean (Risk för blodsmitta)"},"risk_blood_how":{"type":"string","description":"text (Så hanteras risken för blodsmitta)"},"risk_chemical":{"type":"boolean","description":"boolean (Kemisk risk)"},"risk_chemical_how":{"type":"string","description":"text (Så hanteras den kemiska risken)"},"risk_allergy":{"type":"boolean","description":"boolean (Risk för allergi)"},"risk_allergy_how":{"type":"string","description":"text (Så hanteras risken för allergi)"},"declaration":{"type":"string","description":"ja | nej | behovs_inte (Deklaration och samtycke före behandling)"},"info_written":{"type":"string","description":"ja | nej (Skriftlig information om risker och eftervård)"},"routine":{"type":"string","description":"ja | nej, required (Skriven rutin finns)"},"routine_where":{"type":"string","description":"text (Var finns rutinen?)"},"reviewed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast granskad)"},"review_months":{"type":"number","description":"number (Granskas var)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","type","notified","routine"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/godsel":{"get":{"summary":"Planerade och spridda gödselgivor per skifte och år, med kväve och fosfor per hektar. Registret är underlag för växtodlingsplanen och gödselplanen och visar hur ni har räknat om kontrollen frågar.","operationId":"list_godsel","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_godsel","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fält eller skifte)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | spridd, default planerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Planerad spridning)"},"year":{"type":"number","description":"number, required (År)"},"crop":{"type":"string","description":"text, required (Gröda)"},"area_ha":{"type":"number","description":"number (Areal, hektar)"},"type":{"type":"string","description":"stallgodsel | mineralgodsel | rotrest, required (Gödselslag)"},"product":{"type":"string","description":"text (Produkt eller djurslag)"},"amount":{"type":"number","description":"number (Mängd)"},"unit":{"type":"string","description":"ton | m3 | kg (Enhet)"},"n_kg_ha":{"type":"number","description":"number (Kväve, kg per hektar)"},"p_kg_ha":{"type":"number","description":"number (Fosfor, kg per hektar)"},"n_need_kg_ha":{"type":"number","description":"number (Kvävebehov, kg per hektar)"},"transfer":{"type":"string","description":"egen | mottagen | bortford (Egen, mottagen eller bortförd)"},"counterpart":{"type":"string","description":"text (Leverantör eller mottagare)"},"spread_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Spridningsdatum)"},"method":{"type":"string","description":"slang | myllning | bredspridning | centrifug | annat (Spridningsmetod)"},"incorporated":{"type":"string","description":"text (Nedbrukning)"},"storage_ok":{"type":"string","description":"ja | nej (Lagringskapaciteten räcker)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","year","crop","type"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fält eller skifte)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerad | spridd, default planerad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Planerad spridning)"},"year":{"type":"number","description":"number, required (År)"},"crop":{"type":"string","description":"text, required (Gröda)"},"area_ha":{"type":"number","description":"number (Areal, hektar)"},"type":{"type":"string","description":"stallgodsel | mineralgodsel | rotrest, required (Gödselslag)"},"product":{"type":"string","description":"text (Produkt eller djurslag)"},"amount":{"type":"number","description":"number (Mängd)"},"unit":{"type":"string","description":"ton | m3 | kg (Enhet)"},"n_kg_ha":{"type":"number","description":"number (Kväve, kg per hektar)"},"p_kg_ha":{"type":"number","description":"number (Fosfor, kg per hektar)"},"n_need_kg_ha":{"type":"number","description":"number (Kvävebehov, kg per hektar)"},"transfer":{"type":"string","description":"egen | mottagen | bortford (Egen, mottagen eller bortförd)"},"counterpart":{"type":"string","description":"text (Leverantör eller mottagare)"},"spread_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Spridningsdatum)"},"method":{"type":"string","description":"slang | myllning | bredspridning | centrifug | annat (Spridningsmetod)"},"incorporated":{"type":"string","description":"text (Nedbrukning)"},"storage_ok":{"type":"string","description":"ja | nej (Lagringskapaciteten räcker)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","year","crop","type"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/godsellager":{"get":{"summary":"Gårdens gödsellager med volym, gödselproduktion per månad och hur många månader lagret rymmer, jämfört med kravet för gårdens djur och område. Underlaget för beräkningen sparas här och följer med till gödselplanen.","operationId":"list_godsellager","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_godsellager","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Lager)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | ur_bruk, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"manure_type":{"type":"string","description":"flyt | urin | fast | djupstro, required (Gödselslag)"},"animal_group":{"type":"string","description":"not_hast_far_get | ovriga, required (Djurslag)"},"de":{"type":"number","description":"number (Djurenheter på gården)"},"zone":{"type":"string","description":"ovrigt | kanslig_1 | kanslig_2 (Var gården ligger)"},"volume_m3":{"type":"number","description":"number (Lagringsvolym, m³)"},"production_m3_month":{"type":"number","description":"number (Gödselproduktion per månad, m³)"},"months_other":{"type":"number","description":"number (Månader som lagras på annat sätt)"},"cover":{"type":"string","description":"tak | svamtacke | annat | ingen (Täckning av lagret)"},"calc_doc":{"type":"boolean","description":"boolean (Beräkningen av lagringsbehovet är dokumenterad)"},"exemption":{"type":"boolean","description":"boolean (Undantag från länsstyrelsen)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast kontrollerad)"},"next_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","manure_type","animal_group"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Lager)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | ur_bruk, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"manure_type":{"type":"string","description":"flyt | urin | fast | djupstro, required (Gödselslag)"},"animal_group":{"type":"string","description":"not_hast_far_get | ovriga, required (Djurslag)"},"de":{"type":"number","description":"number (Djurenheter på gården)"},"zone":{"type":"string","description":"ovrigt | kanslig_1 | kanslig_2 (Var gården ligger)"},"volume_m3":{"type":"number","description":"number (Lagringsvolym, m³)"},"production_m3_month":{"type":"number","description":"number (Gödselproduktion per månad, m³)"},"months_other":{"type":"number","description":"number (Månader som lagras på annat sätt)"},"cover":{"type":"string","description":"tak | svamtacke | annat | ingen (Täckning av lagret)"},"calc_doc":{"type":"boolean","description":"boolean (Beräkningen av lagringsbehovet är dokumenterad)"},"exemption":{"type":"boolean","description":"boolean (Undantag från länsstyrelsen)"},"last_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast kontrollerad)"},"next_check":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa kontroll)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","manure_type","animal_group"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/vaxtskydd":{"get":{"summary":"Varje behandling med växtskyddsmedel: var, vad, hur mycket och under vilka förhållanden, med spridarens behörighet och sprutans funktionstest. Journalen sparas i tre år och ska föras digitalt från 1 januari 2027.","operationId":"list_vaxtskydd","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_vaxtskydd","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fält eller skifte)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"time":{"type":"string","description":"text (Klockslag)"},"crop":{"type":"string","description":"text, required (Gröda)"},"bbch":{"type":"string","description":"text (Utvecklingsstadium (BBCH))"},"purpose":{"type":"string","description":"text (Syfte)"},"product":{"type":"string","description":"text, required (Preparat)"},"reg_no":{"type":"string","description":"text, required (Registreringsnummer)"},"dose":{"type":"number","description":"number, required (Dos)"},"dose_unit":{"type":"string","description":"l_ha | kg_ha | g_ha | ml_ha, required (Enhet för dos)"},"treated_ha":{"type":"number","description":"number (Behandlad areal, hektar)"},"operator":{"type":"string","description":"text (Sprutförare)"},"license_class":{"type":"string","description":"text (Behörighet)"},"license_valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Behörigheten gäller till)"},"temp_c":{"type":"number","description":"number (Temperatur, °C)"},"wind_ms":{"type":"number","description":"number (Vind, m/s)"},"wind_dir":{"type":"string","description":"text (Vindriktning)"},"weather":{"type":"string","description":"text (Väder)"},"buffer_m":{"type":"number","description":"number (Skyddsavstånd, meter)"},"buffer_note":{"type":"string","description":"text (Hur skyddsavståndet bestämdes)"},"flowering":{"type":"boolean","description":"boolean (Blommande vegetation i fältet)"},"sprayer":{"type":"string","description":"text (Spruta)"},"sprayer_test":{"type":"string","format":"date","description":"date YYYY-MM-DD (Sprutans senaste funktionstest)"},"sprayer_bought":{"type":"string","format":"date","description":"date YYYY-MM-DD (Ny spruta köpt)"},"harvest_interval":{"type":"string","description":"text (Karenstid)"},"harvest_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Skördedatum)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","date","crop","product","reg_no","dose","dose_unit"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Fält eller skifte)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"time":{"type":"string","description":"text (Klockslag)"},"crop":{"type":"string","description":"text, required (Gröda)"},"bbch":{"type":"string","description":"text (Utvecklingsstadium (BBCH))"},"purpose":{"type":"string","description":"text (Syfte)"},"product":{"type":"string","description":"text, required (Preparat)"},"reg_no":{"type":"string","description":"text, required (Registreringsnummer)"},"dose":{"type":"number","description":"number, required (Dos)"},"dose_unit":{"type":"string","description":"l_ha | kg_ha | g_ha | ml_ha, required (Enhet för dos)"},"treated_ha":{"type":"number","description":"number (Behandlad areal, hektar)"},"operator":{"type":"string","description":"text (Sprutförare)"},"license_class":{"type":"string","description":"text (Behörighet)"},"license_valid_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Behörigheten gäller till)"},"temp_c":{"type":"number","description":"number (Temperatur, °C)"},"wind_ms":{"type":"number","description":"number (Vind, m/s)"},"wind_dir":{"type":"string","description":"text (Vindriktning)"},"weather":{"type":"string","description":"text (Väder)"},"buffer_m":{"type":"number","description":"number (Skyddsavstånd, meter)"},"buffer_note":{"type":"string","description":"text (Hur skyddsavståndet bestämdes)"},"flowering":{"type":"boolean","description":"boolean (Blommande vegetation i fältet)"},"sprayer":{"type":"string","description":"text (Spruta)"},"sprayer_test":{"type":"string","format":"date","description":"date YYYY-MM-DD (Sprutans senaste funktionstest)"},"sprayer_bought":{"type":"string","format":"date","description":"date YYYY-MM-DD (Ny spruta köpt)"},"harvest_interval":{"type":"string","description":"text (Karenstid)"},"harvest_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Skördedatum)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","date","crop","product","reg_no","dose","dose_unit"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/spruta":{"get":{"summary":"Gårdens sprutor med datum för senaste godkända funktionstest. Godkännandet gäller i tre år, och en ny spruta är undantagen i tre år från inköpet. Datumet då godkännandet går ut blir en påminnelse till den som är tilldelad.","operationId":"list_spruta","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_spruta","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Spruta)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | avvecklad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"model":{"type":"string","description":"text (Märke och modell)"},"marking":{"type":"string","description":"text (Nummer eller märkning)"},"sprayer_bought":{"type":"string","format":"date","description":"date YYYY-MM-DD (Köpt ny)"},"sprayer_test":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste godkända funktionstest)"},"tester":{"type":"string","description":"text (Testad av)"},"certificate":{"type":"string","description":"text (Intyg eller protokoll)"},"calibrated_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast kalibrerad på gården)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Spruta)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | avvecklad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Giltig till)"},"model":{"type":"string","description":"text (Märke och modell)"},"marking":{"type":"string","description":"text (Nummer eller märkning)"},"sprayer_bought":{"type":"string","format":"date","description":"date YYYY-MM-DD (Köpt ny)"},"sprayer_test":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senaste godkända funktionstest)"},"tester":{"type":"string","description":"text (Testad av)"},"certificate":{"type":"string","description":"text (Intyg eller protokoll)"},"calibrated_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast kalibrerad på gården)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/djurlakemedel":{"get":{"summary":"Behandlingar av livsmedelsproducerande djur: vilket djur, vilket läkemedel och när karenstiden går ut. Ange djurets id-nummer eller gruppens namn, aldrig uppgifter om personer. Journalen sparas i minst fem år.","operationId":"list_djurlakemedel","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_djurlakemedel","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Djur eller grupp)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | klar, default pagar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Karenstid till)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"animal_id":{"type":"string","description":"text (Id-nummer)"},"species":{"type":"string","description":"text (Djurslag)"},"diagnosis":{"type":"string","description":"text, required (Diagnos eller orsak)"},"medicine":{"type":"string","description":"text, required (Läkemedel)"},"dose":{"type":"string","description":"text, required (Dos)"},"days":{"type":"number","description":"number (Antal behandlingsdagar)"},"supplier":{"type":"string","description":"text (Leverantör av läkemedlet)"},"vet":{"type":"string","description":"text (Veterinär)"},"withdrawal_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Karenstid till)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","date","diagnosis","medicine","dose"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Djur eller grupp)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagar | klar, default pagar"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Karenstid till)"},"date":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Datum)"},"animal_id":{"type":"string","description":"text (Id-nummer)"},"species":{"type":"string","description":"text (Djurslag)"},"diagnosis":{"type":"string","description":"text, required (Diagnos eller orsak)"},"medicine":{"type":"string","description":"text, required (Läkemedel)"},"dose":{"type":"string","description":"text, required (Dos)"},"days":{"type":"number","description":"number (Antal behandlingsdagar)"},"supplier":{"type":"string","description":"text (Leverantör av läkemedlet)"},"vet":{"type":"string","description":"text (Veterinär)"},"withdrawal_until":{"type":"string","format":"date","description":"date YYYY-MM-DD (Karenstid till)"},"notes":{"type":"string","description":"text (Anteckning)"}},"required":["title","date","diagnosis","medicine","dose"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/avisning":{"get":{"summary":"Förbrukad avisningsvätska och halkbekämpningsmedel per säsong och produkt, hur mycket som samlades upp och vart det gick. Registret är underlag för kontrollprogrammet och miljörapporten. Jämför med villkoren i ert miljötillstånd.","operationId":"list_avisning","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_avisning","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Produkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagaende | klar, default pagaende"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporteras senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"season":{"type":"string","description":"text, required (Säsong)"},"use":{"type":"string","description":"luftfartyg | bana, required (Användning)"},"used_l":{"type":"number","description":"number (Förbrukad mängd i liter)"},"glycol_kg":{"type":"number","description":"number (Varav glykol i kg)"},"collected_l":{"type":"number","description":"number (Uppsamlad mängd i liter)"},"recipient":{"type":"string","description":"text (Vart det uppsamlade gick)"},"condition":{"type":"string","description":"text (Villkor eller begränsning)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","season","use"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Produkt)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"pagaende | klar, default pagaende"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Rapporteras senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"season":{"type":"string","description":"text, required (Säsong)"},"use":{"type":"string","description":"luftfartyg | bana, required (Användning)"},"used_l":{"type":"number","description":"number (Förbrukad mängd i liter)"},"glycol_kg":{"type":"number","description":"number (Varav glykol i kg)"},"collected_l":{"type":"number","description":"number (Uppsamlad mängd i liter)"},"recipient":{"type":"string","description":"text (Vart det uppsamlade gick)"},"condition":{"type":"string","description":"text (Villkor eller begränsning)"},"note":{"type":"string","description":"text (Anteckning)"}},"required":["title","season","use"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/flygbuller":{"get":{"summary":"Klagomål på flygbuller: när det kom in, vilket område det gällde, vilken flygning det troligen var och vad ni svarade. Skriv område eller ort, inte namn eller adress. Kontaktuppgifter till den som klagar sparas där svaret skickas, inte här.","operationId":"list_flygbuller","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_flygbuller","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kort beskrivning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ny | utreds | besvarat, default ny"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Svar senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"received_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Inkom)"},"channel":{"type":"string","description":"telefon | epost | webb | brev | annat (Kanal)"},"area_name":{"type":"string","description":"text (Område eller ort)"},"event_time":{"type":"string","description":"text (När bullret inträffade)"},"flight":{"type":"string","description":"text (Flygning eller flygplanstyp)"},"within_conditions":{"type":"string","description":"ja | nej | oklart (Inom villkoren)"},"answer":{"type":"string","description":"text (Svar och åtgärd)"},"answered_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Besvarat)"}},"required":["title","received_on"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Kort beskrivning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"ny | utreds | besvarat, default ny"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Svar senast)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"received_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required (Inkom)"},"channel":{"type":"string","description":"telefon | epost | webb | brev | annat (Kanal)"},"area_name":{"type":"string","description":"text (Område eller ort)"},"event_time":{"type":"string","description":"text (När bullret inträffade)"},"flight":{"type":"string","description":"text (Flygning eller flygplanstyp)"},"within_conditions":{"type":"string","description":"ja | nej | oklart (Inom villkoren)"},"answer":{"type":"string","description":"text (Svar och åtgärd)"},"answered_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Besvarat)"}},"required":["title","received_on"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/information_assets":{"get":{"summary":"Information assets: type, owner, classification of confidentiality, integrity and availability, location and supplier.","operationId":"list_information_assets","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_information_assets","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Tillgång)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | planerad | avvecklad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn)"},"type":{"type":"string","description":"information | system | tjanst | utrustning | lokal | annat, required (Typ)"},"owner":{"type":"string","description":"text, required (Ägare)"},"conf":{"type":"string","description":"1 | 2 | 3 | 4, required (Konfidentialitet)"},"integrity":{"type":"string","description":"1 | 2 | 3 | 4, required (Riktighet)"},"availability":{"type":"string","description":"1 | 2 | 3 | 4, required (Tillgänglighet)"},"location":{"type":"string","description":"text (Plats eller system)"},"supplier":{"type":"string","description":"text (Leverantör)"},"personal_data":{"type":"boolean","description":"boolean (Innehåller personuppgifter)"},"description":{"type":"string","description":"text (Beskrivning)"},"protection":{"type":"string","description":"text (Skydd som finns)"}},"required":["title","type","owner","conf","integrity","availability"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Tillgång)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"i_bruk | planerad | avvecklad, default i_bruk"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa översyn)"},"type":{"type":"string","description":"information | system | tjanst | utrustning | lokal | annat, required (Typ)"},"owner":{"type":"string","description":"text, required (Ägare)"},"conf":{"type":"string","description":"1 | 2 | 3 | 4, required (Konfidentialitet)"},"integrity":{"type":"string","description":"1 | 2 | 3 | 4, required (Riktighet)"},"availability":{"type":"string","description":"1 | 2 | 3 | 4, required (Tillgänglighet)"},"location":{"type":"string","description":"text (Plats eller system)"},"supplier":{"type":"string","description":"text (Leverantör)"},"personal_data":{"type":"boolean","description":"boolean (Innehåller personuppgifter)"},"description":{"type":"string","description":"text (Beskrivning)"},"protection":{"type":"string","description":"text (Skydd som finns)"}},"required":["title","type","owner","conf","integrity","availability"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/information_security_risks":{"get":{"summary":"Information security risk treatment: asset, threat, vulnerability, likelihood, consequence, treatment and the Annex A controls chosen (A.5.1 to A.8.34).","operationId":"list_information_security_risks","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_information_security_risks","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Risk)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"identifierad | behandlas | behandlad | accepterad, default identifierad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Följs upp)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"asset":{"type":"string","description":"text (Tillgång som berörs)"},"threat":{"type":"string","description":"text, required (Hot)"},"vulnerability":{"type":"string","description":"text (Sårbarhet)"},"impact_on":{"type":"string","description":"konfidentialitet | riktighet | tillganglighet | flera (Påverkar)"},"likelihood":{"type":"string","description":"1 | 2 | 3 | 4, required (Sannolikhet)"},"consequence":{"type":"string","description":"1 | 2 | 3 | 4, required (Konsekvens)"},"treatment":{"type":"string","description":"minska | undvika | dela | acceptera (Behandling)"},"controls":{"type":"string","description":"text (Åtgärder ur bilaga A)"},"action":{"type":"string","description":"text (Vad gör vi?)"},"residual":{"type":"string","description":"lag | mattlig | hog (Kvarvarande risk)"},"accepted_by":{"type":"string","description":"text (Kvarvarande risk godkänd av)"}},"required":["title","threat","likelihood","consequence"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Risk)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"identifierad | behandlas | behandlad | accepterad, default identifierad"},"site":{"type":"string","description":"name of a site that exists in sites"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Följs upp)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"asset":{"type":"string","description":"text (Tillgång som berörs)"},"threat":{"type":"string","description":"text, required (Hot)"},"vulnerability":{"type":"string","description":"text (Sårbarhet)"},"impact_on":{"type":"string","description":"konfidentialitet | riktighet | tillganglighet | flera (Påverkar)"},"likelihood":{"type":"string","description":"1 | 2 | 3 | 4, required (Sannolikhet)"},"consequence":{"type":"string","description":"1 | 2 | 3 | 4, required (Konsekvens)"},"treatment":{"type":"string","description":"minska | undvika | dela | acceptera (Behandling)"},"controls":{"type":"string","description":"text (Åtgärder ur bilaga A)"},"action":{"type":"string","description":"text (Vad gör vi?)"},"residual":{"type":"string","description":"lag | mattlig | hog (Kvarvarande risk)"},"accepted_by":{"type":"string","description":"text (Kvarvarande risk godkänd av)"}},"required":["title","threat","likelihood","consequence"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai_systems":{"get":{"summary":"AI systems: purpose, supplier, role (developer, provider or deployer), risk class under the EU AI Act (EU) 2024/1689, data used, human oversight and last review.","operationId":"list_ai_systems","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_ai_systems","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (AI-system)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerat | i_bruk | pausat | avvecklat, default i_bruk"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa granskning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"purpose":{"type":"string","description":"text, required (Syfte och användning)"},"supplier":{"type":"string","description":"text (Leverantör)"},"model":{"type":"string","description":"text (Modell eller tjänst)"},"role":{"type":"string","description":"utvecklare | leverantor | anvandare | flera, required (Vår roll)"},"risk_class":{"type":"string","description":"ej_bedomd | forbjuden | hog | transparens | minimal, required (Riskklass enligt AI-förordningen)"},"data":{"type":"string","description":"text (Data som används)"},"personal_data":{"type":"boolean","description":"boolean (Behandlar personuppgifter)"},"oversight":{"type":"string","description":"text (Mänsklig tillsyn)"},"reviewed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast granskad)"},"notes":{"type":"string","description":"text (Anteckningar)"}},"required":["title","purpose","role","risk_class"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (AI-system)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"planerat | i_bruk | pausat | avvecklat, default i_bruk"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa granskning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"purpose":{"type":"string","description":"text, required (Syfte och användning)"},"supplier":{"type":"string","description":"text (Leverantör)"},"model":{"type":"string","description":"text (Modell eller tjänst)"},"role":{"type":"string","description":"utvecklare | leverantor | anvandare | flera, required (Vår roll)"},"risk_class":{"type":"string","description":"ej_bedomd | forbjuden | hog | transparens | minimal, required (Riskklass enligt AI-förordningen)"},"data":{"type":"string","description":"text (Data som används)"},"personal_data":{"type":"boolean","description":"boolean (Behandlar personuppgifter)"},"oversight":{"type":"string","description":"text (Mänsklig tillsyn)"},"reviewed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Senast granskad)"},"notes":{"type":"string","description":"text (Anteckningar)"}},"required":["title","purpose","role","risk_class"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/ai_impact_assessments":{"get":{"summary":"AI system impact assessments: the system, effects on individuals, groups and society, severity, measures and remaining impact.","operationId":"list_ai_impact_assessments","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":50}},{"name":"cursor","in":"query","schema":{"type":"string"},"description":"next_cursor from the previous page"},{"name":"since","in":"query","schema":{"type":"string","format":"date-time"},"description":"Only rows after this time"},{"name":"order","in":"query","schema":{"type":"string","enum":["created_at","updated_at"]}},{"name":"closed","in":"query","schema":{"type":"boolean"}}],"description":"Without query parameters all rows are returned, oldest first. With any of limit, cursor, since, order or closed the answer is a page, newest first: { data, next_cursor }.","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new row is created)","operationId":"save_ai_impact_assessments","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required (Bedömning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"utkast | klar | gora_om | arkiverad, default utkast"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa bedömning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"system":{"type":"string","description":"text, required (AI-system)"},"assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Bedömd)"},"individuals":{"type":"string","description":"text (Påverkan på individer och grupper)"},"society":{"type":"string","description":"text (Påverkan på samhället)"},"rights":{"type":"string","description":"nej | mojligt | ja (Kan påverka grundläggande rättigheter)"},"severity":{"type":"string","description":"lag | mattlig | hog (Allvarlighet)"},"measures":{"type":"string","description":"text (Åtgärder)"},"residual":{"type":"string","description":"text (Kvarvarande påverkan)"},"fria":{"type":"boolean","description":"boolean (Bedömning enligt artikel 27 i AI-förordningen krävs)"},"dpia":{"type":"boolean","description":"boolean (Konsekvensbedömning för dataskydd är gjord)"}},"required":["title","system"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required (Bedömning)"},"external_ref":{"type":"string","description":"your own id for the row, so the same row can be sent again"},"status":{"type":"string","description":"utkast | klar | gora_om | arkiverad, default utkast"},"responsible":{"type":"string","description":"text"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Nästa bedömning)"},"regulation_key":{"type":"string","description":"e.g. \"SFS 1998:808\""},"system":{"type":"string","description":"text, required (AI-system)"},"assessed_on":{"type":"string","format":"date","description":"date YYYY-MM-DD (Bedömd)"},"individuals":{"type":"string","description":"text (Påverkan på individer och grupper)"},"society":{"type":"string","description":"text (Påverkan på samhället)"},"rights":{"type":"string","description":"nej | mojligt | ja (Kan påverka grundläggande rättigheter)"},"severity":{"type":"string","description":"lag | mattlig | hog (Allvarlighet)"},"measures":{"type":"string","description":"text (Åtgärder)"},"residual":{"type":"string","description":"text (Kvarvarande påverkan)"},"fria":{"type":"boolean","description":"boolean (Bedömning enligt artikel 27 i AI-förordningen krävs)"},"dpia":{"type":"boolean","description":"boolean (Konsekvensbedömning för dataskydd är gjord)"}},"required":["title","system"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/templates":{"get":{"summary":"Checklists for safety rounds and self-inspections. GET returns the built-in checklists (built_in) and the company's own (own). POST creates or updates own checklists.","operationId":"list_templates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (external_ref, or id. Without either a new template is created)","operationId":"save_templates","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required, at most 120 characters"},"external_ref":{"type":"string","description":"your own id for the checklist, so the same checklist can be sent again"},"sections":{"type":"string","description":"list, required: [{ title, area: miljo | arbetsmiljo | kvalitet | annat, items: [text, or { text, help }] }], at most 40 sections and 200 items in total"},"branch":{"type":"string","description":"optional industry id"}},"required":["title","sections"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required, at most 120 characters"},"external_ref":{"type":"string","description":"your own id for the checklist, so the same checklist can be sent again"},"sections":{"type":"string","description":"list, required: [{ title, area: miljo | arbetsmiljo | kvalitet | annat, items: [text, or { text, help }] }], at most 40 sections and 200 items in total"},"branch":{"type":"string","description":"optional industry id"}},"required":["title","sections"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rounds":{"get":{"summary":"Completed and ongoing safety rounds and self-inspections: checklist, date, place, answers per item (ok | brist | na) and progress.","operationId":"list_rounds","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/tasks":{"get":{"summary":"GET lists everything with a due date that is not done: register rows, recurring checks and activities in the annual cycle, soonest first. POST adds an activity to the annual cycle.","operationId":"list_tasks","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create or update (title + due_on)","operationId":"save_tasks","requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"title":{"type":"string","description":"text, required, at most 200 characters"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required"},"kind":{"type":"string","description":"internrevision | genomgang | skyddsrond | riskbedomning | utbildning | ovning | medarbetarsamtal | annat, default annat"},"responsible":{"type":"string","description":"text"},"note":{"type":"string","description":"text"}},"required":["title","due_on"],"additionalProperties":true},{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"text, required, at most 200 characters"},"due_on":{"type":"string","format":"date","description":"date YYYY-MM-DD, required"},"kind":{"type":"string","description":"internrevision | genomgang | skyddsrond | riskbedomning | utbildning | ovning | medarbetarsamtal | annat, default annat"},"responsible":{"type":"string","description":"text"},"note":{"type":"string","description":"text"}},"required":["title","due_on"],"additionalProperties":true},"maxItems":500}]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, wrong or revoked key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The plan has expired or does not include this part","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"No row could be saved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveResult"}}}},"429":{"description":"More than 120 calls a minute","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"webhooks":{"deviation.created":{"post":{"summary":"New deviation","parameters":[{"name":"X-Lagvera-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx confirms the delivery. 410 removes a subscription made through /hooks."}}}},"deviation.closed":{"post":{"summary":"Deviation closed","parameters":[{"name":"X-Lagvera-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx confirms the delivery. 410 removes a subscription made through /hooks."}}}},"record.created":{"post":{"summary":"New record in a register","parameters":[{"name":"X-Lagvera-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx confirms the delivery. 410 removes a subscription made through /hooks."}}}},"law.changed":{"post":{"summary":"Change to a regulation in the legal register","parameters":[{"name":"X-Lagvera-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx confirms the delivery. 410 removes a subscription made through /hooks."}}}},"task.due":{"post":{"summary":"Task due within 7 days","parameters":[{"name":"X-Lagvera-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx confirms the delivery. 410 removes a subscription made through /hooks."}}}},"control.signed":{"post":{"summary":"Check signed","parameters":[{"name":"X-Lagvera-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx confirms the delivery. 410 removes a subscription made through /hooks."}}}},"report.due":{"post":{"summary":"Report due within 14 days","parameters":[{"name":"X-Lagvera-Signature","in":"header","required":true,"schema":{"type":"string"},"description":"t=<unix time>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Event"}}}},"responses":{"200":{"description":"Any 2xx confirms the delivery. 410 removes a subscription made through /hooks."}}}}},"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"rr_... from Settings. X-API-Key also works."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"Me":{"type":"object","properties":{"workspace":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"plan":{"type":"string"}}},"key":{"type":"object","properties":{"name":{"type":"string"}}}}},"Event":{"type":"object","required":["id","type","created_at","data"],"properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["deviation.created","deviation.closed","record.created","law.changed","task.due","control.signed","report.due"]},"created_at":{"type":"string","format":"date-time"},"resource":{"type":"string"},"data":{"type":"object"}}},"EventPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"next_cursor":{"type":["string","null"]}}},"Subscribe":{"type":"object","required":["target_url","event"],"properties":{"target_url":{"type":"string","format":"uri","description":"Public https address"},"event":{"type":"string","enum":["deviation.created","deviation.closed","record.created","law.changed","task.due","control.signed","report.due"]},"register":{"type":"string","enum":["requirements","deviations","risks","stakeholders","competence","emergency","work_environment_plans","subcontractors","measurements","chemicals","waste","refrigerants","emissions","safety_representatives","safety_committee_meetings","safety_committee_members","whistleblowing_channels","active_measures","temperatur","allergen","kontrollrapport","ccp","leverantor","haccp","haccp_fara","provtagning","aterkallelse","atk_kontakt","atk_rutin","behorighet","farligtgods","dangerous_goods_shipments","driving_time_infringements","tachograph_downloads","vehicles","warehouse_equipment","oljeavskiljare","farligt_avfall","fgas_logg","kontrollobjekt","maskin","maskinrisk","kemexponering","forbrukning","print_hazardous_waste","sterilisator","autoklav","behandling","godsel","godsellager","vaxtskydd","spruta","djurlakemedel","avisning","flygbuller","information_assets","information_security_risks","ai_systems","ai_impact_assessments"],"description":"Only with record.created"},"source":{"type":"string","enum":["zapier","make","api"]}}},"Subscription":{"type":"object","properties":{"id":{"type":"string"},"event":{"type":"string"},"target_url":{"type":"string"},"secret":{"type":"string"},"register":{"type":["string","null"]}}},"SaveResult":{"type":"object","properties":{"data":{"type":"object","properties":{"created":{"type":"integer"},"updated":{"type":"integer"},"unchanged_or_saved":{"type":"integer"},"errors":{"type":"array"}}}}}}}}