PUT
/
prices
/
units
/
{id}
Update a price unit
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>"
}

Path Parameters

id
string
required

Price unit ID

Body

application/json

Price unit details to update

The body is of type object.

Response

200
application/json

OK

The response is of type object.