Rates
Update an existing Rate
Updates an existing exchange rate by its ID.
Request
-
Headers:
Authorization: Bearer <token>
-
Path Parameter:
id
(string, required): The unique identifier of the rate to update. Example:3f27a046-314d-457f-b39b-1ec30561353d
-
Body (required):
- Media Type:
application/json
- Media Type:
Fields:
-
buy (integer): Updated buy amount in base currency.
-
sell (integer): Updated sell amount in quote currency.
-
ttl (integer): Updated time-to-live for the rate, in seconds.
Responses
-
201 Created
-
Media Type:
application/json
-
Sample Response:
-
- 404 Not Found
-
Media Type:
application/json
-
Returned if the specified
id
does not exist.
- 422 Unprocessable Entity
-
Media Type:
application/json
-
Returned if the request body contains invalid or missing parameters.