POST /api/attachments

create an attachment - limit 100MB. Requires Content-Type: multipart/form-data. Administrator can decrease the maxmimum attachment size

Success Response Code: 201

Params

Param name Description
attachment
required

attachment file data to upload


Value: Must be a File

Response Fields

id id for this attachment Integer
filename name of the attachment String
url url for accessing the attachment String
public_filename url for downloading the file content String
file_extension extention for the attachment file String
content_type mime content typeof the attached file String
external_host_type name of the external host for the attachment String

Example Curl Commands

curl -X POST -F "attachment=@./path/to/file" -v --basic -u "emily@socialcast.com:demo" https://demo.socialcast.com/api/attachments.json