Update Cost Rate Time Cost

Update an existing time-based cost interval by its UUID within the current mandant. The request must include the unit (in minutes) and the new price.

Request

  • Method: PUT

  • Path: /api/dynamic_pricing/cost_rate_time_cost

Body parameters

Mandatory:

Name

Type

Description

uuid

string

UUID of the time cost interval to modify.

unit

integer

The updated duration unit for the cost in minutes.

price

float

The updated cost applied per unit.

Example request

curl --location --request PUT 'https://example.beenergised.cloud/api/dynamic_pricing/cost_rate_time_cost' \
--header 'x-api-token: <your_token>' \
--header 'Content-Type: application/json' \
--data '{
  "uuid": "<INTERVAL_UUID>",
  "unit": 30,
  "price": 1.25
}'

Response (200)

{
  "status": "ok",
  "uuid": "<INTERVAL_UUID>"
}

Error responses

  • 400: Validation error or duplicate interval.

{
  "status": "error",
  "message": "It is not allowed to configure a interval event time twice. Please correct the information!"
}
  • 404: Interval not found.

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

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