Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

SetPositions

Requires Authentication
The following routes are available for this service:
All Verbs/SetPositions
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class SetPositions
    {
        /**
        * Key identifying a location
        */
        @ApiMember(Description="Key identifying a location", IsRequired=true)
        public ArrayList<Position> Positions = new ArrayList<Position>();

        /**
        * Optional: name of the stockroom where the position is located
        */
        @ApiMember(Description="Optional: name of the stockroom where the position is located")
        public String StockroomName = null;

        /**
        * Optional: overwrite existing positions defined with the same key: Yes by default
        */
        @ApiMember(Description="Optional: overwrite existing positions defined with the same key: Yes by default")
        public Boolean Overwrite = null;
        
        public ArrayList<Position> getPositions() { return Positions; }
        public SetPositions setPositions(ArrayList<Position> value) { this.Positions = value; return this; }
        public String getStockroomName() { return StockroomName; }
        public SetPositions setStockroomName(String value) { this.StockroomName = value; return this; }
        public Boolean isOverwrite() { return Overwrite; }
        public SetPositions setOverwrite(Boolean value) { this.Overwrite = value; return this; }
    }

    public static class Position
    {
        public Integer ID = null;
        public String Key = null;
        public Integer Pixel = null;
        public Integer Width = null;
        public Integer AreaID = null;
        public String AreaLabel = null;
        public String Label = null;
        public Long StockroomID = null;
        
        public Integer getId() { return ID; }
        public Position setId(Integer value) { this.ID = value; return this; }
        public String getKey() { return Key; }
        public Position setKey(String value) { this.Key = value; return this; }
        public Integer getPixel() { return Pixel; }
        public Position setPixel(Integer value) { this.Pixel = value; return this; }
        public Integer getWidth() { return Width; }
        public Position setWidth(Integer value) { this.Width = value; return this; }
        public Integer getAreaID() { return AreaID; }
        public Position setAreaID(Integer value) { this.AreaID = value; return this; }
        public String getAreaLabel() { return AreaLabel; }
        public Position setAreaLabel(String value) { this.AreaLabel = value; return this; }
        public String getLabel() { return Label; }
        public Position setLabel(String value) { this.Label = value; return this; }
        public Long getStockroomID() { return StockroomID; }
        public Position setStockroomID(Long value) { this.StockroomID = value; return this; }
    }

}

Java SetPositions DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /SetPositions HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Positions":[{"ID":0,"Key":"String","Pixel":0,"Width":0,"AreaID":0,"AreaLabel":"String","Label":"String","StockroomID":0}],"StockroomName":"String","Overwrite":false}