Create Image or Video

Create a new image/video Content Center Asset

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:

Create Image Asset:

curl \
    --header "Authorization: Bearer {your token}" \
    --header "Content-Type: multipart/form-data" \
    --header "Accept: application/json" \
    --form "[email protected];type=application/json" \
    --form "[email protected]" \
    -X POST "https://api.spredfast.com/v2/conversations/asset"

Create Video Asset:

curl \
    -H "Authorization: Bearer {your token}" \
    -H "Content-Type: multipart/form-data" \
    -H "Accept: application/json" \
    -F "[email protected];type=application/json" \
    -F "[email protected]" \
    -F "videoSize=1038741" \
    -X POST https://qa2api.spredfast.com/v2/conversations/asset

Additional Information

name field

If not present, the following defaults will be applied:

  • For a Text Asset: the first few words from the text will be used
  • For an Image Asset: the file name will be used
  • For a Video Asset: the file name will be used
Language
Click Try It! to start a request and see the response here!