Maps

Sets the images for a map, given an 'imageIDs' array. For new images, give an stringified integer between one-five for each place, which will be used to index into the array of files on the multipart form. For existing images, give its ID (uuid). Any IDs *not* included will be deleted. Say a map has two existing images (shortened here), abcdefgh-1234, stuvwxyz-6789. For example, calling this endpoint two image files and imageIDs = [1, abcdefgh-1234, 0], and we would order the second file first, then abcdefgh-1234, then the first file, deleting stuvwxyz-6789. The two new images would be issued new uuids, and stored relative to that ID.

put/v1/maps/{mapID}/images

Request

  • Base URL
    https://api.momentum-mod.org (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

mapIDnumber required

Target Map ID

Request body multipart/form-data

Response

The newly created map image

unknown required

Changes

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