Retrieve the details of a specific reserve rule.
Reserve rule details.
Bad Request
Unauthorized
{- "id": "rsv_qn4nis4k3ykpzzu7cvtuvhqqga",
- "type": "rolling",
- "valid_from": "2001-01-01T13:33:00.000Z",
- "rolling": {
- "percentage": 10,
- "holding_duration": {
- "weeks": 2
}
}
}Update an upcoming reserve rule. Only reserve rules that have never been active can be updated.
Reserve rule updated successfully.
Unauthorized
Precondition failed. An invalid ETag value was provided in the If-Match header.
Unprocessable entity
Precondition required. The If-Match header is required.
{- "type": "rolling",
- "rolling": {
- "percentage": 10,
- "holding_duration": {
- "weeks": 2
}
}
}{- "id": "rsv_qn4nis4k3ykpzzu7cvtuvhqqga",
- "_links": {
- "self": {
- "href": "string"
}
}
}Create a sub-entity reserve rule.
A JSON payload containing the reserve rule details.
Created
Bad Request
Unauthorized
Invalid data was sent
{- "type": "rolling",
- "valid_from": "2001-01-01T13:33:00.000Z",
- "rolling": {
- "percentage": 10,
- "holding_duration": {
- "weeks": 2
}
}
}{- "id": "rsv_qn4nis4k3ykpzzu7cvtuvhqqga",
- "_links": {
- "self": {
- "href": "string"
}
}
}Fetch all of the reserve rules for a sub-entity.
OK
Bad Request
Unauthorized
{- "data": [
- {
- "id": "rsv_qn4nis4k3ykpzzu7cvtuvhqqga",
- "type": "rolling",
- "valid_from": "2001-01-01T13:33:00.000Z",
- "rolling": {
- "percentage": 10,
- "holding_duration": {
- "weeks": 2
}
}
}, - {
- "id": "rsv_yk7nmh5jypmqzw5kb6kshj2iiy",
- "type": "rolling",
- "valid_from": "2001-02-01T13:33:00.000Z",
- "rolling": {
- "percentage": 15,
- "holding_duration": {
- "weeks": 4
}
}
}
]
}