Add Barcode Image

The add barcode image API will save an image to a specific location related to a client and asset.

A valid x-Auth-token header related to the client to which the barcode scan image is being saved is required.


URI

Development

https://api.zetasafe.net/dev/ext/barcodeimage/add

Production

https://api.zetasafe.net/ext/barcodeimage/add

Method

POST

Content Type

application/json

Max File Size is 300KB

Supported Media Types:

  • .png
  • .jpg
  • .jpeg

Example Upload

In the example, bytes has had the contents shortened. bytes should contain the entire base64 encoded file.

{
	"bytes": "I1+FUur3UoiSC7QyQKZMZxuzCc4z09eetdWAq4lSVCq0136\/kceKp0re0grH\/\/Z",
	"fileName": "EF531E45-D227-4B07-A896-3C73BC805BE4.jpg"
}

Responses:

200: OK

This successful response is the new ZetaSafe asset PK (Primary Key). This can be used for any additional related data which is required

415: Unsupported Media Type

445: Cannot Find Client/Asset

401: Unauthorised/Access Denied

413: Payload Too Large

500: Error with the internal process of adding a location.