| POST,PATCH,OPTIONS | /v1/projects/{ProjectID}/punch/{PunchItemID}/status |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class PunchStatusRequest
{
public Integer ProjectID = null;
public Integer PunchItemID = null;
public String Status = null;
public Integer getProjectID() { return ProjectID; }
public PunchStatusRequest setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getPunchItemID() { return PunchItemID; }
public PunchStatusRequest setPunchItemID(Integer value) { this.PunchItemID = value; return this; }
public String getStatus() { return Status; }
public PunchStatusRequest setStatus(String value) { this.Status = value; return this; }
}
public static class PunchItemResponse
{
public ResponseStatus ResponseStatus = null;
public PunchItem Item = null;
public PunchSummary Summary = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public PunchItemResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public PunchItem getItem() { return Item; }
public PunchItemResponse setItem(PunchItem value) { this.Item = value; return this; }
public PunchSummary getSummary() { return Summary; }
public PunchItemResponse setSummary(PunchSummary value) { this.Summary = value; return this; }
}
public static class PunchItem
{
public Integer PunchItemID = null;
public UUID PunchItemUID = null;
public Integer ProjectID = null;
public String PunchNo = null;
public String Title = null;
public String Description = null;
public String Area = null;
public String Trade = null;
public String Status = null;
public String Priority = null;
public String AssignedSub = null;
public String AssignedTo = null;
public Integer AssignedSubContactID = null;
public Integer PhotoCount = null;
public String OriginType = null;
public String OriginRef = null;
public Date OpenedAt = null;
public Date VerifiedAt = null;
public Date ClosedAt = null;
public String CreatedBy = null;
public Date CreatedAt = null;
public Date UpdatedAt = null;
public Integer getPunchItemID() { return PunchItemID; }
public PunchItem setPunchItemID(Integer value) { this.PunchItemID = value; return this; }
public UUID getPunchItemUID() { return PunchItemUID; }
public PunchItem setPunchItemUID(UUID value) { this.PunchItemUID = value; return this; }
public Integer getProjectID() { return ProjectID; }
public PunchItem setProjectID(Integer value) { this.ProjectID = value; return this; }
public String getPunchNo() { return PunchNo; }
public PunchItem setPunchNo(String value) { this.PunchNo = value; return this; }
public String getTitle() { return Title; }
public PunchItem setTitle(String value) { this.Title = value; return this; }
public String getDescription() { return Description; }
public PunchItem setDescription(String value) { this.Description = value; return this; }
public String getArea() { return Area; }
public PunchItem setArea(String value) { this.Area = value; return this; }
public String getTrade() { return Trade; }
public PunchItem setTrade(String value) { this.Trade = value; return this; }
public String getStatus() { return Status; }
public PunchItem setStatus(String value) { this.Status = value; return this; }
public String getPriority() { return Priority; }
public PunchItem setPriority(String value) { this.Priority = value; return this; }
public String getAssignedSub() { return AssignedSub; }
public PunchItem setAssignedSub(String value) { this.AssignedSub = value; return this; }
public String getAssignedTo() { return AssignedTo; }
public PunchItem setAssignedTo(String value) { this.AssignedTo = value; return this; }
public Integer getAssignedSubContactID() { return AssignedSubContactID; }
public PunchItem setAssignedSubContactID(Integer value) { this.AssignedSubContactID = value; return this; }
public Integer getPhotoCount() { return PhotoCount; }
public PunchItem setPhotoCount(Integer value) { this.PhotoCount = value; return this; }
public String getOriginType() { return OriginType; }
public PunchItem setOriginType(String value) { this.OriginType = value; return this; }
public String getOriginRef() { return OriginRef; }
public PunchItem setOriginRef(String value) { this.OriginRef = value; return this; }
public Date getOpenedAt() { return OpenedAt; }
public PunchItem setOpenedAt(Date value) { this.OpenedAt = value; return this; }
public Date getVerifiedAt() { return VerifiedAt; }
public PunchItem setVerifiedAt(Date value) { this.VerifiedAt = value; return this; }
public Date getClosedAt() { return ClosedAt; }
public PunchItem setClosedAt(Date value) { this.ClosedAt = value; return this; }
public String getCreatedBy() { return CreatedBy; }
public PunchItem setCreatedBy(String value) { this.CreatedBy = value; return this; }
public Date getCreatedAt() { return CreatedAt; }
public PunchItem setCreatedAt(Date value) { this.CreatedAt = value; return this; }
public Date getUpdatedAt() { return UpdatedAt; }
public PunchItem setUpdatedAt(Date value) { this.UpdatedAt = value; return this; }
}
public static class PunchSummary
{
public Integer ProjectID = null;
public Integer TotalItems = null;
public Integer OpenCount = null;
public Integer VerifyCount = null;
public Integer ClosedCount = null;
public Integer RejectedCount = null;
public Integer PercentComplete = null;
public Integer getProjectID() { return ProjectID; }
public PunchSummary setProjectID(Integer value) { this.ProjectID = value; return this; }
public Integer getTotalItems() { return TotalItems; }
public PunchSummary setTotalItems(Integer value) { this.TotalItems = value; return this; }
public Integer getOpenCount() { return OpenCount; }
public PunchSummary setOpenCount(Integer value) { this.OpenCount = value; return this; }
public Integer getVerifyCount() { return VerifyCount; }
public PunchSummary setVerifyCount(Integer value) { this.VerifyCount = value; return this; }
public Integer getClosedCount() { return ClosedCount; }
public PunchSummary setClosedCount(Integer value) { this.ClosedCount = value; return this; }
public Integer getRejectedCount() { return RejectedCount; }
public PunchSummary setRejectedCount(Integer value) { this.RejectedCount = value; return this; }
public Integer getPercentComplete() { return PercentComplete; }
public PunchSummary setPercentComplete(Integer value) { this.PercentComplete = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/projects/{ProjectID}/punch/{PunchItemID}/status HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ProjectID":0,"PunchItemID":0,"Status":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Item":{"PunchItemID":0,"PunchItemUID":"00000000000000000000000000000000","ProjectID":0,"PunchNo":"String","Title":"String","Description":"String","Area":"String","Trade":"String","Status":"String","Priority":"String","AssignedSub":"String","AssignedTo":"String","AssignedSubContactID":0,"PhotoCount":0,"OriginType":"String","OriginRef":"String","OpenedAt":"0001-01-01T00:00:00.0000000","VerifiedAt":"0001-01-01T00:00:00.0000000","ClosedAt":"0001-01-01T00:00:00.0000000","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000"},"Summary":{"ProjectID":0,"TotalItems":0,"OpenCount":0,"VerifyCount":0,"ClosedCount":0,"RejectedCount":0,"PercentComplete":0}}