| PUT,OPTIONS | /v1/inspections/{InspectionUID}/requests/{InspectionRequestID} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InspectionUID | path | Guid | No | |
| InspectionRequestID | path | int | No | |
| Status | body | string | No | |
| ConfirmationNo | body | string | No | |
| Outcome | body | string | No | |
| RequestedDate | body | DateTime? | No | |
| RequestedWindow | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| Requests | form | List<InspectionRequest> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| InspectionRequestID | form | int | No | |
| InspectionID | form | int | No | |
| Agency | form | string | No | |
| ContactName | form | string | No | |
| ContactPhone | form | string | No | |
| PermitNo | form | string | No | |
| RequestedDate | form | DateTime? | No | |
| RequestedWindow | form | string | No | |
| Status | form | string | No | |
| ConfirmationNo | form | string | No | |
| Outcome | form | string | No | |
| CreatedBy | form | string | No | |
| CreatedAt | form | DateTime? | No | |
| UpdatedAt | form | DateTime? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /v1/inspections/{InspectionUID}/requests/{InspectionRequestID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
InspectionUID: 00000000000000000000000000000000,
InspectionRequestID: 0,
Status: String,
ConfirmationNo: String,
Outcome: String,
RequestedDate: 0001-01-01,
RequestedWindow: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Requests:
[
{
InspectionRequestID: 0,
InspectionID: 0,
Agency: String,
ContactName: String,
ContactPhone: String,
PermitNo: String,
RequestedDate: 0001-01-01,
RequestedWindow: String,
Status: String,
ConfirmationNo: String,
Outcome: String,
CreatedBy: String,
CreatedAt: 0001-01-01,
UpdatedAt: 0001-01-01
}
]
}