curl --request PATCH \
--url https://api.mymarky.ai/api/businesses/{business_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tone": "<string>",
"audience_combined": "<string>",
"caption_writing_rules": "<string>",
"caption_suffix": "<string>",
"custom_caption_prompt": "<string>",
"custom_meme_prompt": "<string>",
"custom_carousel_prompt": "<string>",
"design_style": "<string>",
"brand_style_grid_url": "<string>",
"strategy": "<string>",
"tagline": "<string>",
"ctas": [
"<string>"
],
"palettes": [
{
"name": "My Palette",
"colors": [
"<string>"
],
"text_color": "<string>",
"accent_color": "<string>",
"background_color": "<string>"
}
],
"header_font": {
"name": "<string>",
"url": "<string>"
},
"body_font": {
"name": "<string>",
"url": "<string>"
},
"logo_url": "<string>",
"logo_background_color": "<string>",
"logo_width": 123,
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"website": "<string>",
"language": "<string>",
"platform_writing_instructions": {
"common": "<string>",
"facebook": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"linkedIn": "<string>",
"linkedInProfile": "<string>",
"tiktok": "<string>",
"pinterest": "<string>",
"googleBusiness": "<string>",
"instagramStory": "<string>",
"youtube": "<string>"
},
"include_stock": true,
"creative_types": {
"design": 50,
"image-only": 50,
"ai-image": 50,
"gif": 50,
"meme": 50,
"video": 50,
"carousel": 50
},
"failed_to_publish_enabled": true,
"low_scheduled_enabled": true,
"post_published_enabled": true,
"post_stats_digest_enabled": true
}
'import requests
url = "https://api.mymarky.ai/api/businesses/{business_id}"
payload = {
"tone": "<string>",
"audience_combined": "<string>",
"caption_writing_rules": "<string>",
"caption_suffix": "<string>",
"custom_caption_prompt": "<string>",
"custom_meme_prompt": "<string>",
"custom_carousel_prompt": "<string>",
"design_style": "<string>",
"brand_style_grid_url": "<string>",
"strategy": "<string>",
"tagline": "<string>",
"ctas": ["<string>"],
"palettes": [
{
"name": "My Palette",
"colors": ["<string>"],
"text_color": "<string>",
"accent_color": "<string>",
"background_color": "<string>"
}
],
"header_font": {
"name": "<string>",
"url": "<string>"
},
"body_font": {
"name": "<string>",
"url": "<string>"
},
"logo_url": "<string>",
"logo_background_color": "<string>",
"logo_width": 123,
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"website": "<string>",
"language": "<string>",
"platform_writing_instructions": {
"common": "<string>",
"facebook": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"linkedIn": "<string>",
"linkedInProfile": "<string>",
"tiktok": "<string>",
"pinterest": "<string>",
"googleBusiness": "<string>",
"instagramStory": "<string>",
"youtube": "<string>"
},
"include_stock": True,
"creative_types": {
"design": 50,
"image-only": 50,
"ai-image": 50,
"gif": 50,
"meme": 50,
"video": 50,
"carousel": 50
},
"failed_to_publish_enabled": True,
"low_scheduled_enabled": True,
"post_published_enabled": True,
"post_stats_digest_enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tone: '<string>',
audience_combined: '<string>',
caption_writing_rules: '<string>',
caption_suffix: '<string>',
custom_caption_prompt: '<string>',
custom_meme_prompt: '<string>',
custom_carousel_prompt: '<string>',
design_style: '<string>',
brand_style_grid_url: '<string>',
strategy: '<string>',
tagline: '<string>',
ctas: ['<string>'],
palettes: [
{
name: 'My Palette',
colors: ['<string>'],
text_color: '<string>',
accent_color: '<string>',
background_color: '<string>'
}
],
header_font: {name: '<string>', url: '<string>'},
body_font: {name: '<string>', url: '<string>'},
logo_url: '<string>',
logo_background_color: '<string>',
logo_width: 123,
name: '<string>',
description: '<string>',
industry: '<string>',
website: '<string>',
language: '<string>',
platform_writing_instructions: {
common: '<string>',
facebook: '<string>',
instagram: '<string>',
twitter: '<string>',
linkedIn: '<string>',
linkedInProfile: '<string>',
tiktok: '<string>',
pinterest: '<string>',
googleBusiness: '<string>',
instagramStory: '<string>',
youtube: '<string>'
},
include_stock: true,
creative_types: {
design: 50,
'image-only': 50,
'ai-image': 50,
gif: 50,
meme: 50,
video: 50,
carousel: 50
},
failed_to_publish_enabled: true,
low_scheduled_enabled: true,
post_published_enabled: true,
post_stats_digest_enabled: true
})
};
fetch('https://api.mymarky.ai/api/businesses/{business_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mymarky.ai/api/businesses/{business_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'tone' => '<string>',
'audience_combined' => '<string>',
'caption_writing_rules' => '<string>',
'caption_suffix' => '<string>',
'custom_caption_prompt' => '<string>',
'custom_meme_prompt' => '<string>',
'custom_carousel_prompt' => '<string>',
'design_style' => '<string>',
'brand_style_grid_url' => '<string>',
'strategy' => '<string>',
'tagline' => '<string>',
'ctas' => [
'<string>'
],
'palettes' => [
[
'name' => 'My Palette',
'colors' => [
'<string>'
],
'text_color' => '<string>',
'accent_color' => '<string>',
'background_color' => '<string>'
]
],
'header_font' => [
'name' => '<string>',
'url' => '<string>'
],
'body_font' => [
'name' => '<string>',
'url' => '<string>'
],
'logo_url' => '<string>',
'logo_background_color' => '<string>',
'logo_width' => 123,
'name' => '<string>',
'description' => '<string>',
'industry' => '<string>',
'website' => '<string>',
'language' => '<string>',
'platform_writing_instructions' => [
'common' => '<string>',
'facebook' => '<string>',
'instagram' => '<string>',
'twitter' => '<string>',
'linkedIn' => '<string>',
'linkedInProfile' => '<string>',
'tiktok' => '<string>',
'pinterest' => '<string>',
'googleBusiness' => '<string>',
'instagramStory' => '<string>',
'youtube' => '<string>'
],
'include_stock' => true,
'creative_types' => [
'design' => 50,
'image-only' => 50,
'ai-image' => 50,
'gif' => 50,
'meme' => 50,
'video' => 50,
'carousel' => 50
],
'failed_to_publish_enabled' => true,
'low_scheduled_enabled' => true,
'post_published_enabled' => true,
'post_stats_digest_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mymarky.ai/api/businesses/{business_id}"
payload := strings.NewReader("{\n \"tone\": \"<string>\",\n \"audience_combined\": \"<string>\",\n \"caption_writing_rules\": \"<string>\",\n \"caption_suffix\": \"<string>\",\n \"custom_caption_prompt\": \"<string>\",\n \"custom_meme_prompt\": \"<string>\",\n \"custom_carousel_prompt\": \"<string>\",\n \"design_style\": \"<string>\",\n \"brand_style_grid_url\": \"<string>\",\n \"strategy\": \"<string>\",\n \"tagline\": \"<string>\",\n \"ctas\": [\n \"<string>\"\n ],\n \"palettes\": [\n {\n \"name\": \"My Palette\",\n \"colors\": [\n \"<string>\"\n ],\n \"text_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"background_color\": \"<string>\"\n }\n ],\n \"header_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"body_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"logo_url\": \"<string>\",\n \"logo_background_color\": \"<string>\",\n \"logo_width\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"industry\": \"<string>\",\n \"website\": \"<string>\",\n \"language\": \"<string>\",\n \"platform_writing_instructions\": {\n \"common\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\",\n \"twitter\": \"<string>\",\n \"linkedIn\": \"<string>\",\n \"linkedInProfile\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"pinterest\": \"<string>\",\n \"googleBusiness\": \"<string>\",\n \"instagramStory\": \"<string>\",\n \"youtube\": \"<string>\"\n },\n \"include_stock\": true,\n \"creative_types\": {\n \"design\": 50,\n \"image-only\": 50,\n \"ai-image\": 50,\n \"gif\": 50,\n \"meme\": 50,\n \"video\": 50,\n \"carousel\": 50\n },\n \"failed_to_publish_enabled\": true,\n \"low_scheduled_enabled\": true,\n \"post_published_enabled\": true,\n \"post_stats_digest_enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.mymarky.ai/api/businesses/{business_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tone\": \"<string>\",\n \"audience_combined\": \"<string>\",\n \"caption_writing_rules\": \"<string>\",\n \"caption_suffix\": \"<string>\",\n \"custom_caption_prompt\": \"<string>\",\n \"custom_meme_prompt\": \"<string>\",\n \"custom_carousel_prompt\": \"<string>\",\n \"design_style\": \"<string>\",\n \"brand_style_grid_url\": \"<string>\",\n \"strategy\": \"<string>\",\n \"tagline\": \"<string>\",\n \"ctas\": [\n \"<string>\"\n ],\n \"palettes\": [\n {\n \"name\": \"My Palette\",\n \"colors\": [\n \"<string>\"\n ],\n \"text_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"background_color\": \"<string>\"\n }\n ],\n \"header_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"body_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"logo_url\": \"<string>\",\n \"logo_background_color\": \"<string>\",\n \"logo_width\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"industry\": \"<string>\",\n \"website\": \"<string>\",\n \"language\": \"<string>\",\n \"platform_writing_instructions\": {\n \"common\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\",\n \"twitter\": \"<string>\",\n \"linkedIn\": \"<string>\",\n \"linkedInProfile\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"pinterest\": \"<string>\",\n \"googleBusiness\": \"<string>\",\n \"instagramStory\": \"<string>\",\n \"youtube\": \"<string>\"\n },\n \"include_stock\": true,\n \"creative_types\": {\n \"design\": 50,\n \"image-only\": 50,\n \"ai-image\": 50,\n \"gif\": 50,\n \"meme\": 50,\n \"video\": 50,\n \"carousel\": 50\n },\n \"failed_to_publish_enabled\": true,\n \"low_scheduled_enabled\": true,\n \"post_published_enabled\": true,\n \"post_stats_digest_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mymarky.ai/api/businesses/{business_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tone\": \"<string>\",\n \"audience_combined\": \"<string>\",\n \"caption_writing_rules\": \"<string>\",\n \"caption_suffix\": \"<string>\",\n \"custom_caption_prompt\": \"<string>\",\n \"custom_meme_prompt\": \"<string>\",\n \"custom_carousel_prompt\": \"<string>\",\n \"design_style\": \"<string>\",\n \"brand_style_grid_url\": \"<string>\",\n \"strategy\": \"<string>\",\n \"tagline\": \"<string>\",\n \"ctas\": [\n \"<string>\"\n ],\n \"palettes\": [\n {\n \"name\": \"My Palette\",\n \"colors\": [\n \"<string>\"\n ],\n \"text_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"background_color\": \"<string>\"\n }\n ],\n \"header_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"body_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"logo_url\": \"<string>\",\n \"logo_background_color\": \"<string>\",\n \"logo_width\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"industry\": \"<string>\",\n \"website\": \"<string>\",\n \"language\": \"<string>\",\n \"platform_writing_instructions\": {\n \"common\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\",\n \"twitter\": \"<string>\",\n \"linkedIn\": \"<string>\",\n \"linkedInProfile\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"pinterest\": \"<string>\",\n \"googleBusiness\": \"<string>\",\n \"instagramStory\": \"<string>\",\n \"youtube\": \"<string>\"\n },\n \"include_stock\": true,\n \"creative_types\": {\n \"design\": 50,\n \"image-only\": 50,\n \"ai-image\": 50,\n \"gif\": 50,\n \"meme\": 50,\n \"video\": 50,\n \"carousel\": 50\n },\n \"failed_to_publish_enabled\": true,\n \"low_scheduled_enabled\": true,\n \"post_published_enabled\": true,\n \"post_stats_digest_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": "<string>",
"warnings": [
{
"field": "<string>",
"level": "approaching_limit",
"message": "<string>"
}
],
"field_budgets": [
{
"field": "<string>",
"limit": 123,
"used": 123,
"remaining": 123
}
],
"tone": "<string>",
"audience_combined": "<string>",
"caption_writing_rules": "<string>",
"caption_suffix": "<string>",
"custom_caption_prompt": "<string>",
"custom_meme_prompt": "<string>",
"custom_carousel_prompt": "<string>",
"design_style": "<string>",
"brand_style_grid_url": "<string>",
"strategy": "<string>",
"tagline": "<string>",
"ctas": [
"<string>"
],
"palettes": [
{
"name": "My Palette",
"colors": [
"<string>"
],
"text_color": "<string>",
"accent_color": "<string>",
"background_color": "<string>"
}
],
"header_font": {
"name": "<string>",
"url": "<string>"
},
"body_font": {
"name": "<string>",
"url": "<string>"
},
"logo_url": "<string>",
"logo_background_color": "<string>",
"logo_width": 123,
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"website": "<string>",
"language": "en",
"platform_writing_instructions": {},
"updated_at": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}Update business
Update a business. Only provided fields are changed.
Errors: 400 invalid_request: No fields were given to update. 400 invalid_value: The business_id is not a valid UUID. 401 authentication_required: API key or token is missing, invalid, or revoked. 403 permission_denied: Your plan does not include API access, or this business is not in your org. 404 resource_not_found: No business with that ID exists. 429 rate_limit_exceeded: You sent too many requests this minute.
curl --request PATCH \
--url https://api.mymarky.ai/api/businesses/{business_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tone": "<string>",
"audience_combined": "<string>",
"caption_writing_rules": "<string>",
"caption_suffix": "<string>",
"custom_caption_prompt": "<string>",
"custom_meme_prompt": "<string>",
"custom_carousel_prompt": "<string>",
"design_style": "<string>",
"brand_style_grid_url": "<string>",
"strategy": "<string>",
"tagline": "<string>",
"ctas": [
"<string>"
],
"palettes": [
{
"name": "My Palette",
"colors": [
"<string>"
],
"text_color": "<string>",
"accent_color": "<string>",
"background_color": "<string>"
}
],
"header_font": {
"name": "<string>",
"url": "<string>"
},
"body_font": {
"name": "<string>",
"url": "<string>"
},
"logo_url": "<string>",
"logo_background_color": "<string>",
"logo_width": 123,
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"website": "<string>",
"language": "<string>",
"platform_writing_instructions": {
"common": "<string>",
"facebook": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"linkedIn": "<string>",
"linkedInProfile": "<string>",
"tiktok": "<string>",
"pinterest": "<string>",
"googleBusiness": "<string>",
"instagramStory": "<string>",
"youtube": "<string>"
},
"include_stock": true,
"creative_types": {
"design": 50,
"image-only": 50,
"ai-image": 50,
"gif": 50,
"meme": 50,
"video": 50,
"carousel": 50
},
"failed_to_publish_enabled": true,
"low_scheduled_enabled": true,
"post_published_enabled": true,
"post_stats_digest_enabled": true
}
'import requests
url = "https://api.mymarky.ai/api/businesses/{business_id}"
payload = {
"tone": "<string>",
"audience_combined": "<string>",
"caption_writing_rules": "<string>",
"caption_suffix": "<string>",
"custom_caption_prompt": "<string>",
"custom_meme_prompt": "<string>",
"custom_carousel_prompt": "<string>",
"design_style": "<string>",
"brand_style_grid_url": "<string>",
"strategy": "<string>",
"tagline": "<string>",
"ctas": ["<string>"],
"palettes": [
{
"name": "My Palette",
"colors": ["<string>"],
"text_color": "<string>",
"accent_color": "<string>",
"background_color": "<string>"
}
],
"header_font": {
"name": "<string>",
"url": "<string>"
},
"body_font": {
"name": "<string>",
"url": "<string>"
},
"logo_url": "<string>",
"logo_background_color": "<string>",
"logo_width": 123,
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"website": "<string>",
"language": "<string>",
"platform_writing_instructions": {
"common": "<string>",
"facebook": "<string>",
"instagram": "<string>",
"twitter": "<string>",
"linkedIn": "<string>",
"linkedInProfile": "<string>",
"tiktok": "<string>",
"pinterest": "<string>",
"googleBusiness": "<string>",
"instagramStory": "<string>",
"youtube": "<string>"
},
"include_stock": True,
"creative_types": {
"design": 50,
"image-only": 50,
"ai-image": 50,
"gif": 50,
"meme": 50,
"video": 50,
"carousel": 50
},
"failed_to_publish_enabled": True,
"low_scheduled_enabled": True,
"post_published_enabled": True,
"post_stats_digest_enabled": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tone: '<string>',
audience_combined: '<string>',
caption_writing_rules: '<string>',
caption_suffix: '<string>',
custom_caption_prompt: '<string>',
custom_meme_prompt: '<string>',
custom_carousel_prompt: '<string>',
design_style: '<string>',
brand_style_grid_url: '<string>',
strategy: '<string>',
tagline: '<string>',
ctas: ['<string>'],
palettes: [
{
name: 'My Palette',
colors: ['<string>'],
text_color: '<string>',
accent_color: '<string>',
background_color: '<string>'
}
],
header_font: {name: '<string>', url: '<string>'},
body_font: {name: '<string>', url: '<string>'},
logo_url: '<string>',
logo_background_color: '<string>',
logo_width: 123,
name: '<string>',
description: '<string>',
industry: '<string>',
website: '<string>',
language: '<string>',
platform_writing_instructions: {
common: '<string>',
facebook: '<string>',
instagram: '<string>',
twitter: '<string>',
linkedIn: '<string>',
linkedInProfile: '<string>',
tiktok: '<string>',
pinterest: '<string>',
googleBusiness: '<string>',
instagramStory: '<string>',
youtube: '<string>'
},
include_stock: true,
creative_types: {
design: 50,
'image-only': 50,
'ai-image': 50,
gif: 50,
meme: 50,
video: 50,
carousel: 50
},
failed_to_publish_enabled: true,
low_scheduled_enabled: true,
post_published_enabled: true,
post_stats_digest_enabled: true
})
};
fetch('https://api.mymarky.ai/api/businesses/{business_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mymarky.ai/api/businesses/{business_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'tone' => '<string>',
'audience_combined' => '<string>',
'caption_writing_rules' => '<string>',
'caption_suffix' => '<string>',
'custom_caption_prompt' => '<string>',
'custom_meme_prompt' => '<string>',
'custom_carousel_prompt' => '<string>',
'design_style' => '<string>',
'brand_style_grid_url' => '<string>',
'strategy' => '<string>',
'tagline' => '<string>',
'ctas' => [
'<string>'
],
'palettes' => [
[
'name' => 'My Palette',
'colors' => [
'<string>'
],
'text_color' => '<string>',
'accent_color' => '<string>',
'background_color' => '<string>'
]
],
'header_font' => [
'name' => '<string>',
'url' => '<string>'
],
'body_font' => [
'name' => '<string>',
'url' => '<string>'
],
'logo_url' => '<string>',
'logo_background_color' => '<string>',
'logo_width' => 123,
'name' => '<string>',
'description' => '<string>',
'industry' => '<string>',
'website' => '<string>',
'language' => '<string>',
'platform_writing_instructions' => [
'common' => '<string>',
'facebook' => '<string>',
'instagram' => '<string>',
'twitter' => '<string>',
'linkedIn' => '<string>',
'linkedInProfile' => '<string>',
'tiktok' => '<string>',
'pinterest' => '<string>',
'googleBusiness' => '<string>',
'instagramStory' => '<string>',
'youtube' => '<string>'
],
'include_stock' => true,
'creative_types' => [
'design' => 50,
'image-only' => 50,
'ai-image' => 50,
'gif' => 50,
'meme' => 50,
'video' => 50,
'carousel' => 50
],
'failed_to_publish_enabled' => true,
'low_scheduled_enabled' => true,
'post_published_enabled' => true,
'post_stats_digest_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mymarky.ai/api/businesses/{business_id}"
payload := strings.NewReader("{\n \"tone\": \"<string>\",\n \"audience_combined\": \"<string>\",\n \"caption_writing_rules\": \"<string>\",\n \"caption_suffix\": \"<string>\",\n \"custom_caption_prompt\": \"<string>\",\n \"custom_meme_prompt\": \"<string>\",\n \"custom_carousel_prompt\": \"<string>\",\n \"design_style\": \"<string>\",\n \"brand_style_grid_url\": \"<string>\",\n \"strategy\": \"<string>\",\n \"tagline\": \"<string>\",\n \"ctas\": [\n \"<string>\"\n ],\n \"palettes\": [\n {\n \"name\": \"My Palette\",\n \"colors\": [\n \"<string>\"\n ],\n \"text_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"background_color\": \"<string>\"\n }\n ],\n \"header_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"body_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"logo_url\": \"<string>\",\n \"logo_background_color\": \"<string>\",\n \"logo_width\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"industry\": \"<string>\",\n \"website\": \"<string>\",\n \"language\": \"<string>\",\n \"platform_writing_instructions\": {\n \"common\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\",\n \"twitter\": \"<string>\",\n \"linkedIn\": \"<string>\",\n \"linkedInProfile\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"pinterest\": \"<string>\",\n \"googleBusiness\": \"<string>\",\n \"instagramStory\": \"<string>\",\n \"youtube\": \"<string>\"\n },\n \"include_stock\": true,\n \"creative_types\": {\n \"design\": 50,\n \"image-only\": 50,\n \"ai-image\": 50,\n \"gif\": 50,\n \"meme\": 50,\n \"video\": 50,\n \"carousel\": 50\n },\n \"failed_to_publish_enabled\": true,\n \"low_scheduled_enabled\": true,\n \"post_published_enabled\": true,\n \"post_stats_digest_enabled\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.mymarky.ai/api/businesses/{business_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tone\": \"<string>\",\n \"audience_combined\": \"<string>\",\n \"caption_writing_rules\": \"<string>\",\n \"caption_suffix\": \"<string>\",\n \"custom_caption_prompt\": \"<string>\",\n \"custom_meme_prompt\": \"<string>\",\n \"custom_carousel_prompt\": \"<string>\",\n \"design_style\": \"<string>\",\n \"brand_style_grid_url\": \"<string>\",\n \"strategy\": \"<string>\",\n \"tagline\": \"<string>\",\n \"ctas\": [\n \"<string>\"\n ],\n \"palettes\": [\n {\n \"name\": \"My Palette\",\n \"colors\": [\n \"<string>\"\n ],\n \"text_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"background_color\": \"<string>\"\n }\n ],\n \"header_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"body_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"logo_url\": \"<string>\",\n \"logo_background_color\": \"<string>\",\n \"logo_width\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"industry\": \"<string>\",\n \"website\": \"<string>\",\n \"language\": \"<string>\",\n \"platform_writing_instructions\": {\n \"common\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\",\n \"twitter\": \"<string>\",\n \"linkedIn\": \"<string>\",\n \"linkedInProfile\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"pinterest\": \"<string>\",\n \"googleBusiness\": \"<string>\",\n \"instagramStory\": \"<string>\",\n \"youtube\": \"<string>\"\n },\n \"include_stock\": true,\n \"creative_types\": {\n \"design\": 50,\n \"image-only\": 50,\n \"ai-image\": 50,\n \"gif\": 50,\n \"meme\": 50,\n \"video\": 50,\n \"carousel\": 50\n },\n \"failed_to_publish_enabled\": true,\n \"low_scheduled_enabled\": true,\n \"post_published_enabled\": true,\n \"post_stats_digest_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mymarky.ai/api/businesses/{business_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tone\": \"<string>\",\n \"audience_combined\": \"<string>\",\n \"caption_writing_rules\": \"<string>\",\n \"caption_suffix\": \"<string>\",\n \"custom_caption_prompt\": \"<string>\",\n \"custom_meme_prompt\": \"<string>\",\n \"custom_carousel_prompt\": \"<string>\",\n \"design_style\": \"<string>\",\n \"brand_style_grid_url\": \"<string>\",\n \"strategy\": \"<string>\",\n \"tagline\": \"<string>\",\n \"ctas\": [\n \"<string>\"\n ],\n \"palettes\": [\n {\n \"name\": \"My Palette\",\n \"colors\": [\n \"<string>\"\n ],\n \"text_color\": \"<string>\",\n \"accent_color\": \"<string>\",\n \"background_color\": \"<string>\"\n }\n ],\n \"header_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"body_font\": {\n \"name\": \"<string>\",\n \"url\": \"<string>\"\n },\n \"logo_url\": \"<string>\",\n \"logo_background_color\": \"<string>\",\n \"logo_width\": 123,\n \"name\": \"<string>\",\n \"description\": \"<string>\",\n \"industry\": \"<string>\",\n \"website\": \"<string>\",\n \"language\": \"<string>\",\n \"platform_writing_instructions\": {\n \"common\": \"<string>\",\n \"facebook\": \"<string>\",\n \"instagram\": \"<string>\",\n \"twitter\": \"<string>\",\n \"linkedIn\": \"<string>\",\n \"linkedInProfile\": \"<string>\",\n \"tiktok\": \"<string>\",\n \"pinterest\": \"<string>\",\n \"googleBusiness\": \"<string>\",\n \"instagramStory\": \"<string>\",\n \"youtube\": \"<string>\"\n },\n \"include_stock\": true,\n \"creative_types\": {\n \"design\": 50,\n \"image-only\": 50,\n \"ai-image\": 50,\n \"gif\": 50,\n \"meme\": 50,\n \"video\": 50,\n \"carousel\": 50\n },\n \"failed_to_publish_enabled\": true,\n \"low_scheduled_enabled\": true,\n \"post_published_enabled\": true,\n \"post_stats_digest_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"created_at": "<string>",
"warnings": [
{
"field": "<string>",
"level": "approaching_limit",
"message": "<string>"
}
],
"field_budgets": [
{
"field": "<string>",
"limit": 123,
"used": 123,
"remaining": 123
}
],
"tone": "<string>",
"audience_combined": "<string>",
"caption_writing_rules": "<string>",
"caption_suffix": "<string>",
"custom_caption_prompt": "<string>",
"custom_meme_prompt": "<string>",
"custom_carousel_prompt": "<string>",
"design_style": "<string>",
"brand_style_grid_url": "<string>",
"strategy": "<string>",
"tagline": "<string>",
"ctas": [
"<string>"
],
"palettes": [
{
"name": "My Palette",
"colors": [
"<string>"
],
"text_color": "<string>",
"accent_color": "<string>",
"background_color": "<string>"
}
],
"header_font": {
"name": "<string>",
"url": "<string>"
},
"body_font": {
"name": "<string>",
"url": "<string>"
},
"logo_url": "<string>",
"logo_background_color": "<string>",
"logo_width": 123,
"name": "<string>",
"description": "<string>",
"industry": "<string>",
"website": "<string>",
"language": "en",
"platform_writing_instructions": {},
"updated_at": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"code": "<string>",
"instance": "<string>",
"request_id": "<string>",
"param": "<string>"
}Authorizations
Bearer an mk_live_ API key. A key is ORG-SCOPED: it grants full access to every resource in that organization, with no per-endpoint scoping (see the uid pseudo-permission on each operation). Manage keys at https://app.mymarky.ai.
Headers
Opt into a dated API version. Omit to stay on the floor (2026-04-08) forever — unpinned clients never break. Pin to a newer date (e.g. 2026-08-06) to receive the newest response shapes. Unknown values fall back to the floor. See https://docs.mymarky.ai for the versioning model.
2026-04-08, 2026-07-17, 2026-08-02, 2026-08-04, 2026-08-06 "2026-08-06"
Path Parameters
A UUID identifier.
Body
Brand voice — the tone and personality Marky writes captions in (the 'Profile' field in the app).
The target audience the brand writes for — who the posts are meant to reach (the 'Target Audience' field in the app).
Extra rules Marky follows when writing captions. Put each rule on its own line (newline-separated) — do NOT write one long paragraph. The app shows each line as a separate rule chip, so a run-on paragraph renders as one un-editable blob. E.g. 'Never use emojis\nAlways end with a question\nKeep captions under 80 words'.
Text appended to the end of every generated caption (e.g. a hashtag block or a link).
A custom instruction injected into caption generation for this business.
A custom instruction injected into meme generation for this business.
A custom instruction injected into carousel generation for this business.
Free-text/markdown guidance on how this brand's graphics should be COMPOSED — which palette colour leads, how gradients are used, where the logo sits, whitespace, type treatment. Do NOT restate the raw brand tokens here (colours, fonts, logo file); those live in palettes / header_font / body_font / logo_url. This is the judgement the tokens can't express. SCOPE: it is added to the prompt for AI-GENERATED images and sets the look of theme covers. It does NOT reach a template design, so it will not change a batch generated from templates — for those, use palettes / header_font / body_font / logo_url, creative_types and include_stock. SIZE: 5000 characters, and writing this field REPLACES the whole value. Plan to the cap before composing; the response's field_budgets entry tells you how much room is left.
URL of a rendered 2x2 grid of four sample posts, all in ONE of the treatments from the design_style table — the first look the user kept when they ran /brand-setup. Written by /brand-setup at the end of that run; the app shows it so someone can SEE their look instead of reading it.
Social strategy doc as MARKDOWN — the goal we're working toward, what we're trying right now, what we won't do, cadence and mix, plus a running log of experiments and what we learned. This is the layer an agency revisits each quarter. Write plain markdown (## headings, - bullets, | tables |); the app renders it in a rich-text editor, so no HTML tags — they show up as literal text and spend the size budget without adding meaning. Keep the pillars themselves in topics, the brand voice in tone/audience_combined, and how graphics look in design_style; strategy holds what none of those can express — what we're trying to ACHIEVE and what we've learned. SIZE: 6000 characters, and writing this field REPLACES the whole doc. A longer value is still saved, but it comes back with a warning you have to act on in the same turn — so plan the doc to the cap BEFORE you compose it, rather than writing long and compacting after. The response's field_budgets entry for this field tells you exactly how much room is left.
Brand tagline shown on designs.
Call-to-action phrases Marky can use on designs (e.g. 'Call today', 'Book now').
Brand color palettes used on generated designs.
Show child attributes
Show child attributes
Font used for headlines on designs.
Show child attributes
Show child attributes
Font used for body text on designs.
Show child attributes
Show child attributes
URL of the brand logo.
Background color behind the logo on designs (hex, or '#00000000' for transparent).
Logo width in pixels, used when laying the logo onto designs.
Business name
Business description
Industry
Business website URL
Content language, as an ISO 639-1 code (e.g. 'en') or English name (e.g. 'English'). Both accepted.
MERGE-patch of the per-platform caption-writing instructions: only the keys you send change (e.g. {'facebook': 'Casual, ask a question.'} updates facebook and leaves every other platform alone). Send an EMPTY STRING to reset that platform to defaults.
Show child attributes
Show child attributes
Whether generated posts may use stock photography.
MERGE-patch of the content mix: relative weights per creative format. Only the formats you send change, so you can adjust one without restating the others. Weights need not sum to 100.
Show child attributes
Show child attributes
Default aspect ratio for generated designs.
1:1, 4:5, 9:16 Email the business when a post fails to publish.
Email the business when the post queue runs low.
Email the business when a post is published.
Send the periodic post-performance digest email.
Response
Successful Response
Business ID
When the business was created
Non-blocking notes about fields that need attention, empty when there is nothing to do. Act on them in the same turn you see them — that is while you still have the content in context.
Show child attributes
Show child attributes
Size ceilings for the fields that get pasted into the prompt for every generated post. READ THIS BEFORE COMPOSING a value for one of these fields — remaining is the room you have, and a budgeted field is REPLACED whole on write, so limit is the real target. Over-budget writes are accepted, not rejected, but they cost a full rewrite to fix.
Show child attributes
Show child attributes
Brand voice — the tone and personality Marky writes captions in (the 'Profile' field in the app).
The target audience the brand writes for — who the posts are meant to reach (the 'Target Audience' field in the app).
Extra rules Marky follows when writing captions. Put each rule on its own line (newline-separated) — do NOT write one long paragraph. The app shows each line as a separate rule chip, so a run-on paragraph renders as one un-editable blob. E.g. 'Never use emojis\nAlways end with a question\nKeep captions under 80 words'.
Text appended to the end of every generated caption (e.g. a hashtag block or a link).
A custom instruction injected into caption generation for this business.
A custom instruction injected into meme generation for this business.
A custom instruction injected into carousel generation for this business.
Free-text/markdown guidance on how this brand's graphics should be COMPOSED — which palette colour leads, how gradients are used, where the logo sits, whitespace, type treatment. Do NOT restate the raw brand tokens here (colours, fonts, logo file); those live in palettes / header_font / body_font / logo_url. This is the judgement the tokens can't express. SCOPE: it is added to the prompt for AI-GENERATED images and sets the look of theme covers. It does NOT reach a template design, so it will not change a batch generated from templates — for those, use palettes / header_font / body_font / logo_url, creative_types and include_stock. SIZE: 5000 characters, and writing this field REPLACES the whole value. Plan to the cap before composing; the response's field_budgets entry tells you how much room is left.
URL of a rendered 2x2 grid of four sample posts, all in ONE of the treatments from the design_style table — the first look the user kept when they ran /brand-setup. Written by /brand-setup at the end of that run; the app shows it so someone can SEE their look instead of reading it.
Social strategy doc as MARKDOWN — the goal we're working toward, what we're trying right now, what we won't do, cadence and mix, plus a running log of experiments and what we learned. This is the layer an agency revisits each quarter. Write plain markdown (## headings, - bullets, | tables |); the app renders it in a rich-text editor, so no HTML tags — they show up as literal text and spend the size budget without adding meaning. Keep the pillars themselves in topics, the brand voice in tone/audience_combined, and how graphics look in design_style; strategy holds what none of those can express — what we're trying to ACHIEVE and what we've learned. SIZE: 6000 characters, and writing this field REPLACES the whole doc. A longer value is still saved, but it comes back with a warning you have to act on in the same turn — so plan the doc to the cap BEFORE you compose it, rather than writing long and compacting after. The response's field_budgets entry for this field tells you exactly how much room is left.
Brand tagline shown on designs.
Call-to-action phrases Marky can use on designs (e.g. 'Call today', 'Book now').
Brand color palettes used on generated designs.
Show child attributes
Show child attributes
Font used for headlines on designs.
Show child attributes
Show child attributes
Font used for body text on designs.
Show child attributes
Show child attributes
URL of the brand logo.
Background color behind the logo on designs (hex, or '#00000000' for transparent).
Logo width in pixels, used when laying the logo onto designs.
Business name
Business description
Industry category
Business website URL
Content language as an ISO 639-1 code (e.g. 'en', 'fr', 'es').
The user's customized per-platform caption-writing instructions (empty when none set). Keys are canonical platform names (e.g. 'instagram', 'linkedIn') plus 'common' (applies to all platforms). Follow the matching entry when writing a caption or platform_overrides caption — the user's instructions ALWAYS outrank generic platform best practices. Update via PATCH (merge semantics). Returned by get_business only, not the list endpoint.
Show child attributes
Show child attributes
Last update time
