sfgboxapi

<back to all web services

ZonesEdit

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

public class dtos
{

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

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

        @DataMember(Order=3)
        @Validate(Validator="NotNull")
        public String name = null;

        @DataMember(Order=4)
        @Validate(Validator="NotNull")
        public Boolean isMain = null;

        @DataMember(Order=5)
        @Validate(Validator="NotNull")
        public Boolean isDefault = null;
        
        public Long getId() { return id; }
        public ZonesEdit setId(Long value) { this.id = value; return this; }
        public Long getTenantsId() { return tenantsId; }
        public ZonesEdit setTenantsId(Long value) { this.tenantsId = value; return this; }
        public String getName() { return name; }
        public ZonesEdit setName(String value) { this.name = value; return this; }
        public Boolean getIsMain() { return isMain; }
        public ZonesEdit setIsMain(Boolean value) { this.isMain = value; return this; }
        public Boolean getIsDefault() { return isDefault; }
        public ZonesEdit setIsDefault(Boolean value) { this.isDefault = value; return this; }
    }

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

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

        @DataMember(Order=3)
        public String name = null;

        @DataMember(Order=4)
        public Boolean isMain = null;

        @DataMember(Order=5)
        public Boolean isDefault = null;

        @DataMember(Order=7)
        public ResponseStatus responseStatus = null;
        
        public Long getId() { return id; }
        public ZonesEditResponse setId(Long value) { this.id = value; return this; }
        public Long getTenantsId() { return tenantsId; }
        public ZonesEditResponse setTenantsId(Long value) { this.tenantsId = value; return this; }
        public String getName() { return name; }
        public ZonesEditResponse setName(String value) { this.name = value; return this; }
        public Boolean getIsMain() { return isMain; }
        public ZonesEditResponse setIsMain(Boolean value) { this.isMain = value; return this; }
        public Boolean getIsDefault() { return isDefault; }
        public ZonesEditResponse setIsDefault(Boolean value) { this.isDefault = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public ZonesEditResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java ZonesEdit DTOs

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

HTTP + OTHER

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

PUT /zones/{Id} HTTP/1.1 
Host: api.sfgtec.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":0,"tenantsId":0,"name":"String","isMain":false,"isDefault":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":0,"tenantsId":0,"name":"String","isMain":false,"isDefault":false,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}