Lay out pages from the rules
POST
/api/v1/brands/{slug}/pages
const url = 'http://localhost:3000/api/v1/brands/example/pages';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"set":{"topic":"example","parent":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/brands/example/pages \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "set": { "topic": "example", "parent": "example" } }'For a brand with no pages: an overview, then a page per group of rules, each in the templates it fits. A start to edit from; 409 when the brand has pages. With set, one topic’s pages (Our X, Using X, In product, In marketing, Best practices, Showcase) go in beside the pages there are, under parent; 409 only when one of their slugs is taken.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”slug
required
string
Brand slug
Request Body
Section titled “Request Body”Media typeapplication/json
object
set
Six pages on one topic under parent, beside pages that exist
object
topic
required
E.g. logo
string
parent
The page they go under; a new page named for the topic when left out
string
Examplegenerated
{ "set": { "topic": "example", "parent": "example" }}Responses
Section titled “Responses”The pages made
Media typeapplication/json
object
data
required
object
brand
required
string
pages
required
Array<object>
object
slug
required
string
title
required
string
sections
required
integer
Examplegenerated
{ "data": { "brand": "example", "pages": [ { "slug": "example", "title": "example", "sections": 1 } ] }}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" }}