YieldRules
Update a YieldRule
Replaces this rule's definition in full.
Only this rule changes. Rules created alongside it are independent copies and are left untouched, and the offering a rule applies to is fixed at creation.
When reductions may start is not part of the rule and cannot be changed here. That window belongs to the offering and is shared by every rule lowering its price, so it is set when a rule is created and changed from the offering.
put/shop/yield-rules/{yieldRule}
Path parameters
yieldRulestring uuid required
The ID of the yield rule.
Request body
Example request
{
"time_from": "12:00",
"time_to": "21:00",
"triggers": {
"practitioner_utilisation": {
"from": 70,
"to": 90
},
"room_occupancy": {
"from": 70,
"to": 90
}
},
"adjustment": {
"value": 15
}
}Response
The yield rule was successfully retrieved
Example response
{
"data": {
"time_from": "12:00",
"time_to": "21:00",
"triggers": {
"practitioner_utilisation": {
"from": 70,
"to": 90
},
"room_occupancy": {
"from": 70,
"to": 90
}
},
"adjustment": {
"value": 15
}
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.