| POST,PATCH,OPTIONS | /v1/projects/{ProjectID}/punch/{PunchItemID}/status |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class PunchItem
Public Overridable Property PunchItemID As Integer
Public Overridable Property PunchItemUID As Guid
Public Overridable Property ProjectID As Integer
Public Overridable Property PunchNo As String
Public Overridable Property Title As String
Public Overridable Property Description As String
Public Overridable Property Area As String
Public Overridable Property Trade As String
Public Overridable Property Status As String
Public Overridable Property Priority As String
Public Overridable Property AssignedSub As String
Public Overridable Property AssignedTo As String
Public Overridable Property AssignedSubContactID As Integer?
Public Overridable Property PhotoCount As Integer
Public Overridable Property OriginType As String
Public Overridable Property OriginRef As String
Public Overridable Property OpenedAt As Date?
Public Overridable Property VerifiedAt As Date?
Public Overridable Property ClosedAt As Date?
Public Overridable Property CreatedBy As String
Public Overridable Property CreatedAt As Date?
Public Overridable Property UpdatedAt As Date?
End Class
Public Partial Class PunchItemResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property Item As PunchItem
Public Overridable Property Summary As PunchSummary
End Class
Public Partial Class PunchStatusRequest
Public Overridable Property ProjectID As Integer
Public Overridable Property PunchItemID As Integer
Public Overridable Property Status As String
End Class
Public Partial Class PunchSummary
Public Overridable Property ProjectID As Integer
Public Overridable Property TotalItems As Integer
Public Overridable Property OpenCount As Integer
Public Overridable Property VerifyCount As Integer
Public Overridable Property ClosedCount As Integer
Public Overridable Property RejectedCount As Integer
Public Overridable Property PercentComplete As Integer
End Class
End Namespace
End Namespace
VB.NET PunchStatusRequest DTOs
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}}