Category: Messages. Tags: News and announcements, Social and audience, Offices and workplaces.
Previews



Views and forms
Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.
Card views, themes and publishing. Browse the gallery.
Data and privacy
This card uses its configured properties and live card data.
Properties
For theme, background, accent and position, see Common properties.
Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "From the team" | maxLength: 30 | |
rotateSec | integer | 15 | minimum: 3; maximum: 120 | Seconds each post is featured. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
posts | array | [] | maxItems: 50 | Posts from the company's channels, in any order; pinned posts lead, then the newest by at. The card features one at a time, rotating on the wall clock. |
posts[].id | string | "" | maxLength: 40 | Keys the post, so one already shown does not animate again. |
posts[].author | string | "" | maxLength: 60 | |
posts[].authorPhoto | string | "" | maxLength: 120 | A media reference to the author's picture; empty shows their initials. |
posts[].role | string | "" | maxLength: 50 | The author's team or title. |
posts[].channel | string | "" | maxLength: 40 | The channel or space, such as #announcements. |
posts[].source | string | "" | maxLength: 20 | Where it was posted: slack, teams, viva or intranet. |
posts[].text | string | minLength: 1; maxLength: 400; Required | ||
posts[].image | string | "" | maxLength: 120 | A media reference to a picture attached to the post. |
posts[].reactions | integer | 0 | minimum: 0; maximum: 99999 | |
posts[].replies | integer | 0 | minimum: 0; maximum: 99999 | |
posts[].pinned | boolean | false | A pinned post stays ahead of newer ones. | |
posts[].at | string | "" | maxLength: 40 | When it was posted, an ISO 8601 instant. |
Canvas example
Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.
{
"id": "workplace-posts",
"primitive": "card",
"card": "workplace-posts",
"major": 1,
"params": {
"theme": "neomustard"
},
"rect": {
"x": 0,
"y": 0,
"width": 1920,
"height": 1080
},
"layer": 0,
"content_fit": "fill",
"data": "workplace-posts-main"
}
Write live data
Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.
curl --request PUT "https://api.screenrig.ai/api/card-data/workplace-posts-main" \
--header "Authorization: Bearer $SCREENRIG_TOKEN" \
--header "ScreenRig-Project: $SCREENRIG_PROJECT" \
--header "Content-Type: application/json" \
--data '{"document":{"posts":[]}}'