Make a brand public or private
const url = 'http://localhost:3000/api/v1/brands/example/hub';const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"visibility":"private","portal":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:3000/api/v1/brands/example/hub \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "visibility": "private", "portal": "example" }'visibility: public shows its latest publish on BrandHub to anyone; it takes a publish, and a slug no other public brand of the organization has. portal picks the portal linked as its guidelines. Takes share on the project.
Scope: write.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Brand slug
Request Bodyrequired
Section titled “Request Bodyrequired”object
Public shows its latest publish to anyone and any agent; it takes a publish
The slug of a portal showing it, linked as its guidelines; null: its first public portal
Responses
Section titled “Responses”The brand on BrandHub
object
object
Private: the project’s people see it on BrandHub, signed in; public: anyone and any agent
Its page there: BrandHub’s own address when public, the app’s /hub when private
That portal was picked; false: it is the brand’s first public portal
Its BrandHub files (brand.json, llms.txt, tokens) read in the last 30 days, as its BrandHub card shows
Taken off BrandHub by whoever runs the server, and why: it can’t be made public until they list it again
Claimed by whoever proved its domain: the listing that took its place, as {org}/{brand}; it can’t be made public again
How BrandHub names it: {org}/{brand}
What its organization proved it holds, a domain or github.com/{login}; null: a community listing
The terms of use its guidelines portal asks readers to accept, in markdown
Example
{ "data": { "visibility": "private" }}default
Section titled “default”An error
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "detail": "example" }}