Pular para o conteúdo principal
PUT
Update a Platform Banner

Autorizações

api_access_token
string
header
obrigatório

Token de um Platform App, gerado pelo super admin. Usado para provisionar contas, usuários, papéis e bots.

Parâmetros de caminho

id
string
obrigatório

The ID of the platform banner

Corpo

application/json
title
string
obrigatório

The title of the banner

Exemplo:

"Maintenance scheduled"

content
string
obrigatório

The content of the banner. Supports markdown: bold, italic, link [blocked]

Exemplo:

"We will have scheduled maintenance on **Friday**. [Check our status page](https://status.example.com)"

banner_type
enum<string>
padrão:info

The type/severity of the banner. feature_announcement opens as a panel with a video over the dashboard instead of the banner bar

Opções disponíveis:
info,
warning,
error,
success,
feature_announcement
active
boolean
padrão:true

Whether the banner is active

starts_at
string<date-time>

When to start showing the banner (null = immediately)

ends_at
string<date-time>

When to stop showing the banner (null = indefinitely)

status_url
string

Optional URL to a status page

video_url
string

Image or video of a feature announcement (required when banner_type is feature_announcement): a YouTube, Vimeo, Loom, Arcade, Bunny, Guidejar or CodePen link, or the link of an image or video file

target_accounts
string[]

List of account IDs (as strings) to show the banner to (empty = all accounts)

target_user_roles
enum<string>
padrão:all_users

Which user roles can see the banner

Opções disponíveis:
all_users,
admin_only

Resposta

Success

id
integer

ID of the platform banner

title
string

The title of the banner

content
string

The raw content of the banner (supports markdown)

formatted_content
string

The HTML formatted content of the banner

banner_type
enum<string>

The type/severity of the banner. feature_announcement opens as a panel with a video over the dashboard instead of the banner bar

Opções disponíveis:
info,
warning,
error,
success,
feature_announcement
active
boolean

Whether the banner is active

starts_at
string<date-time>

When to start showing the banner (null = immediately)

ends_at
string<date-time>

When to stop showing the banner (null = indefinitely)

status_url
string

Optional URL to a status page

video_url
string

Image or video of a feature announcement (required when banner_type is feature_announcement): a YouTube, Vimeo, Loom, Arcade, Bunny, Guidejar or CodePen link, or the link of an image or video file

media_type
enum<string> | null

What video_url shows (read-only)

Opções disponíveis:
image,
video
target_accounts
string[]

List of account IDs to show the banner to (empty = all accounts)

target_user_roles
enum<string>

Which user roles can see the banner

Opções disponíveis:
all_users,
admin_only
created_at
string<date-time>

When the banner was created

updated_at
string<date-time>

When the banner was last updated