Follow a BrandHub organization
PUT
/api/v1/hub/{org}/follow
const url = 'http://localhost:3000/api/v1/hub/example/follow';const options = {method: 'PUT', 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 PUT \ --url http://localhost:3000/api/v1/hub/example/follow \ --header 'Authorization: Bearer <token>'A person, signed in, and an organization with something public on BrandHub: its brands, out now and to come, show in their Following tab. Following one already followed changes nothing.
Any caller; the scope needed is checked on what it acts on.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
The organization, as its BrandHub address names it
Responses
Section titled “Responses”Following
Media typeapplication/json
object
data
required
object
following
required
boolean
Example
{ "data": { "following": true }}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" }}