Docs
Add Reset Definition
POST /rate-cards/{rateCardId}/reset-definitions
POST
/rate-cards/{rateCardId}/reset-definitionsRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Organization token | x-Organization-Token | Optional | Run **Authorize Organization** in the Authorization folder. |
Adds a clock to the card. Rates and the card's minimums can reset on it.
Requires
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| rateCardId | Guid | Required | The rate card. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Clock name. |
| resetType | string | Required | `ScheduleGap`, `BlockType` or `CalendarPeriod`. |
| blockTypeId | Guid? | Optional | For `BlockType`: an existing schedule block type. |
| minDuration | decimal? | Optional | Minimum gap or block length. |
| durationUnit | string | Optional | `Hours`, `Minutes` or `Days`. |
| period | string | Optional | `Day`, `Week` or `Month`, for `CalendarPeriod`. |
| periodStartDay | string | Optional | Day the period starts on. |
Response
201 Created with { "id": "<definitionId>" }.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |
| 404 | Rate card or block type not found. |