| POST,PATCH,OPTIONS | /v1/projects/{ProjectID}/punch/{PunchItemID}/status |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectID | path | int | No | |
| PunchItemID | path | int | No | |
| Status | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Item | form | PunchItem | No | |
| Summary | form | PunchSummary | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| PunchItemID | form | int | No | |
| PunchItemUID | form | Guid | No | |
| ProjectID | form | int | No | |
| PunchNo | form | string | No | |
| Title | form | string | No | |
| Description | form | string | No | |
| Area | form | string | No | |
| Trade | form | string | No | |
| Status | form | string | No | |
| Priority | form | string | No | |
| AssignedSub | form | string | No | |
| AssignedTo | form | string | No | |
| AssignedSubContactID | form | int? | No | |
| PhotoCount | form | int | No | |
| OriginType | form | string | No | |
| OriginRef | form | string | No | |
| OpenedAt | form | DateTime? | No | |
| VerifiedAt | form | DateTime? | No | |
| ClosedAt | form | DateTime? | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProjectID | form | int | No | |
| TotalItems | form | int | No | |
| OpenCount | form | int | No | |
| VerifyCount | form | int | No | |
| ClosedCount | form | int | No | |
| RejectedCount | form | int | No | |
| PercentComplete | form | int | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: application/json
Content-Type: application/json
Content-Length: length
{"ProjectID":0,"PunchItemID":0,"Status":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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}}