curl --request PUT \
--url https://us.api.flexprice.io/v1/prices/units/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"metadata": {},
"name": "<string>"
}
'{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "published",
"symbol": "<string>",
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}Update an existing price unit with the provided details. Only name and metadata can be updated.
curl --request PUT \
--url https://us.api.flexprice.io/v1/prices/units/{id} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"metadata": {},
"name": "<string>"
}
'{
"base_currency": "<string>",
"code": "<string>",
"conversion_rate": "<string>",
"created_at": "<string>",
"created_by": "<string>",
"environment_id": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"status": "published",
"symbol": "<string>",
"tenant_id": "<string>",
"updated_at": "<string>",
"updated_by": "<string>"
}Enter your API key in the format x-api-key <api-key>*
Price unit ID
OK