Docs

Update Rate Card

PUT /rate-cards/{rateCardId}

PUT/rate-cards/{rateCardId}

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.

Updates a card's name, minimums and clock references. A clock must be one of this card's own reset definitions.

Requires ResourceTypeDatabase.Edit permission.

Path Parameters

FieldTypeRequiredDescription
rateCardIdGuidRequiredThe rate card.

Request Body

FieldTypeRequiredDescription
namestringRequiredName.
costMinimumAmountdecimal?OptionalCost money floor per span.
chargeMinimumAmountdecimal?OptionalCharge money floor per span.
costMinimumUnitsdecimal?OptionalCost time floor.
chargeMinimumUnitsdecimal?OptionalCharge time floor.
minimumUnitsPeriodstringOptional`Hour`, `Day`, `Week` or `Month`. `Flat` is not a period.
periodResetDefinitionIdGuid?OptionalClock the card's periods reset on.
minimumAmountResetDefinitionIdGuid?OptionalClock the money floor resets on.
minimumUnitsResetDefinitionIdGuid?OptionalClock the time floor resets on.

On a composite type's card the cost side is rolled up from the components (route 18), so only charge fields apply.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400Invalid arguments, or a clock from another card.
404Rate card not found.