Trendsic Platform Service

<back to all web services

PunchStatusRequest

Requires Authentication
The following routes are available for this service:
POST,PATCH,OPTIONS/v1/projects/{ProjectID}/punch/{PunchItemID}/status
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class PunchStatusRequest
{
    open var ProjectID:Int? = null
    open var PunchItemID:Int? = null
    open var Status:String? = null
}

open class PunchItemResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Item:PunchItem? = null
    open var Summary:PunchSummary? = null
}

open class PunchItem
{
    open var PunchItemID:Int? = null
    open var PunchItemUID:UUID? = null
    open var ProjectID:Int? = null
    open var PunchNo:String? = null
    open var Title:String? = null
    open var Description:String? = null
    open var Area:String? = null
    open var Trade:String? = null
    open var Status:String? = null
    open var Priority:String? = null
    open var AssignedSub:String? = null
    open var AssignedTo:String? = null
    open var AssignedSubContactID:Int? = null
    open var PhotoCount:Int? = null
    open var OriginType:String? = null
    open var OriginRef:String? = null
    open var OpenedAt:Date? = null
    open var VerifiedAt:Date? = null
    open var ClosedAt:Date? = null
    open var CreatedBy:String? = null
    open var CreatedAt:Date? = null
    open var UpdatedAt:Date? = null
}

open class PunchSummary
{
    open var ProjectID:Int? = null
    open var TotalItems:Int? = null
    open var OpenCount:Int? = null
    open var VerifyCount:Int? = null
    open var ClosedCount:Int? = null
    open var RejectedCount:Int? = null
    open var PercentComplete:Int? = null
}

Kotlin PunchStatusRequest 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.

POST /v1/projects/{ProjectID}/punch/{PunchItemID}/status HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ProjectID":0,"PunchItemID":0,"Status":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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}}