cURL
curl --request PATCH \ --url https://api.salesbricks.com/api/v2/usage \ --header 'Content-Type: application/json' \ --header 'X-SALESBRICKS-KEY: <api-key>' \ --data ' { "transaction_id": "12345", "value": 123, "properties": { "source": "api", "notes": "Updated notes", "region": "US" } } '
{ "message": "Usage entry updated successfully." }
Use this API to update an existing usage entry.
v2/usage
https://api.salesbricks.com/api/v2/usage
Use your Salesbricks API key to authenticate requests.
The unique identifier for this usage entry transaction.
"12345"
The new value to set for the brick.
New or updated properties for the usage entry.
{ "source": "api", "notes": "Updated notes", "region": "US"}
Usage entry updated successfully.
"Usage entry updated successfully."