Delete Cost Rate Energy Cost

Delete an existing energy cost interval.

Request

  • Method: DELETE

  • Path: /api/dynamic_pricing/cost_rate_energy_cost/{uuid}

Path parameters

Name

Type

Description

uuid

string

UUID of the energy cost interval to delete.

Example request

curl --location --request DELETE \
'https://example.beenergised.cloud/api/dynamic_pricing/cost_rate_energy_cost/<INTERVAL_UUID>' \
--header 'x-api-token: <your_token>'

Response (200)

{
  "status": "ok",
  "message": "Energy cost was successfully deleted."
}

Error responses

  • 404: Energy cost interval not found.

{
  "status": "error",
  "message": "Cost rate interval not found"
}
  • 500: Generic server error.

{
  "status": "error",
  "message": "Internal Server Error"
}