Docs
Add Reset Definition
POST /rate-cards/{rateCardId}/reset-definitions
POST
/rate-cards/{rateCardId}/reset-definitionsAdds a clock to a rate card that its rates and minimums can reset on, and returns its id. resetType is ScheduleGap, BlockType (with blockTypeId) or CalendarPeriod (with period Day, Week or Month and periodStartDay); minDuration with durationUnit (Hours, Minutes or Days) gives the minimum gap or block length. A blockTypeId comes from Resources_GetScheduleBlockTypes. Needs the event settings permission.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| rateCardId | uuid | Required |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Optional | |
| resetType | string | Optional | |
| blockTypeId | uuid | Optional | |
| minDuration | number | Optional | |
| durationUnit | string | Optional | |
| period | string | Optional | |
| periodStartDay | string | Optional |