cURL
curl --request PATCH \ --url https://api.example.com/api/admin/billing/resource-configs/{resourceType} \ --header 'Content-Type: application/json' \ --cookie better-auth.session_token= \ --data ' { "ratePerUnit": 1, "currency": "<string>", "description": "<string>", "active": true } '
{ "id": "<string>", "resourceType": "<string>", "billingType": "hourly", "ratePerUnit": 123, "currency": "<string>", "active": true, "createdAt": "<string>", "updatedAt": "<string>", "description": "<string>" }
Updates the rate, currency, description, or active status of a billing resource configuration.
x >= 0
Default Response
hourly
Was this page helpful?