What's new in a portal's brand
GET
/api/v1/portal/{slug}/updates
const url = 'http://localhost:3000/api/v1/portal/example/updates';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/portal/example/updatesOne of its brands’ latest publishes, newest first, up to 20, with what each changed for readers. A publish’s picture is in media, signed, while it may be used.
No key needed.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
The portal’s address
Query Parameters
Section titled “Query Parameters”brand
string
One of its brands, by slug; the first when left out
Responses
Section titled “Responses”Its publishes
Media typeapplication/json
object
data
required
Array<object>
object
version
required
integer
publishedAt
required
string format: date-time
publishedBy
required
string | null
note
required
What changed, in the publisher’s words
string | null
changes
required
What it changed for readers since the publish before it
object
rules
required
By key
object
added
required
Array<string>
changed
required
Array<string>
removed
required
Array<string>
pages
required
Pages readers can reach: a hidden one is left out
object
added
required
Array<object>
object
slug
required
string
title
required
string
changed
required
Array<object>
object
slug
required
string
title
required
string
removed
required
Array<object>
object
slug
required
string
title
required
string
media
required
object
key
additional properties
object
id
required
string format: uuid
filename
required
string
title
required
string | null
description
required
string | null
creator
required
string | null
copyright
required
string | null
mime
required
string
size
required
integer
thumbnail
required
A URL on this host
string | null
preview
required
Larger, for a closer look
string | null
downloads
required
Array<object>
object
preset
required
string
label
required
string
hint
required
string
url
required
string
filename
required
string
original
required
The file as uploaded
string
updatedAt
required
string format: date-time
Example
{ "media": { "additionalProperty": { "downloads": [ { "preset": "web" } ] } }}Not in yet: how to get in
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
required
object
name
required
string
access
required
string
theme
required
object
logo
required
A URL on this host: the portal’s, else its first brand’s mark, else its organization’s
string | null
accent
required
The portal’s, else its first brand’s color, else its organization’s
string | null
background
required
string | null
icon
required
The organization’s, for the browser tab
string | null
product
required
What the organization calls the product
string
Example
{ "error": { "code": "password", "detail": { "access": "password" } }}default
Section titled “default”An error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}