Skip to main content
POST
/
v1
/
contract-pricing
/
rate-cards
/
updateNamedSchedule
Update a rate card's named schedule
curl --request POST \
  --url https://api.metronome.com/v1/contract-pricing/rate-cards/updateNamedSchedule \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "rate_card_id": "d7abd0cd-4ae9-4db7-8676-e986a4ebd8dc",
  "schedule_name": "my-schedule",
  "starting_at": "2022-02-01T00:00:00Z",
  "ending_before": "2022-02-15T00:00:00Z",
  "value": {
    "my_key": "my_value"
  }
}'

Authorizations

Authorization
string
header
required

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

Body

application/json

The rate card, schedule name, date range, and value to set.

rate_card_id
string<uuid>
required

ID of the rate card whose named schedule is to be updated

schedule_name
string
required

The identifier for the schedule to be updated

starting_at
string<date-time>
required
value
any
required

The value to set for the named schedule. The structure of this object is specific to the named schedule.

ending_before
string<date-time>

Response

200

Success

I