POSTapi.synup.com/api/v4/bulk-posts
Create a bulk post
Requires an API key. Send it as
Authorization: API <your-key> — see Getting started.Parameters
Headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type | string | required |
Body
| Name | Type | Required | Description |
|---|---|---|---|
input | object | required | |
input.postName | string | required | |
input.locationIds | array of string | required | |
input.postType | string | required | |
input.postSites | array of string | required | |
input.postMessage | array of object | required | |
input.postMessage[].site | string | optional | |
input.postMessage[].message | string | optional |
Request
Request
curl -X POST 'https://api.synup.com/api/v4/bulk-posts' \
-H 'Authorization: API YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"input": {
"postName": "Bulk Announcement",
"locationIds": [
"{locationId1}",
"{locationId2}"
],
"postType": "ANNOUNCEMENT",
"postSites": [
"GOOGLE"
],
"postMessage": [
{
"site": "GOOGLE",
"message": "Message for all locations"
}
]
}
}'const res = await fetch('https://api.synup.com/api/v4/bulk-posts', {
method: 'POST',
headers: {
Authorization: 'API YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"input": {
"postName": "Bulk Announcement",
"locationIds": [
"{locationId1}",
"{locationId2}"
],
"postType": "ANNOUNCEMENT",
"postSites": [
"GOOGLE"
],
"postMessage": [
{
"site": "GOOGLE",
"message": "Message for all locations"
}
]
}
}),
});
const data = await res.json();import requests
res = requests.post(
"https://api.synup.com/api/v4/bulk-posts",
headers={
"Authorization": "API YOUR_API_KEY",
"Content-Type": "application/json",
},
json={
"input": {
"postName": "Bulk Announcement",
"locationIds": [
"{locationId1}",
"{locationId2}"
],
"postType": "ANNOUNCEMENT",
"postSites": [
"GOOGLE"
],
"postMessage": [
{
"site": "GOOGLE",
"message": "Message for all locations"
}
]
}
},
)
data = res.json()req, _ := http.NewRequest("POST", "https://api.synup.com/api/v4/bulk-posts", 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 |
Example response (generated from the schema)
{}