Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

{ "message": «human readable error» }

HTTP406 when invalid Content-Type header was given.

URL

http://<<ip address>>/rest/mapping

Method

POST

Description

Upload a new XLSX file to register a mapping. It will read the columns barcode, description (optional), plank and section from the first sheet. If the mandatory columns are not available, an HTTP400 error will occur. Column headers are expected on row 1, starting from column A.

On upload, all existing data will be erased and the new data is loaded.

Request

Binary Base64 encoded XLSX data.

The Content-Type header must be application/octet-stream.

Response

HTTP204 is successful

Possible Errors

HTTP400 when request was invalid

Code Block
languagejson

Status

Status
colourRed
titlepending