A brand's history
GET
/api/v1/brands/{slug}/versions
const url = 'http://localhost:3000/api/v1/brands/example/versions';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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/brands/example/versions \ --header 'Authorization: Bearer <token>'Newest first. Every change is recorded; changes by the same actor within ten minutes extend one version, as in a shared doc, unless it has been named.
Scope: read.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Brand slug
Responses
Section titled “Responses”Versions, without their rules
Media typeapplication/json
object
data
required
Array<object>
object
number
required
integer
kind
required
string
name
required
string | null
actor
required
Who: a person’s name, an API key’s name, or “web” for the app without an account
string
changed
required
Keys touched; a page as page:{slug}, and theme
Array<string>
summary
required
string
rules
required
integer
publishedBy
required
string | null
note
required
What changed, for readers, given when it was published
string | null
createdAt
required
string format: date-time
updatedAt
required
Edits close together extend a version; this is its last
string format: date-time
Example
{ "data": [ { "kind": "baseline" } ]}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" }}