BannerCreate
The body that creates a banner.
titlerequiredstring- The headline.
descriptionstring | null- The body of the banner, as HTML. Stored as sent.
typestring- How a reader can respond: `dismissible` can be closed, `confirmable` must be confirmed, `always_shown` cannot be closed.One of: dismissible, confirmable, always_shownDefault:
"dismissible" display_fromrequiredstring (date-time)- When the banner starts to show.
display_untilrequiredstring (date-time)- When the banner stops showing. On or after display_from.
background_colourstring | null- The background colour as #rrggbb.
text_colourstring | null- The text colour as #rrggbb.
expandedboolean- Whether the banner opens expanded.Default:
false role_idsinteger[]- The roles of your organisation the banner is for. Omit or send an empty list for every user. An id that is not a role of your organisation returns 422 `exists`.