Edit Commit
Edit a commit
Edit a customer or contract commit. Contract commits can only be edited using this endpoint if contract editing is enabled.
Parameters
ID of the commit to edit
ID of the customer whose commit is being edited
Which products the commit applies to. If applicable_product_ids, applicable_product_tags or specifiers are not provided, the commit applies to all products.
ID of contract to use for invoicing
If multiple commits are applicable, the one with the lower priority will apply first.
List of filters that determine what kind of customer usage draws down a commit or credit. A customer's usage needs to meet the condition of at least one of the specifiers to contribute to a commit's or credit's drawdown. This field cannot be used together with applicable_product_ids or applicable_product_tags. Instead, to target usage by product or product tag, pass those values in the body of specifiers.
Returns
require "metronome_sdk"
metronome = MetronomeSDK::Client.new(bearer_token: "My Bearer Token")
response = metronome.v2.contracts.edit_commit(
commit_id: "5e7e82cf-ccb7-428c-a96f-a8e4f67af822",
customer_id: "4c91c473-fc12-445a-9c38-40421d47023f"
)
puts(response)
{
"data": {
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"
}
}