MLS Image

Image (/mls/image)


uploadImage

URI

/uploadImage

HTTP method

POST

Access scope

privilege Edit

Parameters

listingId (integer)* - id of listing
Filedata (byte[]) - the content of an image file

Result

Id of image

{id : (integer)}

Description

Uploads an image

deleteImage

URI

/deleteImage

HTTP method

POST

Access scope

privilege Edit

Parameters

id (integer)* - the id of an image

Result


Description

Deletes an image (marks an image as deleted)

moveImage

URI

/moveImage

HTTP method

POST

Access scope

privilege Edit

Parameters

listingId (integer)* - id of listing 
id (integer)* - the id of an image to move
newPosition (integer)* - a new position (index) of the image

Result


Description

Changes the position of a given image

Count of position start from "0" (zero)