Images

Uploads an image.

Uploads an image to the server, setting its new stored url & checksum in the database. If an existing ID is given, this will attempt an update of the image data. The data may be sent in either multipart/form-data or JSON format. If using JSON, the image file must be Base64-encoded. Using multipart/form-data is recommended as it is a more efficient way to transmit binary data.

This endpoint is intended for associating image file data with an existing Image node in the Quantum schema.

post/api/image

Request

Request body

IDstring uuid required

UUID of the quantum image node that you want to associate this image file with.

imagestring byte required

File data to write to the server. Must be Base64-encoded if sending as JSON.

fileTypestring required

The type of file the given data represents, from a list of allowed files.

Response

OK

messagestring required

Informative message relating to image upload. Updated image url with cache bust.

urlstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.