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.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Adds a clock to the card. Rates and the card's minimums can reset on it.

Requires EventSettings permission on the event.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

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.