sfgboxapi

<back to all web services

GrowplansBoxesEdit

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

public class dtos
{

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

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

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

        @DataMember(Order=4)
        @Validate(Validator="NotNull")
        public Integer xAxis = null;

        @DataMember(Order=5)
        @Validate(Validator="NotNull")
        public Integer yAxis = null;

        @DataMember(Order=6)
        @Validate(Validator="NotNull")
        public Long growplansOutcomesId = null;

        @DataMember(Order=7)
        @Validate(Validator="NotNull")
        public Integer months = null;

        @DataMember(Order=8)
        public Date startDate = null;
        
        public Long getId() { return id; }
        public GrowplansBoxesEdit setId(Long value) { this.id = value; return this; }
        public Long getGrowplansUsersId() { return growplansUsersId; }
        public GrowplansBoxesEdit setGrowplansUsersId(Long value) { this.growplansUsersId = value; return this; }
        public String getName() { return name; }
        public GrowplansBoxesEdit setName(String value) { this.name = value; return this; }
        public Integer getXAxis() { return xAxis; }
        public GrowplansBoxesEdit setXAxis(Integer value) { this.xAxis = value; return this; }
        public Integer getYAxis() { return yAxis; }
        public GrowplansBoxesEdit setYAxis(Integer value) { this.yAxis = value; return this; }
        public Long getGrowplansOutcomesId() { return growplansOutcomesId; }
        public GrowplansBoxesEdit setGrowplansOutcomesId(Long value) { this.growplansOutcomesId = value; return this; }
        public Integer getMonths() { return months; }
        public GrowplansBoxesEdit setMonths(Integer value) { this.months = value; return this; }
        public Date getStartDate() { return startDate; }
        public GrowplansBoxesEdit setStartDate(Date value) { this.startDate = value; return this; }
    }

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

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

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

        @DataMember(Order=4)
        public Integer xAxis = null;

        @DataMember(Order=5)
        public Integer yAxis = null;

        @DataMember(Order=6)
        public Long growplansOutcomesId = null;

        @DataMember(Order=7)
        public Integer months = null;

        @DataMember(Order=8)
        public Date startDate = null;

        @DataMember(Order=10)
        public ResponseStatus responseStatus = null;
        
        public Long getId() { return id; }
        public GrowplansBoxesEditResponse setId(Long value) { this.id = value; return this; }
        public Long getGrowplansUsersId() { return growplansUsersId; }
        public GrowplansBoxesEditResponse setGrowplansUsersId(Long value) { this.growplansUsersId = value; return this; }
        public String getName() { return name; }
        public GrowplansBoxesEditResponse setName(String value) { this.name = value; return this; }
        public Integer getXAxis() { return xAxis; }
        public GrowplansBoxesEditResponse setXAxis(Integer value) { this.xAxis = value; return this; }
        public Integer getYAxis() { return yAxis; }
        public GrowplansBoxesEditResponse setYAxis(Integer value) { this.yAxis = value; return this; }
        public Long getGrowplansOutcomesId() { return growplansOutcomesId; }
        public GrowplansBoxesEditResponse setGrowplansOutcomesId(Long value) { this.growplansOutcomesId = value; return this; }
        public Integer getMonths() { return months; }
        public GrowplansBoxesEditResponse setMonths(Integer value) { this.months = value; return this; }
        public Date getStartDate() { return startDate; }
        public GrowplansBoxesEditResponse setStartDate(Date value) { this.startDate = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public GrowplansBoxesEditResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

Java GrowplansBoxesEdit 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 /growplans_boxes/{Id} HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id":0,"growplansUsersId":0,"name":"String","xAxis":0,"yAxis":0,"growplansOutcomesId":0,"months":0,"startDate":"\/Date(-62135596800000-0000)\/"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id":0,"growplansUsersId":0,"name":"String","xAxis":0,"yAxis":0,"growplansOutcomesId":0,"months":0,"startDate":"\/Date(-62135596800000-0000)\/","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}