mandatory parameter type
MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-action-reset.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-action-reset.json
"properties": {
"chargingStationID": {
"$ref": "chargingstation.json#/definitions/id"
+ },
+ "args": {
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "sanitize": "mongo",
+ "enum": ["Soft", "Hard"]
+ }
+ },
+ "required": [
+ "type"
+ ]
}
},
"required": [

MODIFY
src/types/requests/HttpChargingStationRequest.ts
src/types/requests/HttpChargingStationRequest.ts
@@ -149,7 +149,10 @@ export interface HttpChargingStationUpdateFirmwareRequest {
}
export interface HttpChargingStationResetRequest {
- chargingStationID: string
+ chargingStationID: string,
+ args: {
+ type: 'Soft' | 'Hard';
+ }
}
export interface HttpIsAuthorizedRequest {

mandatory parameter type