post
https://api.spredfast.com/v2/conversations/initiative//message?multipart
Publish a new Khoros Marketing multipart Message for the target Initiative
Details
This endpoint only accepts
multipart/form-datainput and consequently will not work with this API Explorer. Instead, you may use the example provided as a starting point for the main body of data and then execute via cURL.
Post with images:
curl \
--header 'Content-Type: multipart/form-data' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {your token}' \
--form 'message={"sfEntityType":"Message","service":"FACEBOOK","content":{"sfEntityType":"ImageShareList","images":[{"sfEntityType":"ImageShare","caption":"image one"},{"sfEntityType":"ImageShare","caption":"image two"},{"sfEntityType":"ImageShare","caption":"image three"}]},"targetAccountIds":["4"]};type=application/json' -F '[email protected]' \
--form '[email protected]' \
--form '[email protected]' \
-X POST 'https://api.spredfast.com/v2/conversations/initiative/{initiativeId}/message?multipart'
Content Object (one of the following)
Option 1
discriminator: sfEntityType
| Field | Type |
|---|---|
| caption | string |
Option 2
| sfEntityType | string |
| images | string or array[object] |
images Object (if images field is an array)
| caption | string |
Option 3
| videoTitle | string |
| description | string |
| tags | string. This is a required field. You can add multiple tags and delimit it by comma like tag1, tag2. |
| category | string |
| sfEntityType | string |
YouTube
When YouTube is selected as the service, the value of the category field needs to match one of the keys listed in this table:
| Key | Description |
|---|---|
Autos | Autos & Vehicles |
Comedy | Comedy |
Education | Education |
Entertainment | Entertainment |
Film | Film & Animation |
Games | Gaming |
Howto | Howto & Style |
Music | Music |
News | News & Politics |
Nonprofit | Nonprofits & Activism |
People | People & Blogs |
Animals | Pets & Animals |
Tech | Science & Technology |
Sports | Sports |
Travel | Travel & Events |
Option 4
| text | string |
| shareLink | object |
| sfEntityType | string |
shareLink Object
| url | string |
| title | string |
| description | string |
| caption | string |
| thumbnailUrl | string |