{"openapi":"3.1.0","info":{"title":"EV HUB API Documentation","description":"These are the core set of rest APIs for **EV HUB** platform.","license":{"name":"EV HUB License"},"version":"1.0"},"servers":[{"url":"https://api.evhub.no","description":"Generated server url"}],"security":[{"JWT":[]}],"paths":{"/api/v1/warehouses/{id}":{"get":{"tags":["Warehouses"],"summary":"Get warehouse","operationId":"get","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Warehouses"],"summary":"Update warehouse","operationId":"update","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarehouseRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Warehouses"],"summary":"Delete warehouse","operationId":"delete","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/{id}":{"get":{"tags":["Vehicle"],"summary":"Get a vehicle by id","operationId":"getVehicle","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"serviceNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Vehicle"],"summary":"Update Vehicle By id","operationId":"updateVehicle","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Vehicle"],"summary":"Delete a vehicle and all associated data","operationId":"deleteVehicle","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/users/{id}":{"get":{"tags":["IAM"],"summary":"Get a user details by id","operationId":"getUserById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["IAM"],"summary":"Update a user","operationId":"updateUser","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["IAM"],"summary":"Delete a user","operationId":"deleteUserById","parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/users/me/profile":{"put":{"tags":["IAM"],"summary":"Update a user profile details by id","operationId":"updateUserProfileById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-units/{id}":{"get":{"tags":["Storage Unit"],"summary":"Get storage unit","operationId":"getOne","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Storage Unit"],"summary":"Update storage unit","operationId":"update_1","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUnitUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Storage Unit"],"summary":"Delete storage unit","operationId":"delete_1","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-units/{id}/assign":{"put":{"tags":["Storage Unit"],"summary":"Assign storage unit to garage and generate registration link","operationId":"assign","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUnitAssignRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/shipments/{id}":{"put":{"tags":["Shipments"],"summary":"Update shipment","operationId":"update_2","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Shipments"],"summary":"Delete shipment","operationId":"delete_2","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}":{"get":{"tags":["Service Record"],"summary":"Get service record by service number","operationId":"getServiceRecord","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Service Record"],"summary":"Update a service record","operationId":"updateServiceRecord","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"sendNotification","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"b","in":"query","required":true,"schema":{"type":"boolean"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateServiceRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Service Record"],"summary":"Delete a service Record and all associated data","operationId":"deleteServiceRecord","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"includeCanBusData","in":"query","required":true,"schema":{"type":"boolean"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/status":{"put":{"tags":["Service Record"],"summary":"Update the servicing status for all active service records for a vehicle","operationId":"updateServicingInformation","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/calculate":{"get":{"tags":["Service Record"],"summary":"Run all calculations for a service record and return the values, this does not update the service record","operationId":"calculateAndGet","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"partId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"calculationType","in":"query","required":false,"schema":{"type":"string","default":"ALL","enum":["BATTERY","HEATER","ALL"]}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Service Record"],"summary":"Run all calculations for a service record and update the service record job card data","operationId":"calculateAndUpdate","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"calculationType","in":"query","required":false,"schema":{"type":"string","default":"ALL","enum":["BATTERY","HEATER","ALL"]}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/part-registrations/{id}":{"get":{"tags":["Part registrations"],"summary":"Get part registration by id","operationId":"getById","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Part registrations"],"summary":"Update an part registration","operationId":"updatePartRegistration","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartRegistrationUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Part registrations"],"summary":"Delete part registration","operationId":"delete_3","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/part-categories/{id}":{"put":{"tags":["Part Categories"],"summary":"Update part category","operationId":"update_3","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartCategoryRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Part Categories"],"summary":"Delete part category","operationId":"delete_4","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/owners/{id}":{"get":{"tags":["Owner"],"summary":"Get an owner with it's chain and garage details","operationId":"getOwnerById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Owner"],"summary":"Update an owner","operationId":"updateOwner","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Owner"],"summary":"Delete an owner and all associated chain, garage, vehicle and service record data","operationId":"deleteOwner","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/notifications/{id}":{"get":{"tags":["Notification"],"summary":"Get a notification by id","operationId":"getNotificationById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Notification"],"summary":"Update notification by ID","operationId":"updateNotification","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Notification"],"summary":"delete notification by deleteRequestId","operationId":"deleteNotificationById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/notifications/bulk-update":{"put":{"tags":["Notification"],"summary":"Update notifications by deleteRequestId list","operationId":"updateNotificationsByDeleteRequestIds","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"string"}}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/report-notifications/schedules/{id}":{"put":{"tags":["Loop Report Notifications"],"summary":"Update report schedule","operationId":"updateSchedule","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopReportScheduleRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Loop Report Notifications"],"summary":"Delete report schedule","operationId":"deleteSchedule","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/report-notifications/recipients/{id}":{"put":{"tags":["Loop Report Notifications"],"summary":"Update report recipient","operationId":"updateRecipient","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopReportRecipientRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Loop Report Notifications"],"summary":"Delete report recipient","operationId":"deleteRecipient","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/impact-factors/{id}":{"put":{"tags":["Loop Impact Factors"],"summary":"Update impact factor","operationId":"update_4","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpactFactorRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Loop Impact Factors"],"summary":"Delete impact factor","operationId":"delete_5","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-rewards/{id}":{"put":{"tags":["Loop Rewards"],"summary":"Update loop reward","operationId":"update_5","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopRewardRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Loop Rewards"],"summary":"Delete loop reward","operationId":"delete_6","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/{garageId}":{"put":{"tags":["Loop garages"],"summary":"Update an enrolled Loop garage (email, address, currency)","operationId":"updateLoopGarage","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopGarageUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Loop garages"],"summary":"Remove a garage from Loop and deactivate carrier assignments","operationId":"unenrollLoopGarage","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/{garageId}/garage-carriers":{"get":{"tags":["Loop garages"],"summary":"List carriers assigned to a garage","operationId":"listGarageCarriers","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Loop garages"],"summary":"Assign one or more carriers to a garage","operationId":"assignGarageCarriers","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GarageCarrierAssignRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/{garageId}/category-rewards/{categoryId}":{"put":{"tags":["Loop garages"],"summary":"Override a garage category reward","operationId":"overrideCategoryReward","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"categoryId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopGarageCategoryRewardOverrideRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-category-default-rewards/{id}":{"put":{"tags":["Loop Category Default Rewards"],"summary":"Update category default reward","operationId":"update_6","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopCategoryDefaultRewardRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Loop Category Default Rewards"],"summary":"Delete category default reward","operationId":"delete_7","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-category-default-rewards/by-category/{categoryId}":{"put":{"tags":["Loop Category Default Rewards"],"summary":"Upsert default rewards for a part category across currencies","operationId":"upsertByCategory","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"categoryId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopCategoryDefaultRewardsByCategoryRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Loop Category Default Rewards"],"summary":"Delete all default rewards for a part category","operationId":"deleteByCategory","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"categoryId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/garages/{id}":{"get":{"tags":["Garage"],"summary":"Get a garage","operationId":"getGarageById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Garage"],"summary":"Update a garage","operationId":"updateGarage","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GarageRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Garage"],"summary":"Delete a garage","operationId":"deleteGarage","parameters":[{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/delete-requests/{id}":{"get":{"tags":["Delete Request"],"summary":"Get delete request by Id","operationId":"getDeleteRequestById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Delete Request"],"summary":"Update delete request","operationId":"updateDeleteRequest","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRequestUpdateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Delete Request"],"summary":"Delete delete request by id","operationId":"deleteDeleteRequest","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/chains/{id}":{"get":{"tags":["Chain"],"summary":"Get a chain","operationId":"getChainById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseChainExpandResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Chain"],"summary":"Update a chain","operationId":"updateChain","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseChainResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Chain"],"summary":"Delete a chain and all associated garage, vehicle and service record data","operationId":"deleteChain","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"type":"object"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/categories/{id}":{"get":{"tags":["Category"],"summary":"Get a specific category by ID","operationId":"getCategoryById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"includeChildren","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Category"],"summary":"Update a category (full replacement)","operationId":"updateCategory","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Category"],"summary":"Delete a category","description":"Deletes a category and all its children recursively. Only Admin users can delete categories. Automatically removes associated images from S3. Performs cascading deletion for all child categories.","operationId":"deleteCategory","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/cases/{id}":{"get":{"tags":["Case"],"summary":"Get a specific case by ID","operationId":"getCaseById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Case"],"summary":"Update a case (full replacement)","description":"Updates an existing case with full replacement. Preserves creation metadata (createdBy, createdAt) for existing issues, troubleshoots, and solutions. Published cases can only be updated by global administrators. Regular users can only update their own cases. Processes file uploads and maintains S3 file references.","operationId":"updateCase","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Case"],"summary":"Delete a case","operationId":"deleteCase","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/carriers/{id}":{"get":{"tags":["Carriers"],"summary":"Get carrier","operationId":"get_1","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Carriers"],"summary":"Update carrier","operationId":"update_7","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarrierRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Carriers"],"summary":"Delete carrier","operationId":"delete_8","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/carrier-providers/{id}":{"get":{"tags":["Carrier Providers"],"summary":"Get carrier provider","operationId":"get_2","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Carrier Providers"],"summary":"Update carrier provider","operationId":"update_8","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarrierProviderRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Carrier Providers"],"summary":"Delete carrier provider","operationId":"delete_9","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/activity-logs/{id}":{"get":{"tags":["Activity Logs"],"summary":"Get activity log by id","operationId":"getActivityLogById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"put":{"tags":["Activity Logs"],"summary":"Update activity log","operationId":"updateActivityLog","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityLogRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"delete":{"tags":["Activity Logs"],"summary":"Delete activity log","operationId":"deleteActivityLog","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/loop/vehicles/registry":{"post":{"tags":["Open Loop"],"summary":"Lookup source vehicle from national registry for Loop registration","operationId":"lookupSourceVehicle","parameters":[{"name":"locale","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopVehicleRegistryRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/loop/storage-unit-full-records":{"post":{"tags":["Open Loop"],"summary":"Create Storage Unit Full Report","operationId":"createReport","parameters":[{"name":"locale","in":"header","required":false,"schema":{"type":"string"}},{"name":"User-Agent","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUnitFullRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/loop/part-registrations":{"post":{"tags":["Open Loop"],"summary":"Register a Loop part","operationId":"register","parameters":[{"name":"User-Agent","in":"header","required":true,"schema":{"type":"string"}},{"name":"locale","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopPartRegistrationRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/loop/part-registrations/prefill":{"post":{"tags":["Open Loop"],"summary":"Analyze photos and prefill category/part details before registration","operationId":"prefill","parameters":[{"name":"locale","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopPartRegistrationPrefillRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/loop/part-registrations/extract-evhub-serial":{"post":{"tags":["Open Loop"],"summary":"Extract EV HUB serial number from a serial label photo via vision OCR","operationId":"extractEvHubSerial","parameters":[{"name":"locale","in":"header","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopEvHubSerialExtractRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/warehouses":{"get":{"tags":["Warehouses"],"summary":"List warehouses","operationId":"list","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"chainId","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Warehouses"],"summary":"Create warehouse","operationId":"create","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WarehouseRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles":{"get":{"tags":["Vehicle"],"summary":"Get all vehicles for all garages a user has access to","operationId":"getVehicles","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Vehicle"],"summary":"Create a new vehicle","operationId":"createVehicle","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleCreateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"patch":{"tags":["Vehicle"],"summary":"Compress all vehicle images","operationId":"compressAllImages","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"min","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"max","in":"query","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/search":{"post":{"tags":["Vehicle"],"summary":"Search across all vehicles for all garages a user has access to","operationId":"searchVehicles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchFilterRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/scan-identifier":{"post":{"tags":["Vehicle"],"summary":"Read a VIN or number plate from a photo","description":"Read-only vision OCR. Does not look up or create a vehicle.","operationId":"scanIdentifier","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleIdentifierScanRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/registry":{"post":{"tags":["Vehicle"],"summary":"Lookup vehicle details from a national vehicle registry","operationId":"getVehicleFromRegistry","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehicleRegistryRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/parts":{"post":{"tags":["Part"],"summary":"Create a vehicle part","operationId":"createVehiclePart","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VehiclePartRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/match-variant":{"post":{"tags":["Vehicle"],"summary":"This will try match the best variant for this vehicle given the vehicles details","operationId":"matchVariant","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantMatchRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/users":{"post":{"tags":["IAM"],"summary":"Create a user","operationId":"createUser","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-units":{"get":{"tags":["Storage Unit"],"summary":"List storage units","operationId":"list_1","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Storage Unit"],"summary":"Create storage unit","operationId":"create_1","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUnitCreateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-units/{id}/scan-token/generate":{"post":{"tags":["Storage Unit"],"summary":"Generate or Regenerate QR / registration token (invalidates previous tokens)","operationId":"generateScanToken","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"regenerate","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-unit-full-records":{"get":{"tags":["Storage Unit Full Record"],"summary":"Get Storage Unit Full Records","operationId":"getAll","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["NEW","READ","ARCHIVED","ACCEPTED","REJECTED","REGISTERED","PROCESSING","PENDING","COMPLETED","SUBMITTED","CLOSED"]}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Storage Unit Full Record"],"summary":"Mark Storage Unit as Full","operationId":"createReport_1","parameters":[{"name":"locale","in":"header","required":false,"schema":{"type":"string"}},{"name":"User-Agent","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUnitFullRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/shipments":{"get":{"tags":["Shipments"],"summary":"List shipments","operationId":"list_2","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Shipments"],"summary":"Create shipment","operationId":"create_2","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ShipmentRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records":{"post":{"tags":["Service Record"],"summary":"Create a new service record for a vehicle","operationId":"createServiceRecord","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceRecordRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/tire-image-extractions":{"post":{"tags":["Tire image extraction"],"summary":"Extract tire suggestions from selected saved images","description":"Read-only OpenAI extraction. Does not save inspection fields or generate an estimate.","operationId":"extract","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TireImageExtractionRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/tire-estimates":{"post":{"tags":["Tire estimates"],"summary":"Calculate and save a tire price estimate","description":"Returns 201 with an immutable estimate using chain pricing and the provisional Norgesdekk ex-VAT/fees/discounts assumption. The mechanic selects which wheels to replace.","operationId":"estimate","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TireEstimateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/reports/share":{"post":{"tags":["Report"],"summary":"Share the vehicle inspection report PDF","operationId":"shareReport","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PdfShareRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/reports/co2/pdf":{"post":{"tags":["Report"],"summary":"Get the CO2 report PDF","operationId":"getCo2Report","parameters":[{"name":"Authorization","in":"header","required":true,"schema":{"type":"string"}},{"name":"locale","in":"header","required":false,"schema":{"type":"string"}},{"name":"shareUrl","in":"query","required":false,"schema":{"type":"string","default":"https://evhub.no"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartRegistrationFilterRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/part-registrations":{"post":{"tags":["Part registrations"],"summary":"List part registrations","operationId":"list_3","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartRegistrationFilterRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/part-categories":{"get":{"tags":["Part Categories"],"summary":"List part categories","operationId":"list_4","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Part Categories"],"summary":"Create part category","operationId":"create_3","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartCategoryRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/owners":{"get":{"tags":["Owner"],"summary":"Get all owners the user has access to","operationId":"getOwners","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Owner"],"summary":"Create an owner","operationId":"createOwner","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/notifications":{"get":{"tags":["Notification"],"summary":"Get all notification by state","operationId":"getNotifications","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Notification"],"summary":"Create notifications by deleteRequest Id","operationId":"createNotification","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"deleteRequestId","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/report-notifications/send":{"post":{"tags":["Loop Report Notifications"],"summary":"Send Loop CO2 report email manually","operationId":"sendManual","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopReportSendRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/report-notifications/schedules":{"get":{"tags":["Loop Report Notifications"],"summary":"List report schedules","operationId":"listSchedules","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Loop Report Notifications"],"summary":"Create report schedule","operationId":"createSchedule","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopReportScheduleRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/report-notifications/schedules/{id}/send-now":{"post":{"tags":["Loop Report Notifications"],"summary":"Send report for a schedule immediately","operationId":"sendScheduleNow","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/report-notifications/recipients":{"get":{"tags":["Loop Report Notifications"],"summary":"List report recipients","operationId":"listRecipients","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Loop Report Notifications"],"summary":"Create report recipient","operationId":"createRecipient","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopReportRecipientRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop/impact-factors":{"get":{"tags":["Loop Impact Factors"],"summary":"List impact factors","operationId":"list_5","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Loop Impact Factors"],"summary":"Create impact factor","operationId":"create_4","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImpactFactorRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-rewards":{"get":{"tags":["Loop Rewards"],"summary":"List all loop rewards","operationId":"list_6","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Loop Rewards"],"summary":"Create loop reward","operationId":"create_5","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopRewardRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages":{"get":{"tags":["Loop garages"],"summary":"List garages enrolled in Loop","operationId":"listLoopGarages","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Loop garages"],"summary":"Enroll a garage in Loop","operationId":"enrollLoopGarage","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopGarageEnrollRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/{garageId}/scan-token/generate":{"post":{"tags":["Loop garages"],"summary":"Generate garage drop-off QR link","operationId":"generateGarageScanToken","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"type":"string"}},{"name":"regenerate","in":"query","required":false,"schema":{"type":"boolean","default":false}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/{garageId}/category-rewards/{categoryId}/reset":{"post":{"tags":["Loop garages"],"summary":"Reset a garage category reward to the currency default","operationId":"resetCategoryReward","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"categoryId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-credits/outstanding/{garageId}/settle":{"post":{"tags":["Loop Credits"],"summary":"Mark garage credits as paid","operationId":"settle","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettlementCreateRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-category-default-rewards":{"get":{"tags":["Loop Category Default Rewards"],"summary":"List category default rewards","operationId":"list_7","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Loop Category Default Rewards"],"summary":"Create category default reward","operationId":"create_6","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoopCategoryDefaultRewardRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/log-files/search":{"post":{"tags":["Log File"],"summary":"Search log files with filtering and pagination","operationId":"getAlLogFiles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogFileFilterRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/garages":{"get":{"tags":["Garage"],"summary":"Get all garages with chain and owner name","operationId":"getGarages","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"userId","in":"query","required":false,"schema":{"type":"string"}},{"name":"chainId","in":"query","required":false,"schema":{"type":"string"}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Garage"],"summary":"Create a garage","operationId":"createGarage","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GarageRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/delete-requests":{"get":{"tags":["Delete Request"],"summary":"Get all delete request","operationId":"getDeleteRequest","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"state","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Delete Request"],"summary":"Create delete request","operationId":"createDeleteRequest","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRequestCreateRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/delete-requests/{id}/reject":{"post":{"tags":["Delete Request"],"summary":"Reject the Delete Request from the Mechanic ","operationId":"rejectDeleteRequest","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteRequestRejectRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/delete-requests/{id}/accept":{"post":{"tags":["Delete Request"],"summary":"Accept the Delete Request from the Mechanic","operationId":"acceptDeleteRequest","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/chains":{"get":{"tags":["Chain"],"summary":"Get all chains","operationId":"getChains","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseCountResponseChainResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Chain"],"summary":"Create a chain","operationId":"createChain","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChainRequest"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseChainResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/categories":{"post":{"tags":["Category"],"summary":"Create a new category","description":"Creates a new category with hierarchical support. Only Admin users can create categories. Validates unique category names within the same parent level. Supports image upload via base64 encoding. Automatically sets creation metadata.","operationId":"createCategory","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/categories/{id}/image":{"post":{"tags":["Category"],"summary":"Upload image for a category","description":"Uploads an image file for a specific category. Only Admin users can upload category images. Supports image file types: JPEG, PNG, GIF, WebP, BMP. File size limit: 10MB. Replaces existing image if one exists. Files are stored in S3 with structured folder organization.","operationId":"uploadCategoryImage","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"image":{"type":"string","format":"binary"}},"required":["image"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/categories/search":{"post":{"tags":["Category"],"summary":"Search categories with filtering, pagination and hierarchical structure","description":"Retrieves a paginated list of categories with hierarchical structure support. When includeChildren=false, returns only root categories (parentId == null). When includeChildren=true, returns full hierarchical structure with children nested in parent categories. Supports search by name and filtering by parentId.","operationId":"searchCategories","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CategoryFilterRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/cases":{"post":{"tags":["Case"],"summary":"Create a new case","description":"Creates a new case with issues, troubleshoots, and solutions. All fields are optional except userId (from authentication). If no issues provided, creates an empty case with default issue structure. Automatically generates IDs for issues, troubleshoots, and solutions. Processes file uploads (base64) and stores them in S3.","operationId":"createCase","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/cases/{id}/voice-files":{"post":{"tags":["Case"],"summary":"Upload voice files for a case","description":"Uploads voice/audio files for a specific case. Supports audio file types: MP3, WAV, OGG, M4A, AAC. File size limit: 10MB for audio files. Files are stored in S3 with structured folder organization.","operationId":"uploadVoiceFiles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}},"required":["files"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/cases/{id}/media-files":{"post":{"tags":["Case"],"summary":"Upload media files for a case","description":"Uploads media files (images, videos, documents) for a specific case. Supports multiple file types: Images (JPEG, PNG, GIF, WebP, BMP), Videos (MP4, AVI, MOV, WebM), Audio (MP3, WAV, OGG, M4A, AAC), Documents (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX). File size limits: 100MB for videos, 10MB for other files. Files are stored in S3 with structured folder organization.","operationId":"uploadMediaFiles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}},"required":["files"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/cases/{id}/fault-codes":{"post":{"tags":["Case"],"summary":"Upload fault code files for a case","description":"Uploads fault code files (images and documents only, no videos or audio) for a specific case. Supports: Images (JPEG, PNG, GIF, WebP, BMP), Documents (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX). File size limit: 10MB per file. Videos and audio files will be rejected.","operationId":"uploadFaultCodeFiles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}},"required":["files"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/cases/search":{"post":{"tags":["Case"],"summary":"Search cases with filtering, pagination, sorting and text search","description":"Retrieves a paginated list of cases with comprehensive filtering options. Supports filtering by variantId, vehicleId, categoryId, status, and text search across issue descriptions, troubleshoot descriptions, solution descriptions, and tags. Text search can be combined with other filters. Search is case-insensitive and uses regex matching. Returns cases in a hierarchical structure with full issue details including troubleshoots and solutions.","operationId":"searchCases","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaseFilterRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/carriers":{"get":{"tags":["Carriers"],"summary":"List carriers","operationId":"list_8","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"carrierProviderId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Carriers"],"summary":"Create carrier","operationId":"create_7","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarrierRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/carrier-providers":{"get":{"tags":["Carrier Providers"],"summary":"List carrier providers","operationId":"list_9","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Carrier Providers"],"summary":"Create carrier provider","operationId":"create_8","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CarrierProviderRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/can-data/canmessage-files":{"post":{"tags":["Can Bus Data"],"summary":"Upload CAN message files","description":"Uploads one or more .canmessage files for a vehicle service. Files are stored in S3 and linked to the vehicle and service record.","operationId":"uploadCanMessageFiles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"query","required":true,"schema":{"type":"string"}},{"name":"jobCardKey","in":"query","required":true,"schema":{"type":"string"}},{"name":"deviceId","in":"query","required":true,"schema":{"type":"string"}},{"name":"sessionId","in":"query","required":true,"schema":{"type":"string"}},{"name":"filePart","in":"query","required":true,"schema":{"type":"integer","format":"int32","minimum":1}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}},"required":["files"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/can-data/":{"post":{"tags":["Can Bus Data"],"summary":"Upload CAN data for the report","operationId":"uploadCanBusDataForReport","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanBusDataRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/ai/feedback/{chatId}":{"get":{"tags":["agent-controller"],"operationId":"getFeedback","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseListChatFeedback"}}}}}},"post":{"tags":["agent-controller"],"operationId":"saveFeedback","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatFeedback"}}},"required":true},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseVoid"}}}}}}},"/api/v1/ai/agents/{agentName}/{chatId}/{nodeName}":{"post":{"tags":["agent-controller"],"operationId":"llmCall","parameters":[{"name":"agentName","in":"path","required":true,"schema":{"type":"string","enum":["INTELLIGENCE"]}},{"name":"userPrompt","in":"query","required":true,"schema":{"type":"string"}},{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}},{"name":"nodeName","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"files":{"type":"array","items":{"type":"string","format":"binary"}}}}}}},"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseAiPublicAnswer"}}}}}}},"/api/v1/activity-logs":{"get":{"tags":["Activity Logs"],"summary":"Get all activity logs","operationId":"getActivityLogs","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}},"post":{"tags":["Activity Logs"],"summary":"Create activity log","operationId":"createActivityLog","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActivityLogRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-unit-full-records/{id}/close":{"patch":{"tags":["Storage Unit Full Record"],"summary":"Close Storage Unit Full Record","operationId":"close","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/part-registrations/{id}/status":{"patch":{"tags":["Part registrations"],"summary":"Update part registration status","operationId":"patchStatus","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PartRegistrationStatusRequest"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/versions":{"get":{"tags":["Version"],"summary":"Get the current platform, api and mobile app versions.","operationId":"getVersions","parameters":[{"name":"locale","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/reports/{serviceNumber}":{"get":{"tags":["Open"],"summary":"Get the inspection report details","operationId":"getReportDetails","parameters":[{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"locale","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/reports/{serviceNumber}/pdf":{"get":{"tags":["Open"],"summary":"Get the inspection report PDF","operationId":"getReport","parameters":[{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"locale","in":"header","required":false,"schema":{"type":"string"}},{"name":"shareUrl","in":"query","required":false,"schema":{"type":"string","default":"https://evhub.no"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/open/v1/loop/resolve":{"get":{"tags":["Open Loop"],"summary":"Resolve scan token for part registration header","operationId":"resolve","parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string"}},{"name":"locale","in":"header","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/warehouses/{id}/inventory":{"get":{"tags":["Warehouses"],"summary":"List parts in warehouse inventory","operationId":"inventory","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/{vehicleId}/parts":{"get":{"tags":["Part"],"summary":"Get all parts by vehicleId a user has access to","operationId":"getPartsByVehicleId","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"vehicleId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/{id}/match-variant":{"get":{"tags":["Vehicle"],"summary":"This will try match the best variant for this vehicle given the vehicles attributes and the given parameters","operationId":"matchVariant_1","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"partType","in":"query","required":false,"schema":{"type":"string"}},{"name":"canBusDataId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"variantId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/{id}/expand":{"get":{"tags":["Vehicle"],"summary":"Get a vehicle by id including related objects such as garage and variant","operationId":"getVehicleExpand","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/models":{"get":{"tags":["Vehicle"],"summary":"Get the top ten most common vehicle models","operationId":"getDistinctModel","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"brands","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"model","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/engine":{"get":{"tags":["Vehicle"],"summary":"Get a list of all the supported engine counts","operationId":"getAllEngineCount","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"engineCount","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/vehicles/brands":{"get":{"tags":["Vehicle"],"summary":"Get a list of all the supported brands","operationId":"getDistinctBrand","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"brand","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/variants":{"get":{"tags":["Variant"],"summary":"Get all variants a user has access to","operationId":"getVariants","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"modelId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"name","in":"query","required":false,"schema":{"type":"string"}},{"name":"date","in":"query","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"range","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"maxSpeed","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"drivetrain","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/variants/{id}":{"get":{"tags":["Variant"],"summary":"Get a variant","operationId":"getVariantById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/variants/{id}/parts":{"get":{"tags":["Variant"],"summary":"Get all part-types by id","operationId":"getPartsByVariantId","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/users/mechanic":{"get":{"tags":["IAM"],"summary":"Get all users by garage Id","operationId":"getUsersMechanic","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/users/me":{"get":{"tags":["IAM"],"summary":"Get the currently authenticated user","operationId":"getCurrentUser","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/users/expand":{"get":{"tags":["IAM"],"summary":"Get all the users and include the user roles","operationId":"getUsersExpand","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/support/contact-form":{"get":{"tags":["Support"],"summary":"Get public support form configuration and contact defaults","operationId":"contactForm","parameters":[{"name":"garageId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-units/{id}/transfers":{"get":{"tags":["Storage Unit"],"summary":"List transfer history","operationId":"transfers","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-units/expand":{"get":{"tags":["Storage Unit"],"summary":"List storage units with transfer history","operationId":"listWithTransferHistory","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/storage-unit-full-records/{id}":{"get":{"tags":["Storage Unit Full Record"],"summary":"Get Storage Unit Full Record by ID","operationId":"getReportById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/tire-estimates/latest":{"get":{"tags":["Tire estimates"],"summary":"Retrieve the latest saved estimate for the exact job-card tire section","operationId":"latest","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"jobCardId","in":"query","required":true,"schema":{"type":"string"}},{"name":"section","in":"query","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/summary":{"get":{"tags":["Service Record"],"summary":"Get expanded version of a service record","operationId":"getServiceRecordExpand","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/overall":{"get":{"tags":["Service Record"],"summary":"Get the overall health status for a vehicle's service record","operationId":"getOverallHealth","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/{serviceNumber}/logs":{"get":{"tags":["Service Record"],"summary":"Get logs for a service record","operationId":"getLogFileByServiceNumber","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"serviceNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/service-records/number":{"get":{"tags":["Service Record"],"summary":"Get all service record numbers for a vehicle","operationId":"getAllServiceRecordsNumber","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"vehicleId","in":"query","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/parts":{"get":{"tags":["Part"],"summary":"Get all parts a user has access to","operationId":"getParts","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"modelId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"variantId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"packConfig","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/parts/{id}":{"get":{"tags":["Part"],"summary":"Get a part","operationId":"getPartById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/parts/{id}/variants":{"get":{"tags":["Part"],"summary":"Get all variants associated with the given part","operationId":"getVariantsByPartId","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/owners/tree":{"get":{"tags":["Owner"],"summary":"Get all owners the user has access with the chains and garages in a hierarchical format","operationId":"getOwnersTree","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/owners/expand":{"get":{"tags":["Owner"],"summary":"Get all owners the user has access to and include chain and garage details","operationId":"getOwnersExpand","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/models":{"get":{"tags":["Model"],"summary":"Get all models a user has access to","operationId":"getModels","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"makeId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/models/{id}":{"get":{"tags":["Model"],"summary":"Get a model","operationId":"getModelById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/models/{id}/variants":{"get":{"tags":["Model"],"summary":"Get all variants by id","operationId":"getVariantsByModelId","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/makes":{"get":{"tags":["Make"],"summary":"Get all makes a user has access to","operationId":"getMakes","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/makes/{id}":{"get":{"tags":["Make"],"summary":"Get a make","operationId":"getVehicleMakeById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/makes/{id}/models":{"get":{"tags":["Make"],"summary":"Get all models By MakeId","operationId":"getModelsByMakeId","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/{garageId}/reward-transactions":{"get":{"tags":["Loop garages"],"summary":"List reward transactions for a garage","operationId":"rewardTransactions","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/{garageId}/category-rewards":{"get":{"tags":["Loop garages"],"summary":"List effective category rewards for a garage (default vs override)","operationId":"listCategoryRewards","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/summary":{"get":{"tags":["Loop garages"],"summary":"Loop portal summary KPIs for accessible garages","operationId":"getSummary","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/candidates":{"get":{"tags":["Loop garages"],"summary":"List garages not yet enrolled in Loop","operationId":"listLoopGarageCandidates","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-credits/outstanding":{"get":{"tags":["Loop Credits"],"summary":"List garages with outstanding credits","operationId":"listOutstanding","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-credits/outstanding/{garageId}":{"get":{"tags":["Loop Credits"],"summary":"Get garage outstanding credit details","operationId":"getOutstandingDetail","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"garageId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-credits/history":{"get":{"tags":["Loop Credits"],"summary":"List settlement history","operationId":"listHistory","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-credits/history/{id}":{"get":{"tags":["Loop Credits"],"summary":"Get settlement detail","operationId":"getHistoryDetail","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-credits/history/{id}/pdf":{"get":{"tags":["Loop Credits"],"summary":"Download settlement PDF","operationId":"getSettlementPdf","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/log-files":{"get":{"tags":["Log File"],"summary":"Get all log files","operationId":"getLogFiles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/log-files/{id}":{"get":{"tags":["Log File"],"summary":"Get log file by ID","operationId":"getLogFileById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/locations/autocomplete":{"get":{"tags":["Address autocomplete"],"summary":"Autocomplete addresses using Google Places","operationId":"autocomplete","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"input","in":"query","required":false,"schema":{"type":"string"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/job-cards":{"get":{"tags":["Job Card"],"summary":"Get all the job card details","operationId":"getJobCards","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"reportType","in":"query","required":false,"schema":{"type":"string","default":"unknown"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/job-cards/{id}":{"get":{"tags":["Job Card"],"summary":"Get the details for a job card by id","operationId":"getJobCardById","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"reportType","in":"query","required":false,"schema":{"type":"string","default":"unknown"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/job-cards/schema":{"get":{"tags":["Job Card"],"operationId":"getSchema","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"reportType","in":"query","required":false,"schema":{"type":"string","default":"electric"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/iam/{kcUserId}":{"get":{"tags":["IAM"],"summary":"Get a user","operationId":"getUserById_1","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"kcUserId","in":"path","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/iam/users":{"get":{"tags":["IAM"],"summary":"Get all the users","operationId":"getUsers","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/iam/users/search":{"get":{"tags":["IAM"],"summary":"Search all users","operationId":"searchUsers","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"queryParams","in":"query","required":true,"schema":{"type":"object","additionalProperties":{}}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/iam/roles":{"get":{"tags":["IAM"],"summary":"Get all roles","operationId":"getRoles","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/garages/expand":{"get":{"tags":["Garage"],"summary":"Get all garages with chain and owner details","operationId":"getGarages_1","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/chains/expand":{"get":{"tags":["Chain"],"summary":"Get all chains with garage count and owner name","operationId":"getChainsExpand","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10,"minimum":1}},{"name":"search","in":"query","required":false,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseCursorResponseChainSummeryResponse"}}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/carrier-providers/expand":{"get":{"tags":["Carrier Providers"],"summary":"List carrier providers","operationId":"listWithCarriers","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","format":"int32","default":10}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/can-data":{"get":{"tags":["Can Bus Data"],"summary":"Get the can data for a vehicle service number","operationId":"getCanData","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"vehicleId","in":"query","required":false,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"serviceNumber","in":"query","required":false,"schema":{"type":"string"}},{"name":"jobCardKey","in":"query","required":true,"schema":{"type":"string"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/ai/user-chats/{agentName}":{"get":{"tags":["agent-controller"],"operationId":"getUserChats","parameters":[{"name":"agentName","in":"path","required":true,"schema":{"type":"string","enum":["INTELLIGENCE"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseListChatDescription"}}}}}}},"/api/v1/ai/chats/{agentName}/{chatId}":{"get":{"tags":["agent-controller"],"operationId":"getChat","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}},{"name":"agentName","in":"path","required":true,"schema":{"type":"string","enum":["INTELLIGENCE"]}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseAiPublicAnswer"}}}}}}},"/api/v1/vehicles/{vehicleId}/parts/{partId}":{"delete":{"tags":["Part"],"summary":"Delete a vehicle part","operationId":"deleteVehiclePart","parameters":[{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"vehicleId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"partId","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/loop-garages/garage-carriers/{id}":{"delete":{"tags":["Loop garages"],"summary":"Unassign a carrier from a garage","operationId":"unassignGarageCarrier","parameters":[{"name":"Authorization","in":"header","description":"Access Token","required":true,"schema":{"type":"string"},"example":"Bearer access_token"},{"name":"locale","in":"header","description":"Locale (e.g. en, nb, sv, da, fi)","required":false,"schema":{"type":"string"}},{"name":"id","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ObjectId"}},{"name":"x-realm","in":"header","description":"Realm Name","required":true,"schema":{"type":"string"},"example":"evhub"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"400":{"description":"Bad request","content":{"application/json":{}}},"401":{"description":"You are not authenticated","content":{"application/json":{}}},"403":{"description":"You do not have permission to access this resource","content":{"application/json":{}}},"404":{"description":"Could not find the resource","content":{"application/json":{}}}}}},"/api/v1/ai/user-chats/{chatId}":{"delete":{"tags":["agent-controller"],"operationId":"deleteUserChat","parameters":[{"name":"chatId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RestResponseVoid"}}}}}}}},"components":{"schemas":{"ObjectId":{"type":"object","properties":{"timestamp":{"type":"integer","format":"int32"},"date":{"type":"string","format":"date-time"}}},"WarehouseRequest":{"type":"object","properties":{"chainId":{"type":"string"},"name":{"type":"string","minLength":1},"location":{"type":"string","minLength":1}},"required":["location","name"]},"Unit":{"type":"object","properties":{"value":{"type":"number","format":"double"},"unit":{"type":"string"}}},"VehicleUpdateRequest":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"vin":{"type":"string"},"garageId":{"$ref":"#/components/schemas/ObjectId"},"variantId":{"$ref":"#/components/schemas/ObjectId"},"regNumber":{"type":"string"},"brand":{"type":"string"},"kilometer":{"$ref":"#/components/schemas/Unit"},"registrationDate":{"type":"integer","format":"int64"},"firstRegisteredOn":{"type":"integer","format":"int64"},"firstRegisteredInNorway":{"type":"integer","format":"int64"},"manufacturedDate":{"type":"integer","format":"int64"},"importedUsed":{"type":"string"},"importedCountry":{"type":"string"},"model":{"type":"string"},"manufacturer":{"type":"string"},"servicingStatus":{"type":"integer","format":"int32"},"timestamp":{"type":"integer","format":"int64"},"price":{"type":"number","format":"double"},"lastServiceOn":{"type":"integer","format":"int64"},"latestServiceTime":{"type":"integer","format":"int64"},"carGroup":{"type":"string"},"color":{"type":"string"},"maximumSpeed":{"type":"integer","format":"int32"},"carWeight":{"type":"integer","format":"int32"},"totalAllowedWeight":{"type":"integer","format":"int32"},"totalSeats":{"type":"integer","format":"int32"},"engineCount":{"type":"integer","format":"int32"},"nextMandatoryInspection":{"type":"integer","format":"int64"},"electricRange":{"$ref":"#/components/schemas/Unit"},"engineVolume":{"type":"integer","format":"int32"},"drivetrain":{"type":"string","enum":["AWD","FWD","RWD","UNKNOWN"]},"personalizedNumber":{"type":"string"},"image":{"type":"string"},"disclaimer":{"type":"string"},"hybridCategory":{"type":"string"},"fuelType":{"type":"string"},"enginePowers":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"mechanicName":{"type":"string"},"countryCode":{"type":"string"}},"required":["garageId","vin"]},"Role":{"type":"object","properties":{"garageId":{"$ref":"#/components/schemas/ObjectId"},"role":{"type":"string"}}},"UserCreateRequest":{"type":"object","properties":{"email":{"type":"string","minLength":1},"userName":{"type":"string"},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"password":{"type":"string"},"roles":{"type":"string"},"profileImage":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"},"garages":{"type":"array","items":{"$ref":"#/components/schemas/Role"}},"language":{"type":"string"},"globalAdmin":{"type":"boolean"},"isGlobalAdmin":{"type":"boolean"}},"required":["email","firstName","lastName"]},"ProfileUpdateRequest":{"type":"object","properties":{"firstName":{"type":"string","maxLength":50,"minLength":1},"lastName":{"type":"string","maxLength":50,"minLength":1},"language":{"type":"string"},"profileImage":{"type":"string"},"updatedBy":{"type":"string"}}},"AssignmentScheduleUpdate":{"type":"object","properties":{"assignedFrom":{"type":"integer","format":"int64"},"assignedUntil":{"type":"integer","format":"int64"}},"required":["assignedFrom"]},"StorageUnitUpdateRequest":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"assignmentSchedule":{"$ref":"#/components/schemas/AssignmentScheduleUpdate"},"weight":{"$ref":"#/components/schemas/Unit"}}},"StorageUnitAssignRequest":{"type":"object","properties":{"garageId":{"$ref":"#/components/schemas/ObjectId"},"warehouseId":{"$ref":"#/components/schemas/ObjectId"},"assignedFrom":{"type":"integer","format":"int64"},"assignedUntil":{"type":"integer","format":"int64"}}},"ShipmentRequest":{"type":"object","properties":{"type":{"type":"string","minLength":1,"pattern":"(?i)^(INBOUND|OUTBOUND)$"},"garageId":{"$ref":"#/components/schemas/ObjectId"},"carrierId":{"$ref":"#/components/schemas/ObjectId"},"warehouseId":{"$ref":"#/components/schemas/ObjectId"},"fromLocation":{"type":"string","minLength":1},"toLocation":{"type":"string","minLength":1},"storageUnitId":{"$ref":"#/components/schemas/ObjectId"},"weight":{"$ref":"#/components/schemas/Unit"},"trackingNumber":{"type":"string","minLength":1}},"required":["carrierId","fromLocation","garageId","toLocation","trackingNumber","type","warehouseId"]},"JobCardData":{"type":"object","properties":{"jobCardId":{"type":"string"},"jobCardDataAttributes":{"type":"array","items":{"$ref":"#/components/schemas/JobCardDataAttributes"}}}},"JobCardDataAttributes":{"type":"object","properties":{"attributesName":{"type":"string"},"attributesDisplayName":{"type":"string"},"childAttributes":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"step":{"type":"string"},"jobClassifier":{"$ref":"#/components/schemas/JobClassifier"}}},"JobCardFile":{"type":"object","properties":{"data":{"type":"string"},"url":{"type":"string"},"thumbnailUrl":{"type":"string"},"filename":{"type":"string"},"mimeType":{"type":"string"}}},"JobClassifier":{"type":"object","properties":{"status":{"type":"string"},"result":{"type":"string"},"description":{"type":"string"},"measuredValue":{"type":"number","format":"double"},"unit":{"type":"string"},"estimatedRepairCostStandard":{"$ref":"#/components/schemas/MoneyValue"},"estimatedRepairCostPlanetFriendly":{"$ref":"#/components/schemas/MoneyValue"},"brand":{"type":"string"},"tireModel":{"type":"string"},"productionWeekYear":{"type":"string"},"tireDimension":{"type":"string"},"tirePatternFrontLeft":{"type":"string"},"tirePatternFrontRight":{"type":"string"},"tirePatternRearLeft":{"type":"string"},"tirePatternRearRight":{"type":"string"},"loadIndex":{"type":"integer","format":"int32"},"speedIndex":{"type":"string"},"loadVersion":{"type":"string"},"winterType":{"type":"string"},"tireFitmentType":{"type":"string"},"brakeDiscThicknessFrontLeft":{"type":"string"},"brakeDiscThicknessFrontRight":{"type":"string"},"brakeDiscThicknessRearRight":{"type":"string"},"brakeDiscThicknessRearLeft":{"type":"string"},"image":{"type":"array","items":{"$ref":"#/components/schemas/JobCardFile"}},"file":{"type":"array","items":{"$ref":"#/components/schemas/JobCardFile"}},"multiSelectValues":{"type":"array","items":{"type":"string"}}}},"MoneyValue":{"type":"object","description":"Represents a monetary value with its currency","properties":{"amount":{"type":"number","description":"The monetary amount","example":99.99},"currency":{"type":"string","description":"The ISO 4217 currency code","example":"NOK"}}},"UpdateServiceRequest":{"type":"object","properties":{"deletedImage":{"type":"array","items":{"type":"string"}},"deletedFile":{"type":"array","items":{"type":"string"}},"jobCardData":{"type":"array","items":{"$ref":"#/components/schemas/JobCardData"}},"serviceRecordUrl":{"type":"string"},"calculationType":{"type":"string","enum":["BATTERY","HEATER","ALL"]}}},"LoopFitment":{"type":"object","properties":{"make":{"type":"string"},"model":{"type":"string"},"variants":{"type":"array","items":{"type":"string"}}}},"LoopSourceVehicle":{"type":"object","properties":{"countryCode":{"type":"string"},"vin":{"type":"string"},"regNumber":{"type":"string"},"brand":{"type":"string"},"model":{"type":"string"},"color":{"type":"string"},"image":{"type":"string"},"variant":{"$ref":"#/components/schemas/VariantResponse"},"manufacturedDate":{"type":"integer","format":"int64"}}},"MakeResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"},"reportTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ModelResponse":{"type":"object","properties":{"id":{"type":"string"},"makeId":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"},"reportTypes":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"make":{"$ref":"#/components/schemas/MakeResponse"}}},"PartRegistrationUpdateRequest":{"type":"object","properties":{"partName":{"type":"string","minLength":1},"categoryId":{"type":"string"},"storageUnitId":{"type":"string"},"returnType":{"type":"string"},"partNumber":{"type":"string"},"serialNumber":{"type":"string"},"evHubSerialNumber":{"type":"string"},"weight":{"$ref":"#/components/schemas/Unit"},"sourceVehicle":{"$ref":"#/components/schemas/LoopSourceVehicle"},"fitments":{"type":"array","items":{"$ref":"#/components/schemas/LoopFitment"}},"co2ImpactKg":{"$ref":"#/components/schemas/Unit"},"kmAvoided":{"$ref":"#/components/schemas/Unit"},"rewardAmount":{"$ref":"#/components/schemas/MoneyValue"}},"required":["partName"]},"VariantAttributes":{"type":"object","properties":{"drivetrain":{"type":"string"},"range":{"$ref":"#/components/schemas/Unit"},"maxSpeed":{"$ref":"#/components/schemas/Unit"},"warrantyPeriod":{"$ref":"#/components/schemas/Unit"},"warrantyMileage":{"$ref":"#/components/schemas/Unit"}}},"VariantResponse":{"type":"object","properties":{"id":{"type":"string"},"modelId":{"type":"string"},"name":{"type":"string"},"state":{"type":"string"},"dateFrom":{"type":"string","format":"date-time"},"dateTo":{"type":"string","format":"date-time"},"reportTypes":{"type":"array","items":{"type":"string"}},"attributes":{"$ref":"#/components/schemas/VariantAttributes"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"model":{"$ref":"#/components/schemas/ModelResponse"}}},"PartCategoryRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"parentId":{"$ref":"#/components/schemas/ObjectId"}},"required":["name"]},"OwnerRequest":{"type":"object","properties":{"name":{"type":"string","maxLength":100,"minLength":0},"location":{"type":"string","minLength":1},"logo":{"type":"string"}},"required":["location","name"]},"NotificationUpdateRequest":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"state":{"type":"string"}}},"LoopReportScheduleRequest":{"type":"object","properties":{"name":{"type":"string"},"enabled":{"type":"boolean"},"frequency":{"type":"string"},"dayOfWeek":{"type":"string"},"dayOfMonth":{"type":"string"},"time":{"type":"string","minLength":1},"reportingPeriod":{"type":"string"},"customFrom":{"type":"integer","format":"int64"},"customTo":{"type":"integer","format":"int64"},"recipientIds":{"type":"array","items":{"type":"string"},"minItems":1}},"required":["frequency","recipientIds","reportingPeriod","time"]},"LoopReportRecipientRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"email":{"type":"string","minLength":1}},"required":["email","name"]},"ImpactFactorRequest":{"type":"object","properties":{"category":{"type":"string","minLength":1},"weightMinKg":{"type":"number","format":"double"},"weightMaxKg":{"type":"number","format":"double"},"co2ImpactKg":{"type":"number","format":"double"},"rewardAmount":{"type":"number","format":"double"},"version":{"type":"integer","format":"int32"},"active":{"type":"boolean"}},"required":["category"]},"LoopRewardRequest":{"type":"object","properties":{"reward":{"$ref":"#/components/schemas/MoneyValue"}},"required":["reward"]},"LoopGarageUpdateRequest":{"type":"object","properties":{"currency":{"type":"string"},"address":{"type":"string"},"email":{"type":"string","pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"},"directShipping":{"type":"boolean"}}},"GarageCarrierAssignRequest":{"type":"object","properties":{"warehouseId":{"$ref":"#/components/schemas/ObjectId"},"carrierIds":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}}},"required":["warehouseId"]},"LoopGarageCategoryRewardOverrideRequest":{"type":"object","properties":{"loopRewardId":{"$ref":"#/components/schemas/ObjectId"}},"required":["loopRewardId"]},"LoopCategoryDefaultRewardRequest":{"type":"object","properties":{"categoryId":{"$ref":"#/components/schemas/ObjectId"},"currency":{"type":"string","minLength":1},"loopRewardId":{"$ref":"#/components/schemas/ObjectId"}},"required":["categoryId","currency","loopRewardId"]},"CurrencyRewardItem":{"type":"object","properties":{"currency":{"type":"string"},"loopRewardId":{"$ref":"#/components/schemas/ObjectId"}},"required":["currency"]},"LoopCategoryDefaultRewardsByCategoryRequest":{"type":"object","properties":{"rewards":{"type":"array","items":{"$ref":"#/components/schemas/CurrencyRewardItem"},"minItems":1}},"required":["rewards"]},"GarageRequest":{"type":"object","properties":{"chainId":{"type":"string"},"name":{"type":"string","maxLength":100,"minLength":0},"address":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string","pattern":"^$|^[0-9]{7,15}$"},"logo":{"type":"string"},"website":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"}},"required":["chainId","name"]},"DeleteRequestUpdateRequest":{"type":"object","properties":{"state":{"type":"string"},"viewed":{"type":"array","items":{"type":"string"}}}},"BrandProperties":{"type":"object","properties":{"portrait":{"$ref":"#/components/schemas/ColorProperties"},"landscape":{"$ref":"#/components/schemas/ColorProperties"}}},"ChainConfig":{"type":"object","properties":{"logo":{"$ref":"#/components/schemas/Logo"},"repairOptions":{"$ref":"#/components/schemas/RepairOptions"},"sectionHeaders":{"$ref":"#/components/schemas/SectionHeaders"},"brand":{"$ref":"#/components/schemas/BrandProperties"},"statusColors":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ColorProperties"}},"termsAndConditions":{"$ref":"#/components/schemas/TermsAndConditions"},"enablePoweredBy":{"type":"boolean"},"enableTirePriceEstimates":{"type":"boolean"},"units":{"$ref":"#/components/schemas/Units"},"buttonColor":{"type":"string"},"titleTextColor":{"type":"string"},"currency":{"type":"string"},"averageVehicleCost":{"$ref":"#/components/schemas/MoneyValue"}}},"ChainPricingConfig":{"type":"object","properties":{"country":{"type":"string"},"currency":{"type":"string"},"vat":{"type":"number"},"markup":{"type":"number"},"bookingUrl":{"type":"string"},"bookingPartnerName":{"type":"string"},"fittingFeePerWheel":{"$ref":"#/components/schemas/MoneyValue"},"disposalFeePerWheel":{"$ref":"#/components/schemas/MoneyValue"},"balancingFeePerWheel":{"$ref":"#/components/schemas/MoneyValue"},"estimatedTimePerWheel":{"type":"object","properties":{"unit":{"type":"object","properties":{"dimension":{"type":"object","properties":{"baseDimensions":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}},"name":{"type":"string"},"symbol":{"type":"string"},"baseUnits":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}},"value":{"type":"number"},"scale":{"type":"string","enum":["ABSOLUTE","RELATIVE"]}}}}},"ChainRequest":{"type":"object","properties":{"ownerId":{"type":"string"},"name":{"type":"string","maxLength":100,"minLength":0},"description":{"type":"string","minLength":1},"location":{"type":"string","minLength":1},"logo":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"},"config":{"$ref":"#/components/schemas/ChainConfig"},"logoImage":{"type":"string"},"standardImage":{"type":"string"},"planetFriendlyImage":{"type":"string"},"currency":{"type":"string"},"pricingConfig":{"$ref":"#/components/schemas/ChainPricingConfig"}},"required":["description","location","name","ownerId"]},"ColorProperties":{"type":"object","properties":{"backgroundColor":{"type":"string"},"textColor":{"type":"string"}}},"Logo":{"type":"object","properties":{"image":{"type":"string"},"imageType":{"type":"string"},"backGroundColor":{"type":"string"}}},"Option":{"type":"object","properties":{"backgroundImage":{"type":"string"},"highlightColor":{"type":"string"},"textColor":{"type":"string"}}},"RepairOptions":{"type":"object","properties":{"standard":{"$ref":"#/components/schemas/Option"},"planetFriendly":{"$ref":"#/components/schemas/Option"}}},"Section":{"type":"object","properties":{"header":{"type":"string"},"description":{"type":"string"}}},"SectionHeaders":{"type":"object","properties":{"backgroundColor":{"type":"string"},"headingTextColor":{"type":"string"},"textColor":{"type":"string"},"arrowColor":{"type":"string"}}},"TermsAndConditions":{"type":"object","properties":{"headingColor":{"type":"string"},"sections":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Section"}}}}},"Units":{"type":"object","properties":{"fromUnit":{"type":"string"},"toUnit":{"type":"string"}}},"ChainResponse":{"type":"object","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"location":{"type":"string"},"logo":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"},"config":{"$ref":"#/components/schemas/ChainConfig"},"pricingConfig":{"$ref":"#/components/schemas/ChainPricingConfig"}}},"RestResponseChainResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ChainResponse"}}},"CategoryRequest":{"type":"object","properties":{"parentId":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string","maxLength":100,"minLength":1},"description":{"type":"string","maxLength":500,"minLength":0},"image":{"type":"string"}},"required":["name"]},"CaseRequest":{"type":"object","properties":{"variantId":{"$ref":"#/components/schemas/ObjectId"},"vehicle":{"$ref":"#/components/schemas/CaseVehicle"},"userId":{"$ref":"#/components/schemas/ObjectId"},"kilometer":{"$ref":"#/components/schemas/Unit"},"faultCodes":{"type":"array","items":{"type":"string"}},"garageId":{"$ref":"#/components/schemas/ObjectId"},"articleId":{"$ref":"#/components/schemas/ObjectId"},"status":{"type":"string","enum":["draft","submitted","published"]},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"}},"required":["userId"]},"CaseVehicle":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"brand":{"type":"string"},"model":{"type":"string"},"year":{"type":"integer","format":"int64"}}},"Issue":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"description":{"type":"string","maxLength":2000,"minLength":1},"mediaFiles":{"type":"array","items":{"type":"string"}},"voiceFiles":{"type":"array","items":{"type":"string"}},"categoryIds":{"type":"array","items":{"$ref":"#/components/schemas/ObjectId"}},"troubleshoot":{"$ref":"#/components/schemas/Troubleshoot"},"solution":{"$ref":"#/components/schemas/Solution"},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"}},"required":["categoryIds","description","solution","troubleshoot"]},"Solution":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"description":{"type":"string","maxLength":2000,"minLength":1},"mediaFiles":{"type":"array","items":{"type":"string"}},"voiceFiles":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["draft","fixed","not fixed","referred"]},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"}},"required":["description","status"]},"Troubleshoot":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"description":{"type":"string","maxLength":2000,"minLength":1},"tags":{"type":"array","items":{"type":"string"}},"mediaFiles":{"type":"array","items":{"type":"string"}},"voiceFiles":{"type":"array","items":{"type":"string"}},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"}},"required":["description"]},"CarrierRequest":{"type":"object","properties":{"carrierProviderId":{"$ref":"#/components/schemas/ObjectId"},"name":{"type":"string","minLength":1},"logo":{"type":"string"}},"required":["carrierProviderId","name"]},"CarrierProviderRequest":{"type":"object","properties":{"code":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"location":{"type":"string","minLength":1},"isActive":{"type":"boolean"}},"required":["code","location","name"]},"ActivityLogRequest":{"type":"object","properties":{"type":{"type":"string","minLength":1},"userId":{"type":"string","minLength":1},"deleteRequestId":{"type":"string","minLength":1},"description":{"type":"string"},"serviceNumber":{"type":"string"},"regNumber":{"type":"string"},"garageId":{"type":"string"},"vin":{"type":"string"},"createdOn":{"type":"integer","format":"int64"}},"required":["deleteRequestId","type","userId"]},"LoopVehicleRegistryRequest":{"type":"object","properties":{"token":{"type":"string","minLength":1},"countryCode":{"type":"string","minLength":1},"vin":{"type":"string"},"regNumber":{"type":"string"}},"required":["countryCode","token"]},"StorageUnitFullRequest":{"type":"object","properties":{"storageUnitId":{"$ref":"#/components/schemas/ObjectId"},"garageId":{"$ref":"#/components/schemas/ObjectId"},"storageUnitPhoto":{"type":"string"},"redirectBaseUrl":{"type":"string","minLength":1}},"required":["garageId","redirectBaseUrl","storageUnitId"]},"LoopPartRegistrationRequest":{"type":"object","properties":{"token":{"type":"string","minLength":1},"scanSource":{"type":"string","minLength":1,"pattern":"(?i)^(QR|LINK)$"},"categoryId":{"$ref":"#/components/schemas/ObjectId"},"partName":{"type":"string","minLength":1},"returnType":{"type":"string","minLength":1},"partNumber":{"type":"string"},"serialNumber":{"type":"string"},"evHubSerialNumber":{"type":"string"},"sourceVehicle":{"$ref":"#/components/schemas/LoopSourceVehicle"},"fitments":{"type":"array","items":{"$ref":"#/components/schemas/LoopFitment"}},"prefillAnalysisId":{"type":"string"},"partPhotos":{"type":"array","items":{"type":"string"},"maxItems":3,"minItems":0},"partLabelPhotos":{"type":"array","items":{"type":"string"},"maxItems":3,"minItems":1},"evHubSerialNumberPhoto":{"type":"string"},"carrierId":{"$ref":"#/components/schemas/ObjectId"},"weight":{"$ref":"#/components/schemas/Unit"},"redirectBaseUrl":{"type":"string","minLength":1}},"required":["categoryId","partLabelPhotos","partName","redirectBaseUrl","returnType","scanSource","token"]},"LoopPartRegistrationPrefillRequest":{"type":"object","properties":{"token":{"type":"string","minLength":1},"partPhotos":{"type":"array","items":{"type":"string"},"maxItems":3,"minItems":0},"partLabelPhotos":{"type":"array","items":{"type":"string"},"maxItems":3,"minItems":1},"sourceVehicle":{"$ref":"#/components/schemas/LoopSourceVehicle"}},"required":["partLabelPhotos","token"]},"LoopEvHubSerialExtractRequest":{"type":"object","properties":{"token":{"type":"string","minLength":1},"evHubSerialPhoto":{"type":"string","minLength":1}},"required":["evHubSerialPhoto","token"]},"Vehicle":{"type":"object","properties":{"id":{"$ref":"#/components/schemas/ObjectId"},"vin":{"type":"string"},"variantId":{"$ref":"#/components/schemas/ObjectId"},"regNumber":{"type":"string"},"brand":{"type":"string"},"kilometer":{"$ref":"#/components/schemas/Unit"},"registrationDate":{"type":"integer","format":"int64"},"firstRegisteredOn":{"type":"integer","format":"int64"},"firstRegisteredInNorway":{"type":"integer","format":"int64"},"manufacturedDate":{"type":"integer","format":"int64"},"importedUsed":{"type":"string"},"importedCountry":{"type":"string"},"model":{"type":"string"},"manufacturer":{"type":"string"},"servicingStatus":{"type":"integer","format":"int32"},"timestamp":{"type":"integer","format":"int64"},"price":{"type":"number","format":"double"},"lastServiceOn":{"type":"integer","format":"int64"},"latestServiceTime":{"type":"integer","format":"int64"},"carGroup":{"type":"string"},"color":{"type":"string"},"maximumSpeed":{"type":"integer","format":"int32"},"carWeight":{"type":"integer","format":"int32"},"totalAllowedWeight":{"type":"integer","format":"int32"},"totalSeats":{"type":"integer","format":"int32"},"engineCount":{"type":"integer","format":"int32"},"nextMandatoryInspection":{"type":"integer","format":"int64"},"electricRange":{"$ref":"#/components/schemas/Unit"},"engineVolume":{"type":"integer","format":"int32"},"drivetrain":{"type":"string","enum":["AWD","FWD","RWD","UNKNOWN"]},"personalizedNumber":{"type":"string"},"image":{"type":"string"},"disclaimer":{"type":"string"},"hybridCategory":{"type":"string"},"fuelType":{"type":"string"},"enginePowers":{"type":"object","additionalProperties":{"type":"number","format":"double"}},"mechanicName":{"type":"string"},"countryCode":{"type":"string"},"canMessageFiles":{"type":"array","items":{"type":"string"}},"logFiles":{"type":"array","items":{"type":"string"}}},"required":["vin"]},"VehicleCreateRequest":{"type":"object","properties":{"userId":{"$ref":"#/components/schemas/ObjectId"},"garageId":{"$ref":"#/components/schemas/ObjectId"},"vehicle":{"$ref":"#/components/schemas/Vehicle"}},"required":["garageId","vehicle"]},"CursorPageRequest":{"type":"object","properties":{"cursor":{"type":"string"},"limit":{"type":"integer","format":"int32"}}},"FilterRequest":{"type":"object","properties":{"brands":{"type":"array","items":{"type":"string"}},"models":{"type":"array","items":{"type":"string"}},"garages":{"type":"array","items":{"type":"string"}},"engineCount":{"type":"array","items":{"type":"integer","format":"int32"}},"timeFrame":{"type":"object","additionalProperties":{},"properties":{"empty":{"type":"boolean"}}},"reportType":{"type":"string"}}},"SearchFilterRequest":{"type":"object","properties":{"cursorPageRequest":{"$ref":"#/components/schemas/CursorPageRequest"},"search":{"type":"string"},"filterRequest":{"$ref":"#/components/schemas/FilterRequest"}}},"VehicleIdentifierScanRequest":{"type":"object","properties":{"type":{"type":"string","enum":["VIN","PLATE"]},"image":{"type":"string","minLength":1},"countryCode":{"type":"string","maxLength":2,"minLength":0}},"required":["image","type"]},"VehicleRegistryRequest":{"type":"object","properties":{"countryCode":{"type":"string"},"vin":{"type":"string"},"regNumber":{"type":"string"},"personalizedNumber":{"type":"string"},"skipVehicleRegistry":{"type":"boolean"},"skipVehicleDb":{"type":"boolean"}}},"VehiclePartRequest":{"type":"object","properties":{"vehicleId":{"$ref":"#/components/schemas/ObjectId"},"partId":{"$ref":"#/components/schemas/ObjectId"},"autoMatched":{"type":"boolean"},"isAutoMatched":{"type":"boolean"}}},"VariantMatchRequest":{"type":"object","properties":{"brand":{"type":"string"},"model":{"type":"string"},"firstRegisteredOn":{"type":"integer","format":"int64"},"electricRange":{"$ref":"#/components/schemas/Unit"},"drivetrain":{"type":"string","enum":["AWD","FWD","RWD","UNKNOWN"]},"maximumSpeed":{"type":"integer","format":"int32"}}},"StorageUnitCreateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1},"type":{"type":"string","minLength":1},"weight":{"$ref":"#/components/schemas/Unit"}},"required":["name","type"]},"ServiceRecordRequest":{"type":"object","properties":{"userId":{"$ref":"#/components/schemas/ObjectId"},"garageId":{"$ref":"#/components/schemas/ObjectId"},"vehicleId":{"$ref":"#/components/schemas/ObjectId"},"serviceNumber":{"type":"string"},"serviceStartTime":{"type":"integer","format":"int64"},"serviceEndTime":{"type":"integer","format":"int64"},"lastUpdated":{"type":"integer","format":"int64"},"jobCardData":{"type":"array","items":{"$ref":"#/components/schemas/JobCardData"}},"canData":{"type":"array","items":{}},"servicingStatus":{"type":"integer","format":"int32"},"reportType":{"type":"string"}},"required":["garageId","userId","vehicleId"]},"TireImageExtractionRequest":{"type":"object","properties":{"jobCardId":{"type":"string","maxLength":200,"minLength":0},"section":{"type":"string","minLength":1,"pattern":"summerTire|winterTire"},"imageUrls":{"type":"array","items":{"type":"string","maxLength":2048,"minLength":0},"maxItems":6,"minItems":0}},"required":["imageUrls","jobCardId","section"]},"TireEstimateRequest":{"type":"object","properties":{"section":{"type":"string","minLength":1},"jobCardId":{"type":"string","minLength":1},"wheelsToReplace":{"type":"array","items":{"type":"string","enum":["FL","FR","RL","RR"]}},"priceOverrides":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/MoneyValue"}},"manualOverrideReason":{"type":"string"}},"required":["jobCardId","section","wheelsToReplace"]},"PdfShareRequest":{"type":"object","properties":{"shareUrl":{"type":"string"},"languageCode":{"type":"string"},"toEmail":{"type":"string"},"toPhoneNumber":{"type":"string"},"serviceNumber":{"type":"string","minLength":1}},"required":["serviceNumber"]},"PartRegistrationFilterRequest":{"type":"object","properties":{"cursorPageRequest":{"$ref":"#/components/schemas/CursorPageRequest"},"garageId":{"$ref":"#/components/schemas/ObjectId"},"storageUnitId":{"$ref":"#/components/schemas/ObjectId"},"directShippingOnly":{"type":"boolean"},"status":{"type":"string"},"category":{"type":"string"},"returnType":{"type":"string"},"createdFrom":{"type":"integer","format":"int64"},"createdTo":{"type":"integer","format":"int64"},"search":{"type":"string"}}},"LoopReportSendRequest":{"type":"object","properties":{"cursorPageRequest":{"$ref":"#/components/schemas/CursorPageRequest"},"garageId":{"$ref":"#/components/schemas/ObjectId"},"storageUnitId":{"$ref":"#/components/schemas/ObjectId"},"directShippingOnly":{"type":"boolean"},"status":{"type":"string"},"category":{"type":"string"},"returnType":{"type":"string"},"createdFrom":{"type":"integer","format":"int64"},"createdTo":{"type":"integer","format":"int64"},"search":{"type":"string"},"recipientIds":{"type":"array","items":{"type":"string"}},"reportingPeriod":{"type":"string"},"customFrom":{"type":"integer","format":"int64"},"customTo":{"type":"integer","format":"int64"}}},"LoopGarageEnrollRequest":{"type":"object","properties":{"garageId":{"$ref":"#/components/schemas/ObjectId"},"currency":{"type":"string","minLength":1},"address":{"type":"string"},"email":{"type":"string","minLength":1,"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"}},"required":["currency","email","garageId"]},"SettlementCreateRequest":{"type":"object","properties":{"comment":{"type":"string","maxLength":250,"minLength":0}}},"LogFileFilterRequest":{"type":"object","properties":{"cursor":{"type":"string"},"limit":{"type":"integer","format":"int32"},"vehicleId":{"$ref":"#/components/schemas/ObjectId"},"serviceRecordId":{"$ref":"#/components/schemas/ObjectId"},"serviceNumber":{"type":"string"},"userId":{"$ref":"#/components/schemas/ObjectId"},"canBusDataId":{"$ref":"#/components/schemas/ObjectId"},"fileType":{"type":"string"},"vin":{"type":"string"},"jobCardKey":{"type":"string"},"deviceId":{"type":"string"},"sessionId":{"type":"string"},"search":{"type":"string"}}},"DeleteRequestCreateRequest":{"type":"object","properties":{"serviceNumber":{"type":"string"},"includeCanBus":{"type":"boolean"},"regNumber":{"type":"string"},"garageId":{"type":"string"},"vin":{"type":"string"},"partName":{"type":"string"},"partNumber":{"type":"string"},"categoryId":{"type":"string"},"type":{"type":"string","minLength":1}},"required":["type"]},"DeleteRequestRejectRequest":{"type":"object","properties":{"rejectionReason":{"type":"string"}}},"CategoryFilterRequest":{"type":"object","properties":{"cursorPageRequest":{"$ref":"#/components/schemas/CursorPageRequest"},"search":{"type":"string"},"parentId":{"$ref":"#/components/schemas/ObjectId"},"includeChildren":{"type":"boolean"}}},"CaseFilterRequest":{"type":"object","properties":{"cursorPageRequest":{"$ref":"#/components/schemas/CursorPageRequest"},"search":{"type":"string"},"variantId":{"$ref":"#/components/schemas/ObjectId"},"vehicleId":{"$ref":"#/components/schemas/ObjectId"},"categoryId":{"$ref":"#/components/schemas/ObjectId"},"status":{"type":"string"},"sortType":{"type":"string"}}},"CanBusDataRequest":{"type":"object","properties":{"vehicleId":{"$ref":"#/components/schemas/ObjectId"},"jobCardKey":{"type":"string"},"status":{"type":"integer","format":"int32"},"brand":{"type":"string"},"serviceNumber":{"type":"string"},"timestamp":{"type":"integer","format":"int64"},"fileName":{"type":"string"},"data":{"type":"object","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/Value"}}}}},"Value":{"type":"object","properties":{"tag":{"type":"string"},"tagName":{"type":"string"},"unit":{"type":"string"},"map":{"type":"string"},"value":{"type":"string"}}},"ChatFeedback":{"type":"object","properties":{"progressiveId":{"type":"integer","format":"int32"},"path":{"type":"string"},"reaction":{"type":"string"},"comment":{"type":"string"}}},"RestResponseVoid":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{}}},"AiAnswer":{},"AiPublicAnswer":{"type":"object","properties":{"answer":{"$ref":"#/components/schemas/AiAnswer"},"lastState":{"type":"string"},"chatId":{"type":"string"},"stateLastProgressiveId":{"type":"object","additionalProperties":{"type":"integer","format":"int32"}}}},"RestResponseAiPublicAnswer":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/AiPublicAnswer"}}},"PartRegistrationStatusRequest":{"type":"object","properties":{"status":{"type":"string","minLength":1}},"required":["status"]},"CountResponseChainResponse":{"type":"object","properties":{"count":{"type":"integer","format":"int64"},"response":{"type":"array","items":{"$ref":"#/components/schemas/ChainResponse"}}}},"RestResponseCountResponseChainResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CountResponseChainResponse"}}},"ChainExpandResponse":{"type":"object","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"location":{"type":"string"},"logo":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"},"config":{"$ref":"#/components/schemas/ChainConfig"},"pricingConfig":{"$ref":"#/components/schemas/ChainPricingConfig"},"garages":{"type":"array","items":{"$ref":"#/components/schemas/GarageResponse"}}}},"GarageResponse":{"type":"object","properties":{"id":{"type":"string"},"chainId":{"type":"string"},"name":{"type":"string"},"address":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"logo":{"type":"string"},"website":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"integer","format":"int64"},"updatedBy":{"type":"string"},"updatedAt":{"type":"integer","format":"int64"},"scanTokenGeneration":{"type":"integer","format":"int32"},"rewardBalanceAmount":{"$ref":"#/components/schemas/MoneyValue"},"loopEnrolled":{"type":"boolean"}}},"RestResponseChainExpandResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/ChainExpandResponse"}}},"ChainSummeryResponse":{"type":"object","properties":{"id":{"type":"string"},"ownerId":{"type":"string"},"name":{"type":"string"},"ownerName":{"type":"string"},"description":{"type":"string"},"location":{"type":"string"},"logo":{"type":"string"},"garageCount":{"type":"integer","format":"int32"},"config":{"$ref":"#/components/schemas/ChainConfig"},"pricingConfig":{"$ref":"#/components/schemas/ChainPricingConfig"},"createdAt":{"type":"integer","format":"int64"},"updatedAt":{"type":"integer","format":"int64"}}},"CursorResponseChainSummeryResponse":{"type":"object","properties":{"response":{"type":"array","items":{"$ref":"#/components/schemas/ChainSummeryResponse"}},"nextCursor":{"type":"string"},"hasMore":{"type":"boolean"}}},"RestResponseCursorResponseChainSummeryResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"$ref":"#/components/schemas/CursorResponseChainSummeryResponse"}}},"ChatDescription":{"type":"object","properties":{"chatId":{"type":"string"},"title":{"type":"string"},"subTitle":{"type":"string"},"vehicle":{"$ref":"#/components/schemas/Vehicle"},"lastUpdateTime":{"type":"integer","format":"int64"},"statesProcessed":{"type":"array","items":{"type":"string"}}}},"RestResponseListChatDescription":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatDescription"}}}},"RestResponseListChatFeedback":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ChatFeedback"}}}}},"securitySchemes":{"JWT":{"type":"apiKey","name":"Authorization","in":"header"}}}}