POSTapi.synup.com/api/v4/social-post-ideas/set-brand-image-credits
Set brand image credits
Sets the monthly image-generation credit limit for a brand (social profile) and whether image-credit metering is active.
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Synup-Version | string | required | API version date (YYYY-MM-DD). |
Body
| Name | Type | Required | Description |
|---|---|---|---|
socialProfileId | string | required | |
monthlyLimit | integer | optional | |
isActive | boolean | optional |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/social-post-ideas/set-brand-image-credits' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"socialProfileId": "6f1c2a90-...",
"monthlyLimit": 100,
"isActive": true
}'const res = await fetch('https://api.synup.com/api/v4/social-post-ideas/set-brand-image-credits', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"socialProfileId": "6f1c2a90-...",
"monthlyLimit": 100,
"isActive": true
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/social-post-ideas/set-brand-image-credits",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"socialProfileId": "6f1c2a90-...",
"monthlyLimit": 100,
"isActive": True
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/social-post-ideas/set-brand-image-credits", bytes.NewBufferString(payload))
req.Header.Set("Authorization", "API YOUR_API_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)Responses
| Status | Description |
|---|---|
200 | Successful response |
401 | Unauthorized - Invalid or missing API key |
Example response (generated from the schema)
{
"data": {
"setBrandImageCredits": {
"success": true,
"error": {
"message": "string",
"code": "string",
"contextInfo": [
{
"key": "string",
"value": "string"
}
]
}
}
}
}Response body
| Name | Type | Required | Description |
|---|---|---|---|
data | object | optional | |
data.setBrandImageCredits | object | optional | |
data.setBrandImageCredits.success | boolean | optional | |
data.setBrandImageCredits.error | object | optional | |
data.setBrandImageCredits.error.message | string | optional | |
data.setBrandImageCredits.error.code | string | optional | |
data.setBrandImageCredits.error.contextInfo | array of object | optional | |
data.setBrandImageCredits.error.contextInfo[].key | string | optional | |
data.setBrandImageCredits.error.contextInfo[].value | string | optional |