sfgboxapi

<back to all web services

ZonesCoordinatesEdit

Requires Authentication
The following routes are available for this service:
PUT/zones_coordinates/{Id}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class ZonesCoordinatesEdit
    {
        @DataMember(Order=1)
        @Validate(Validator="NotNull")
        public Long id = null;

        @DataMember(Order=2)
        @Validate(Validator="NotNull")
        public Long zonesId = null;

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public Integer position = null;

        @DataMember(Order=4)
        @Validate(Validator="NotNull")
        public Double latitude = null;

        @DataMember(Order=5)
        @Validate(Validator="NotNull")
        public Double longitude = null;
        
        public Long getId() { return id; }
        public ZonesCoordinatesEdit setId(Long value) { this.id = value; return this; }
        public Long getZonesId() { return zonesId; }
        public ZonesCoordinatesEdit setZonesId(Long value) { this.zonesId = value; return this; }
        public Integer getPosition() { return position; }
        public ZonesCoordinatesEdit setPosition(Integer value) { this.position = value; return this; }
        public Double getLatitude() { return latitude; }
        public ZonesCoordinatesEdit setLatitude(Double value) { this.latitude = value; return this; }
        public Double getLongitude() { return longitude; }
        public ZonesCoordinatesEdit setLongitude(Double value) { this.longitude = value; return this; }
    }

    public static class ZonesCoordinatesEditResponse
    {
        @DataMember(Order=1)
        public Long id = null;

        @DataMember(Order=2)
        public Long zonesId = null;

        @DataMember(Order=3)
        public Integer position = null;

        @DataMember(Order=4)
        public Double latitude = null;

        @DataMember(Order=5)
        public Double longitude = null;

        @DataMember(Order=7)
        public ResponseStatus responseStatus = null;
        
        public Long getId() { return id; }
        public ZonesCoordinatesEditResponse setId(Long value) { this.id = value; return this; }
        public Long getZonesId() { return zonesId; }
        public ZonesCoordinatesEditResponse setZonesId(Long value) { this.zonesId = value; return this; }
        public Integer getPosition() { return position; }
        public ZonesCoordinatesEditResponse setPosition(Integer value) { this.position = value; return this; }
        public Double getLatitude() { return latitude; }
        public ZonesCoordinatesEditResponse setLatitude(Double value) { this.latitude = value; return this; }
        public Double getLongitude() { return longitude; }
        public ZonesCoordinatesEditResponse setLongitude(Double value) { this.longitude = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public ZonesCoordinatesEditResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java ZonesCoordinatesEdit 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.

PUT /zones_coordinates/{Id} HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"id":0,"zonesId":0,"position":0,"latitude":0,"longitude":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":0,"zonesId":0,"position":0,"latitude":0,"longitude":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}