Skip to main content
POST
Preview what a blackout calendar would move

Authorizations

Authorization
string
header
required

Bearer token authentication

Body

application/json
blackout_rules
object[]
required

The proposed blackout calendar, as it would be saved. An empty list previews no rules and counts no moves. The same checks as a settings save apply: a rule's move_to_day may not be blocked by any rule, including a disabled one; a move_to_day above 28 may not have a blocked day from 28 to the day before it; and a rule may not repeat a day.

Maximum array length: 20

Response

Success

The counts sit at the top level of the body, beside status and meta, with no wrapper key.

moves
integer
required

The number of subscriptions the daily sweep would move now under the proposed rules.

Required range: x >= 0
by_day
object
required

The moves per blocked day. A key is the day of the month, "1" to "31". A blocked day that holds no move is left out.

status
enum<integer>
required
Available options:
200
meta
object
required