Docs

Add Reset Definition

POST /rate-cards/{rateCardId}/reset-definitions

POST/rate-cards/{rateCardId}/reset-definitions

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Organization tokenx-Organization-TokenOptionalRun **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

FieldTypeRequiredDescription
rateCardIdGuidRequiredThe rate card.

Request Body

FieldTypeRequiredDescription
namestringRequiredClock name.
resetTypestringRequired`ScheduleGap`, `BlockType` or `CalendarPeriod`.
blockTypeIdGuid?OptionalFor `BlockType`: an existing schedule block type.
minDurationdecimal?OptionalMinimum gap or block length.
durationUnitstringOptional`Hours`, `Minutes` or `Days`.
periodstringOptional`Day`, `Week` or `Month`, for `CalendarPeriod`.
periodStartDaystringOptionalDay the period starts on.

Response

201 Created with { "id": "<definitionId>" }.

Error Codes

HTTP StatusDescription
400Invalid arguments.
404Rate card or block type not found.