Docs
Add Modifier
POST /resourceTypes/{resourceTypeId}/attributes/{resourceAttributeId}/modifiers
POST
/resourceTypes/{resourceTypeId}/attributes/{resourceAttributeId}/modifiersRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Adds a price modifier to a placed Modifier attribute. A need or resource whose value matches value has its price adjusted. Modifiers are deleted with their placement.
Event scoping: This endpoint does not include
{eventId} in the URL. The event is determined automatically from your x-Event-Token.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The resource type. |
| resourceAttributeId | Guid | Required | An attribute placed on the type with `pricingRole` `Modifier`. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| value | string | Required | The attribute value the modifier applies to (an option id for Select). |
| costType | string | Required | `Percent` or `Fixed`. |
| costAmount | decimal | Required | Cost adjustment. |
| chargeType | string | Required | `Percent` or `Fixed`. |
| chargeAmount | decimal | Required | Charge adjustment. |
| application | string | Optional | `PerPeriod` or `OneTime`. Null means `PerPeriod`. |
Response
201 Created. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments, or the attribute isn't placed as a Modifier. |
| 404 | Type or attribute not found. |