Docs

Update Modifier

PUT /resourceTypes/{resourceTypeId}/attributes/{resourceAttributeId}/modifiers/{modifierId}

PUT/resourceTypes/{resourceTypeId}/attributes/{resourceAttributeId}/modifiers/{modifierId}

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.

Replaces a modifier's fields.

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

Path Parameters

FieldTypeRequiredDescription
resourceTypeIdGuidRequiredThe resource type.
resourceAttributeIdGuidRequiredAn attribute placed on the type with `pricingRole` `Modifier`.
modifierIdGuidRequiredThe modifier.

Request Body

FieldTypeRequiredDescription
valuestringRequiredThe attribute value the modifier applies to (an option id for Select).
costTypestringRequired`Percent` or `Fixed`.
costAmountdecimalRequiredCost adjustment.
chargeTypestringRequired`Percent` or `Fixed`.
chargeAmountdecimalRequiredCharge adjustment.
applicationstringOptional`PerPeriod` or `OneTime`. Null means `PerPeriod`.

Response

200 OK. No response body.

Error Codes

HTTP StatusDescription
400Invalid arguments.
404Type, attribute or modifier not found.