Update Recurring Pricing Config --------------------------------- Update an existing recurring (weekday-based) pricing schedule. The \ schedule is identified by its UUID in the path. The request must include \ the updated name, weekdays, and time range. On success, the response \ returns the updated schedule. **Request** - Method: ``PUT`` - Path: ``/api/dynamic_pricing/recurring_pricing_config/{uuid}`` **Path parameters** .. list-table:: :widths: 20 15 65 :header-rows: 1 * - Name - Type - Description * - uuid - string - UUID of the recurring pricing schedule to update. **Body parameters** Mandatory: .. list-table:: :widths: 25 15 60 :header-rows: 1 * - Name - Type - Description * - name - string - Updated name of the recurring schedule. * - weekday - array of integers - Weekdays the schedule applies to. ``1`` = Monday … ``7`` = Sunday. * - start_time - string - Start time in ``H:i`` format (e.g., ``17:00``). * - end_time - string - End time in ``H:i`` format (e.g., ``23:00``). **Example request** .. code-block:: bash curl --location --request PUT 'https://example.beenergised.cloud/api/dynamic_pricing/recurring_pricing_config/' \ --header 'x-api-token: ' \ --header 'Content-Type: application/json' \ --data '{ "name": "Weekday Evening (updated)", "weekday": [1, 2, 3, 4], "start_time": "17:00", "end_time": "23:00" }' **Response (200)** .. code-block:: json { "status": "success", "data": { "uuid": "", "name": "Weekday Evening (updated)", "configs": [ { "weekday": 1, "start_time": "17:00", "end_time": "23:00" }, { "weekday": 2, "start_time": "17:00", "end_time": "23:00" }, { "weekday": 3, "start_time": "17:00", "end_time": "23:00" }, { "weekday": 4, "start_time": "17:00", "end_time": "23:00" } ] } } **Error responses** - ``404``: Cost rate not found. .. code-block:: json { "status": "error", "message": "Cost rate not found" } - ``400``: Validation error \ (e.g., the cost rate does not use recurring weekday pricing). .. code-block:: json { "status": "error", "message": "" } - ``500``: Generic server error. .. code-block:: json { "status": "error", "message": "Internal Server Error" }