curl --request PUT \
--url https://api.cloud.flexprice.io/v1/prices/units/{id} \
--header 'Content-Type: application/json' \
--data '{
"conversion_rate": 123,
"name": "<string>",
"precision": 4,
"symbol": "<string>"
}'
{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": 123,
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"precision": 123,
"status": "published",
"symbol": "<string>",
"updated_at": "<string>"
}
Update an existing price unit with the provided details. Only name, symbol, precision, and conversion_rate can be updated. Status changes are not allowed.
curl --request PUT \
--url https://api.cloud.flexprice.io/v1/prices/units/{id} \
--header 'Content-Type: application/json' \
--data '{
"conversion_rate": 123,
"name": "<string>",
"precision": 4,
"symbol": "<string>"
}'
{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": 123,
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"precision": 123,
"status": "published",
"symbol": "<string>",
"updated_at": "<string>"
}
Price unit ID
Price unit details to update
The body is of type object
.
OK
The response is of type object
.