Editorial plan
The publication rules of one website: on which days and at what times posts go out, and how far ahead the calendar is filled. A singleton that always exists; :refill fills the calendar on demand.
Get editorial plan
The publication rules of one website's editorial desk: on which days and at what local times posts go out, how far ahead the calendar is filled, how long before its date a slot becomes a draft, and what that draft inherits. There is one per website and it always exists — a website that has never configured one reads back the defaults, and the first Update is what stores it. What to write about lives in editorial_topics, and when each piece goes out in editorial_slots.
path Parameters
website_idId of the parent website.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get editorial plan › Responses
The resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
enabledWhether the desk is running. While it is false the calendar is not filled, no draft is prepared and nothing wakes up — the plan is kept, not executed.
time_zoneThe IANA zone the schedule's wall-clock times are read in, so "Monday 10:00" stays 10:00 across a daylight-saving change instead of drifting an hour twice a year.
scheduleWhen posts go out, as a list of {"weekday", "time_of_day"} rules. weekday is one of MONDAY…SUNDAY and time_of_day is a local HH:MM. An empty list plans nothing.
planning_horizon_daysHow far ahead the calendar is filled, in days. The window rolls forward on its own, so a plan left alone always has about this much scheduled. Defaults to 30.
draft_lead_daysHow long before its date a slot turns into a draft, in days — the writing time the desk gives itself. Defaults to 3.
target_typeWhat kind of content a slot produces. blog_post is the only kind this platform makes today, and the default; a slot may name a different one of its own.
content_modeWho fills a slot when its date comes near. EMPTY_DRAFT — the default — creates the draft and leaves the writing to a person; other modes are offered by the platform's producers, and a mode this website is not set up for is refused. A slot may override it for one date.
default_category_idsThe blog_categories a fresh draft is filed under when its topic names none of its own.
default_tag_idsThe blog_tags a fresh draft carries when its topic names none of its own.
default_author_idsThe blog_authors a fresh draft is credited to when its topic names no author of its own: one of them, chosen at random for each slot and kept if that slot is drafted again. List one author to credit every such draft to them.
notification_emailsWho the desk writes to about its work, up to 20 addresses. They are stored trimmed and in lower case, without repeats. Left empty, the letters go to the owner of the account.
notification_eventsWhat the desk writes about: TOPICS_PROPOSED — new topics were suggested, ARTICLE_DRAFTED — a draft is ready, ARTICLE_PUBLISHED — an article went live, FAILURE — preparing or publishing an article failed, or the desk is held back. Never set, it is all four. An empty list turns the letters off.
next_tick_timeWhen the desk next looks at this website's calendar. It is the plan's liveness signal: a value in the past on an enabled plan means the schedule stalled and needs waking.
Update editorial plan
Reads the desk's rules. A website that has never configured one gets the defaults back — the desk switched off, UTC, no schedule, a 30-day horizon and 3 days of writing time — rather than a 404: there is exactly one plan per website and it always exists, implicitly.
next_tick_time says when the desk next looks at this calendar. On an enabled plan a value in the past means the schedule has stalled.
path Parameters
website_idId of the parent website.
query Parameters
update_maskComma-separated field paths to merge. A field named here and sent as null is cleared; without the mask a null is dropped (§7, §11).
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Update editorial plan › Request Body
enabledWhether the desk is running. While it is false the calendar is not filled, no draft is prepared and nothing wakes up — the plan is kept, not executed.
time_zoneThe IANA zone the schedule's wall-clock times are read in, so "Monday 10:00" stays 10:00 across a daylight-saving change instead of drifting an hour twice a year.
scheduleWhen posts go out, as a list of {"weekday", "time_of_day"} rules. weekday is one of MONDAY…SUNDAY and time_of_day is a local HH:MM. An empty list plans nothing.
planning_horizon_daysHow far ahead the calendar is filled, in days. The window rolls forward on its own, so a plan left alone always has about this much scheduled. Defaults to 30.
draft_lead_daysHow long before its date a slot turns into a draft, in days — the writing time the desk gives itself. Defaults to 3.
target_typeWhat kind of content a slot produces. blog_post is the only kind this platform makes today, and the default; a slot may name a different one of its own.
content_modeWho fills a slot when its date comes near. EMPTY_DRAFT — the default — creates the draft and leaves the writing to a person; other modes are offered by the platform's producers, and a mode this website is not set up for is refused. A slot may override it for one date.
default_category_idsThe blog_categories a fresh draft is filed under when its topic names none of its own.
default_tag_idsThe blog_tags a fresh draft carries when its topic names none of its own.
default_author_idsThe blog_authors a fresh draft is credited to when its topic names no author of its own: one of them, chosen at random for each slot and kept if that slot is drafted again. List one author to credit every such draft to them.
notification_emailsWho the desk writes to about its work, up to 20 addresses. They are stored trimmed and in lower case, without repeats. Left empty, the letters go to the owner of the account.
notification_eventsWhat the desk writes about: TOPICS_PROPOSED — new topics were suggested, ARTICLE_DRAFTED — a draft is ready, ARTICLE_PUBLISHED — an article went live, FAILURE — preparing or publishing an article failed, or the desk is held back. Never set, it is all four. An empty list turns the letters off.
Update editorial plan › Responses
The updated resource.
nameThe resource name (§5) — the identity of this resource, and the path that addresses it: websites/{website}/cms_pages/{cms_page}. It is the handle to store, not a human label.
create_timeWhen the resource was created (RFC 3339, UTC).
update_timeWhen the resource last changed (RFC 3339, UTC).
etagVersion of the persisted state. Send it back in If-Match on Update or Delete and the write is rejected with ABORTED if anyone else changed the resource meanwhile (§14).
enabledWhether the desk is running. While it is false the calendar is not filled, no draft is prepared and nothing wakes up — the plan is kept, not executed.
time_zoneThe IANA zone the schedule's wall-clock times are read in, so "Monday 10:00" stays 10:00 across a daylight-saving change instead of drifting an hour twice a year.
scheduleWhen posts go out, as a list of {"weekday", "time_of_day"} rules. weekday is one of MONDAY…SUNDAY and time_of_day is a local HH:MM. An empty list plans nothing.
planning_horizon_daysHow far ahead the calendar is filled, in days. The window rolls forward on its own, so a plan left alone always has about this much scheduled. Defaults to 30.
draft_lead_daysHow long before its date a slot turns into a draft, in days — the writing time the desk gives itself. Defaults to 3.
target_typeWhat kind of content a slot produces. blog_post is the only kind this platform makes today, and the default; a slot may name a different one of its own.
content_modeWho fills a slot when its date comes near. EMPTY_DRAFT — the default — creates the draft and leaves the writing to a person; other modes are offered by the platform's producers, and a mode this website is not set up for is refused. A slot may override it for one date.
default_category_idsThe blog_categories a fresh draft is filed under when its topic names none of its own.
default_tag_idsThe blog_tags a fresh draft carries when its topic names none of its own.
default_author_idsThe blog_authors a fresh draft is credited to when its topic names no author of its own: one of them, chosen at random for each slot and kept if that slot is drafted again. List one author to credit every such draft to them.
notification_emailsWho the desk writes to about its work, up to 20 addresses. They are stored trimmed and in lower case, without repeats. Left empty, the letters go to the owner of the account.
notification_eventsWhat the desk writes about: TOPICS_PROPOSED — new topics were suggested, ARTICLE_DRAFTED — a draft is ready, ARTICLE_PUBLISHED — an article went live, FAILURE — preparing or publishing an article failed, or the desk is held back. Never set, it is all four. An empty list turns the letters off.
next_tick_timeWhen the desk next looks at this website's calendar. It is the plan's liveness signal: a value in the past on an enabled plan means the schedule stalled and needs waking.
Refill (editorial plan)
Fills the calendar up to the horizon now, instead of waiting for the desk to get to it. Slots are created on every scheduled moment that has none, taking topics off the backlog in priority order; a moment that already has a slot is left alone, including one that was skipped.
Safe to repeat — running it twice over unchanged data creates nothing. It answers with the plan; what it actually created is in editorial_slots. If the backlog runs dry the calendar is simply left part-filled, which is a state to show rather than an error.
path Parameters
website_idId of the parent website.
Refill (editorial plan) › Request Body optional
Refill (editorial plan) › Responses
The affected resource, or the method’s own response object (§10).