Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@ paths:
who have already seen it. To end one early, set `ends_on` to today. An announcement never
moves to another place: `scope_type` and `scope_id` are ignored here. System Access users can
change any; anyone else only one for a place where they hold the role now, or 403.

To schedule one of Makerble's own on the next free days (people see at most one Makerble
announcement a day), send `schedule_on_next_free_days: true`.
operationId: updateAnnouncement
security: [{tokenAuth: []}]
requestBody:
Expand Down Expand Up @@ -16119,6 +16122,15 @@ components:
type: string
enum: [draft, scheduled]
description: On create, defaults to `draft`. On update, defaults to the current status.
schedule_on_next_free_days:
type: boolean
description: |
Makerble's own only (422 for an Organisation's, Workspace's or Team's). Schedules the
announcement from the first day, from today, on which no other Makerble announcement starts,
keeping its own length (14 days if it has no dates yet). Any `status`, `starts_on` and `ends_on`
sent are replaced. People see at most one Makerble announcement a day, so this keeps
announcements from queuing behind each other. Use it to schedule a feature's announcement
once the feature is live on production.
Announcement:
type: object
properties:
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4178,7 +4178,7 @@ function buildDocsPage() {
{ code: "403", cls: "response-4xx", desc: "Not one the user may change" },
{ code: "404", cls: "response-4xx", desc: "Not found" },
{ code: "422", cls: "response-4xx", desc: "Validation failed, e.g. 4 name changes" }
], "Same body as create; only the fields sent change. Without <code>status</code>, a draft stays a draft and a scheduled announcement stays scheduled. Editing a live announcement doesn't show it again to people who have already seen it. An announcement never moves to another place, so <code>scope_type</code> and <code>scope_id</code> are ignored.")}
], "Same body as create; only the fields sent change. Without <code>status</code>, a draft stays a draft and a scheduled announcement stays scheduled. Editing a live announcement doesn't show it again to people who have already seen it. An announcement never moves to another place, so <code>scope_type</code> and <code>scope_id</code> are ignored. For one of Makerble's own, send <code>schedule_on_next_free_days: true</code> to schedule it from the first day, from today, on which no other Makerble announcement starts, keeping its own length (14 days if it has no dates yet); any <code>status</code>, <code>starts_on</code> and <code>ends_on</code> sent are replaced. People see at most one Makerble announcement a day, so overlapping ones take turns. For a place's announcement this returns <code>422</code>.")}
</div>
</section>

Expand Down
Loading