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: .. list-table:: :widths: 25 15 60 :header-rows: 1 * - 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** .. code-block:: bash curl --location --request PUT 'https://example.beenergised.cloud/api/dynamic_pricing/cost_rate_time_cost' \ --header 'x-api-token: ' \ --header 'Content-Type: application/json' \ --data '{ "uuid": "", "unit": 30, "price": 1.25 }' **Response (200)** .. code-block:: json { "status": "ok", "uuid": "" } **Error responses** - ``400``: Validation error or duplicate interval. .. code-block:: json { "status": "error", "message": "It is not allowed to configure a interval event time twice. Please correct the information!" } - ``404``: Interval not found. .. code-block:: json { "status": "error", "message": "Cost rate interval not found" } - ``500``: Generic server error. .. code-block:: json { "status": "error", "message": "Internal Server Error" }