Overview

Uploads an attachment as a binary stream

POST /api/content/files/upload

Deletes a single attachment specified by its upload ID

DELETE /api/content/files/{uploadId}


Descriptions


Uploads an attachment as binary stream.

POST /api/content/files/upload

Uploads a single attachment as a stream, and returns a unique ID of it.

Do not use multipart/form-data.

Response

Returns

http 201 - OK, call successful.
http 401 - Unauthorized if the authentication process has failed.
http 404 - Will be returned if the attachment (specified by its ID) does not exist.

Data structure

Property

Type

Description

uploadId

String

The unique ID of the uploaded attachment.

md5

String

The md5 string for checking correct file upload.

length

number

The file length.

contentType

String

The user defined content type. Can be specified in the request header as Content-Type.


Deletes a single attachment specified by its upload ID.

This attachment must have been previously uploaded.

DELETE /api/content/files/{uploadId}

Response

Returns

http 200 - OK, call successful.
http 401 - Unauthorized if the authentication process has failed.
http 404 - Will be returned if the attachment (specified by its ID) does not exist.