POST
/
v1
/
contracts
/
setUsageFilter
Set a contract usage filter
curl --request POST \
  --url https://api.metronome.com/v1/contracts/setUsageFilter \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "customer_id": "13117714-3f05-48e5-a6e9-a66093f13b4d",
  "contract_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
  "group_key": "business_subscription_id",
  "group_values": [
    "ID-1",
    "ID-2"
  ],
  "starting_at": "2020-01-01T00:00:00.000Z"
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Set usage filter for contract

The body is of type object.

Response

Success