post https://api.spredfast.com/v2/conversations/asset?multipart
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 \
-H "Authorization: Bearer {your token}" \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-F 'asset={"sfEntityType":"Asset", "folderId": "730"};type=application/json' \
-F "[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 'asset={"sfEntityType":"Asset", "folderId": "730"};type=application/json' \
-F "[email protected]" \
-F "videoSize=1038741" \
-X POST https://api.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