/brands v1.0.0
Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Base URLs:
Brands
getBrands
Code samples
const headers = {
Accept: "application/json",
};
fetch("https://goldleaf.app/api/v1/brands", {
method: "POST",
headers: headers,
})
.then(function (res) {
return res.json();
})
.then(function (body) {
console.log(body);
});
POST /brands
Create a brand
Creates a new brand for the organization with the given properties.
Example responses
500 Response
{
"type": "string"
}
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | the newly created brand | None |
| 500 | Internal Server Error | Server error | string |
