Introduction
To use the batch config change API, you will have to have a CSV file prepared with the following format:
CSV Format
ChargeStationId;Key;Value;ResetOnAccepted;Retries;Delay
ChargeStation1;OperatorCurrentLimit_2;15;Immediate;1;60
ChargeStation2;OperatorCurrentLimit_2;15;Immediate;1;60
This sets the config item 'OperatorCurrentLimit_2' to the value of 15, with a 60 second delay between retries. Reset on accepted determines whether the changes will take place immediately or when the machine is not being used (possible values: Immediate, OnIdle or empty).
Postman guide
1. Open Postman and add the .csv file to the body of the POST request to the bulk config update endpoint like so:
2. Then you have to put your authorization token in the header ( written as 'Authorization: Token {your token here}' ) like so:
You may also add a description or name to your POST request by adding it to the end of the URL like this: --url 'https://platform-a.greenflux.com/api/1.0/chargestationconfigurations/batch/update?description=TestUpdate'
Make sure you uncheck the content-type header so that this isn't in the final POST request.
3. When ready, click send. A positive response looks like this and should have changed instantly in the EV Portal (if you selected an Immediate ResetOnAccepted value):
{
"timestamp": "2024-10-01T14:37:58Z",
"data": {
"report_id": "ffaf38d1d46e4aceb0f1902f5ca9c709",
"status": "InProgress",
"validation_error": null
},
"status_code": 1000,
"status_message": "Success"
}
