Editorial topics
The backlog of what a website means to write about. A topic outlives the article it becomes, one turned down stays turned down, and :accept takes in an idea the desk’s AI proposed.
List editorial topics
One item of the backlog: something this website intends to write about. A topic outlives the article it becomes — it records which slot consumed it, and one that was turned down stays turned down instead of resurfacing the next time the calendar is filled. :batch_create adds a whole list in one call, :reject and :restore move it in and out of the backlog, and :accept takes in an idea the desk's AI proposed.
path Parameters
website_idId of the parent website.
query Parameters
page_sizeRows per page. Over the maximum is clamped, not rejected.
page_tokenOpaque token from a previous next_page_token. A token minted under a different order_by/filter is rejected.
skipRows to skip before the page (AIP-158). skip + page_size is capped at 10000; beyond that is OUT_OF_RANGE.
order_byComma-separated field [asc|desc], at most 3 keys. Default: create_time desc. Sortable: create_time, priority, title.
filterAIP-160 subset (§8). Filterable: author_id, category_ids, create_time, keywords, origin, priority, slot_id, status, tag_ids, title. A field outside the list is INVALID_ARGUMENT.
List editorial topics › Responses
One page of editorial_topics.
This page of editorial_topics, in the requested order.
next_page_tokenOpaque. Absent or empty means this was the last page.
total_sizeRows in the whole filtered collection, not in this page.
Create editorial topic
One item of the backlog: something this website intends to write about. A topic outlives the article it becomes — it records which slot consumed it, and one that was turned down stays turned down instead of resurfacing the next time the calendar is filled. :batch_create adds a whole list in one call, :reject and :restore move it in and out of the backlog, and :accept takes in an idea the desk's AI proposed.
path Parameters
website_idId of the parent website.
Create editorial topic › Request Body
titleWhat the article is about, in a line. It becomes the headline of the draft the topic turns into, and the label the calendar shows for its slot.
briefThe editor's note on what the article should say. It is copied into the draft's teaser, so whoever writes the post opens it and finds the assignment already there.
keywordsThe search terms this article is meant to answer — a note to the writer, not something the platform acts on.
category_idsThe blog_categories this topic's draft is filed under. Set, it replaces the plan's defaults outright rather than adding to them.
tag_idsThe blog_tags this topic's draft carries, with the same rule as category_ids: set, it replaces the plan's defaults.
author_idThe blog_authors resource this topic's draft is credited to, instead of the plan's default.
priorityWhich topic is taken next: higher goes first, and equals are taken oldest first. Sort by it inside a status filter — that is the pair an index backs.
Create editorial topic › Responses
The created 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.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
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).
titleWhat the article is about, in a line. It becomes the headline of the draft the topic turns into, and the label the calendar shows for its slot.
briefThe editor's note on what the article should say. It is copied into the draft's teaser, so whoever writes the post opens it and finds the assignment already there.
keywordsThe search terms this article is meant to answer — a note to the writer, not something the platform acts on.
category_idsThe blog_categories this topic's draft is filed under. Set, it replaces the plan's defaults outright rather than adding to them.
tag_idsThe blog_tags this topic's draft carries, with the same rule as category_ids: set, it replaces the plan's defaults.
author_idThe blog_authors resource this topic's draft is credited to, instead of the plan's default.
priorityWhich topic is taken next: higher goes first, and equals are taken oldest first. Sort by it inside a status filter — that is the pair an index backs.
statusWhere the topic stands: PROPOSED while an idea the desk's AI suggested waits for a person, CANDIDATE while it waits in the backlog, PLANNED once a slot holds it, USED once that slot's post is live, REJECTED if it was turned down. Moved by :accept, :reject, :restore and by the desk itself, never by writing this field.
slot_idThe editorial_slots resource holding this topic while it is PLANNED or USED. Empty while it is still in the backlog.
originWho put the topic on the list: MANUAL for one a person entered, SUGGESTED for one a TOPICS run of editorial_generations proposed.
generation_idThe editorial_generations run that proposed this topic. Absent on a topic a person entered. Which topics a run proposed is that run's own result.
Get editorial topic
One item of the backlog: something this website intends to write about. A topic outlives the article it becomes — it records which slot consumed it, and one that was turned down stays turned down instead of resurfacing the next time the calendar is filled. :batch_create adds a whole list in one call, :reject and :restore move it in and out of the backlog, and :accept takes in an idea the desk's AI proposed.
path Parameters
website_idId of the parent website.
editorial_topic_idId of the parent editorial_topic.
Headers
If-None-MatchA matching etag answers 304 with no body (§16).
Get editorial topic › 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.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
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).
titleWhat the article is about, in a line. It becomes the headline of the draft the topic turns into, and the label the calendar shows for its slot.
briefThe editor's note on what the article should say. It is copied into the draft's teaser, so whoever writes the post opens it and finds the assignment already there.
keywordsThe search terms this article is meant to answer — a note to the writer, not something the platform acts on.
category_idsThe blog_categories this topic's draft is filed under. Set, it replaces the plan's defaults outright rather than adding to them.
tag_idsThe blog_tags this topic's draft carries, with the same rule as category_ids: set, it replaces the plan's defaults.
author_idThe blog_authors resource this topic's draft is credited to, instead of the plan's default.
priorityWhich topic is taken next: higher goes first, and equals are taken oldest first. Sort by it inside a status filter — that is the pair an index backs.
statusWhere the topic stands: PROPOSED while an idea the desk's AI suggested waits for a person, CANDIDATE while it waits in the backlog, PLANNED once a slot holds it, USED once that slot's post is live, REJECTED if it was turned down. Moved by :accept, :reject, :restore and by the desk itself, never by writing this field.
slot_idThe editorial_slots resource holding this topic while it is PLANNED or USED. Empty while it is still in the backlog.
originWho put the topic on the list: MANUAL for one a person entered, SUGGESTED for one a TOPICS run of editorial_generations proposed.
generation_idThe editorial_generations run that proposed this topic. Absent on a topic a person entered. Which topics a run proposed is that run's own result.
Delete editorial topic
Removes a topic from the backlog for good. A topic a calendar slot is holding cannot be deleted — skip that slot first, which returns the topic to the backlog. Nothing cascades in either direction: deleting a topic never removes a slot, and deleting a slot never removes a topic. To take an idea off the list while keeping the record of it, use :reject.
path Parameters
website_idId of the parent website.
editorial_topic_idId of the parent editorial_topic.
Headers
If-MatchThe etag the client last read. A mismatch is ABORTED (409) with the current resource in the error details (§14).
Delete editorial topic › Responses
Deleted. No body (§7).
Update editorial topic
One item of the backlog: something this website intends to write about. A topic outlives the article it becomes — it records which slot consumed it, and one that was turned down stays turned down instead of resurfacing the next time the calendar is filled. :batch_create adds a whole list in one call, :reject and :restore move it in and out of the backlog, and :accept takes in an idea the desk's AI proposed.
path Parameters
website_idId of the parent website.
editorial_topic_idId of the parent editorial_topic.
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 topic › Request Body
titleWhat the article is about, in a line. It becomes the headline of the draft the topic turns into, and the label the calendar shows for its slot.
briefThe editor's note on what the article should say. It is copied into the draft's teaser, so whoever writes the post opens it and finds the assignment already there.
keywordsThe search terms this article is meant to answer — a note to the writer, not something the platform acts on.
category_idsThe blog_categories this topic's draft is filed under. Set, it replaces the plan's defaults outright rather than adding to them.
tag_idsThe blog_tags this topic's draft carries, with the same rule as category_ids: set, it replaces the plan's defaults.
author_idThe blog_authors resource this topic's draft is credited to, instead of the plan's default.
priorityWhich topic is taken next: higher goes first, and equals are taken oldest first. Sort by it inside a status filter — that is the pair an index backs.
Update editorial topic › 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.
idThe last segment of name on its own, for a client that needs to build a child URL. Unique inside its parent, never across the platform.
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).
titleWhat the article is about, in a line. It becomes the headline of the draft the topic turns into, and the label the calendar shows for its slot.
briefThe editor's note on what the article should say. It is copied into the draft's teaser, so whoever writes the post opens it and finds the assignment already there.
keywordsThe search terms this article is meant to answer — a note to the writer, not something the platform acts on.
category_idsThe blog_categories this topic's draft is filed under. Set, it replaces the plan's defaults outright rather than adding to them.
tag_idsThe blog_tags this topic's draft carries, with the same rule as category_ids: set, it replaces the plan's defaults.
author_idThe blog_authors resource this topic's draft is credited to, instead of the plan's default.
priorityWhich topic is taken next: higher goes first, and equals are taken oldest first. Sort by it inside a status filter — that is the pair an index backs.
statusWhere the topic stands: PROPOSED while an idea the desk's AI suggested waits for a person, CANDIDATE while it waits in the backlog, PLANNED once a slot holds it, USED once that slot's post is live, REJECTED if it was turned down. Moved by :accept, :reject, :restore and by the desk itself, never by writing this field.
slot_idThe editorial_slots resource holding this topic while it is PLANNED or USED. Empty while it is still in the backlog.
originWho put the topic on the list: MANUAL for one a person entered, SUGGESTED for one a TOPICS run of editorial_generations proposed.
generation_idThe editorial_generations run that proposed this topic. Absent on a topic a person entered. Which topics a run proposed is that run's own result.
Accept (editorial topic)
Takes a topic the desk's AI proposed into the backlog, where the calendar can plan it. A proposed topic sits outside the calendar until somebody accepts it — that is the whole point of the approval step — and :reject is the other answer. Accepting a topic that is already a candidate is not an error; anything else answers FAILED_PRECONDITION.
path Parameters
website_idId of the parent website.
editorial_topic_idId of the parent editorial_topic.
Accept (editorial topic) › Request Body optional
Accept (editorial topic) › Responses
The affected resource, or the method’s own response object (§10).
Reject (editorial topic)
Turns a topic down: it stays on record but stops being offered when the calendar is filled. This is the point of keeping the backlog separate from the articles — a rejected idea does not resurface next month because nobody remembered rejecting it.
Only a topic still waiting in the backlog can be rejected; if a slot is already holding it, skip that slot first. Rejecting an already rejected topic is not an error.
path Parameters
website_idId of the parent website.
editorial_topic_idId of the parent editorial_topic.
Reject (editorial topic) › Request Body optional
Reject (editorial topic) › Responses
The affected resource, or the method’s own response object (§10).
Restore (editorial topic)
Puts a rejected topic back in the backlog, where the calendar can pick it up again. The counterpart of :reject, and only valid on a topic that was rejected.
path Parameters
website_idId of the parent website.
editorial_topic_idId of the parent editorial_topic.
Restore (editorial topic) › Request Body optional
Restore (editorial topic) › Responses
The affected resource, or the method’s own response object (§10).
Batch create (editorial topics)
Adds a whole list of topics in one call — the shape a «one idea per line» box in an editor should send instead of a burst of single Creates. Send them under editorial_topics, exactly as each would be sent on its own.
Atomic: if any entry is rejected, nothing is written. Every topic arrives in the backlog as a candidate, in the order given.
path Parameters
website_idId of the parent website.
Batch create (editorial topics) › Request Body optional
Batch create (editorial topics) › Responses
The affected resource, or the method’s own response object (§10).