Docs
Update Modifier
PUT /resourceTypes/{resourceTypeId}/attributes/{resourceAttributeId}/modifiers/{modifierId}
PUT
/resourceTypes/{resourceTypeId}/attributes/{resourceAttributeId}/modifiers/{modifierId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Organization token | x-Organization-Token | Optional | Run **Authorize Organization** in the Authorization folder. |
Replaces a modifier's fields.
Requires
ResourceTypeDatabase.Edit permission.Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | The resource type. |
| resourceAttributeId | Guid | Required | An attribute placed on the type with `pricingRole` `Modifier`. |
| modifierId | Guid | Required | The 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
200 OK. No response body.
Error Codes
| HTTP Status | Description |
|---|---|
| 400 | Invalid arguments. |
| 404 | Type, attribute or modifier not found. |