Updates the active rate identified by the given code. The code in the body must match the code in the route. The currency cannot be changed (see UpdateTariffAsync).
PUT/api/rates/:code
This is a full replacement of the rate: the Prices matrix sent in the body replaces the existing one entirely. Omitting it (empty) clears every price; to edit individual cells without touching the rest use PATCH /api/rates/{id}/prices instead.
Request
Responses
- 200
- 400
- 403
- 404
Returns the updated rate
Api Error
Unauthenticated user
No active rate exists with the given code