Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
Update a brand
Changes the brand profile: description, website, tone of voice, writing guidelines, SEO keywords, hashtags and colors. Values are checked and normalised the same way as on the Brand page. Returns the updated profile.
curl --request PATCH \
--url https://www.app.ocoya.com/api/_public/v1/brands/{brandId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"description": "Ocoya helps small teams plan, create and schedule social posts with AI.",
"url": "ocoya.com",
"tone": [
"Friendly",
"Expert"
],
"guidelines": "Never use exclamation marks.",
"keywords": [
"social media scheduler",
"ai captions"
],
"hashtags": [
"#socialmedia",
"smallbusiness"
],
"colors": [
"#1a1a1a",
"#ff6b35"
]
}
'{
"id": "cmayvq3hk00017apshay5qezu",
"name": "Ocoya",
"image": null,
"timezone": "Europe/London",
"weekStart": 1,
"description": "Ocoya helps small teams plan, create and schedule social posts with AI.",
"url": "https://www.ocoya.com",
"logos": [
"https://cdn.ocoya.com/prod/brand/logo.png"
],
"colors": [
"#1a1a1a",
"#ff6b35"
],
"fonts": {
"heading": {
"fontFamily": "Actor"
}
},
"socials": {
"instagram": "https://instagram.com/ocoya"
},
"tone": [
"Friendly",
"Expert"
],
"guidelines": "Never use exclamation marks.",
"keywords": [
{
"keyword": "social media scheduler",
"monthlySearches": 1900
}
],
"hashtags": [
"socialmedia",
"smallbusiness"
],
"channelCount": 3,
"score": {
"score": 75,
"nextStep": {
"section": "keywords",
"sectionLabel": "SEO keywords",
"label": "Find more SEO keywords",
"points": 5
}
}
}Authorizations
Body
Only the fields you send change. Send at least one.
Website. Normalised as the app does (ocoya.com becomes https://ocoya.com); an empty string or null clears it.
SEO keywords, replacing the current ones: up to 20, lowercased and de-duplicated. Search volumes are kept for keywords that stay.
Hashtags, replacing the current ones: up to 200, stored lowercase without # (#Small Business becomes smallbusiness).
Response
Success. The updated profile.
Tone of voice: up to 3 of Friendly, Professional, Playful, Warm, Bold, Witty, Inspiring, Calm, Expert, Casual.
Hashtags the brand's posts use, lowercase and without the #, up to 200. AI campaigns use them.
Was this page helpful?