Update a Multipart Message

This endpoint is used to update an existing multi-part Khoros Marketing Message

Details

This endpoint only accepts multipart/form-data input and consequenlty 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 similar to:

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' \
	--form '[email protected]' \
	--form '[email protected]' \
	--form '[email protected]' \
	-X PUT'https://api.spredfast.com/v2/conversations/initiative/{initiativeId}/message/{messageId}?multipart'

Content Object (one of the following)

Option 1

discriminator: sfEntityType

FieldType
captionstring
temporaryImageUrlstring
temporaryThumbnailUrlstring

Option 2

sfEntityTypestring
imagesstring or array[object]

images Object (if images field is an array)

captionstring
temporaryImageUrlstring
temporaryThumbnailUrlstring

Option 3

videoTitlestring
descriptionstring
tagsstring
categorystring
sfEntityTypestring

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:

KeyDescription
AutosAutos & Vehicles
ComedyComedy
EducationEducation
EntertainmentEntertainment
FilmFilm & Animation
GamesGaming
HowtoHowto & Style
MusicMusic
NewsNews & Politics
NonprofitNonprofits & Activism
PeoplePeople & Blogs
AnimalsPets & Animals
TechScience & Technology
SportsSports
TravelTravel & Events

Option 4

textstring
shareLinkobject
sfEntityTypestring

shareLink Object

urlstring
titlestring
descriptionstring
captionstring
thumbnailUrlstring
Language
Click Try It! to start a request and see the response here!