PATCH api/Inspections/{id}/StatementOfWork
Inserts the given statement of work to crm. Note: Requires a valid access token to be provided in the request's auth header.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Id of inspection. |
string |
Required |
Body Parameters
Statement of work to insert.
CrmStatementOfWork| Name | Description | Type | Additional information |
|---|---|---|---|
| StatementOfWorkItems |
List of related statement of work items. |
Collection of CrmStatementOfWorkItem |
Optional |
| Id |
Id of statement of work. |
string |
Optional |
| ApprovalStatus |
Approval status of statement of work. |
string |
Optional |
| ApprovalDate |
Date the statement of work was approved. |
date |
Optional |
| ProjectObject |
Used to reference the related project in CRM. |
EntityReference |
Optional |
| ProposedEstimatedCost |
Proposed estimated cost of the statement of work. |
decimal number |
Optional |
| ApprovedEstimatedCost |
Approved estimated cost of the statement of work. |
decimal number |
Optional |
| CostVariance |
Cost variance between the proposed and approved estimated costs. |
decimal number |
Optional |
| ApprovedEstimatedCostPostMarkup |
The sum of statement of work items that have been approved with our current markup rate. |
decimal number |
Optional |
| Type |
Type of statement of work. |
string |
Optional |
| Media |
List of media items associated with the statement of work. |
Collection of CrmMedia |
Optional |
| SqftVariance |
The Sqft Variance between Home sqft and sum of sqft for SWITs under the Flooring category |
string |
Optional |
| Reference |
Used to reference the entity in CRM. |
EntityReference |
Optional |
| SystemDate |
Current system date of the client that created this object. |
date |
Optional |
| CapturedDate |
Date and time the client created this object. |
date |
Optional |
Request Formats
application/json, text/json
{
"StatementOfWorkItems": [
{
"Id": "sample string 1",
"MobileUniqueIdentifier": "sample string 2",
"StatementOfWorkObject": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Approved": true,
"Area": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItem": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"AreaDefinition": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItemDefinition": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"ProductOrService": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Cost": 1.0,
"Quantity": 1.0,
"TotalCost": 1.0,
"UnitType": "sample string 3",
"TenantResponsibilityPercentage": 1.0,
"Reference": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1573619-05:00",
"CapturedDate": "2025-10-30T10:20:56.1573619-05:00"
},
{
"Id": "sample string 1",
"MobileUniqueIdentifier": "sample string 2",
"StatementOfWorkObject": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Approved": true,
"Area": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItem": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"AreaDefinition": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItemDefinition": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"ProductOrService": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Cost": 1.0,
"Quantity": 1.0,
"TotalCost": 1.0,
"UnitType": "sample string 3",
"TenantResponsibilityPercentage": 1.0,
"Reference": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1573619-05:00",
"CapturedDate": "2025-10-30T10:20:56.1573619-05:00"
}
],
"Id": "sample string 1",
"ApprovalStatus": "sample string 2",
"ApprovalDate": "2025-10-30T10:20:56.1573619-05:00",
"ProjectObject": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"ProposedEstimatedCost": 1.0,
"ApprovedEstimatedCost": 1.0,
"CostVariance": 1.0,
"ApprovedEstimatedCostPostMarkup": 1.0,
"Type": "sample string 3",
"Media": [
{
"MediaId": 1,
"Tags": [
"sample string 1",
"sample string 2"
],
"Data": "sample string 2",
"Name": "sample string 3",
"Caption": "sample string 4",
"MediaKey": "sample string 5",
"Ordinal": 6,
"MimeType": "sample string 7",
"Url": "sample string 8",
"Latitude": 1.1,
"Longitude": 1.1,
"IsAnnotation": true,
"IsThumbnail": true,
"Height": 1,
"Width": 1,
"Reference": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1573619-05:00",
"CapturedDate": "2025-10-30T10:20:56.1573619-05:00"
},
{
"MediaId": 1,
"Tags": [
"sample string 1",
"sample string 2"
],
"Data": "sample string 2",
"Name": "sample string 3",
"Caption": "sample string 4",
"MediaKey": "sample string 5",
"Ordinal": 6,
"MimeType": "sample string 7",
"Url": "sample string 8",
"Latitude": 1.1,
"Longitude": 1.1,
"IsAnnotation": true,
"IsThumbnail": true,
"Height": 1,
"Width": 1,
"Reference": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1573619-05:00",
"CapturedDate": "2025-10-30T10:20:56.1573619-05:00"
}
],
"SqftVariance": "sample string 4",
"Reference": {
"Id": "8c5f6340-0e13-453f-b415-21b6f6b68290",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1573619-05:00",
"CapturedDate": "2025-10-30T10:20:56.1573619-05:00"
}
Response Information
Resource Description
Returns statement of work inserted.
CrmStatementOfWork| Name | Description | Type | Additional information |
|---|---|---|---|
| StatementOfWorkItems |
List of related statement of work items. |
Collection of CrmStatementOfWorkItem |
Optional |
| Id |
Id of statement of work. |
string |
Optional |
| ApprovalStatus |
Approval status of statement of work. |
string |
Optional |
| ApprovalDate |
Date the statement of work was approved. |
date |
Optional |
| ProjectObject |
Used to reference the related project in CRM. |
EntityReference |
Optional |
| ProposedEstimatedCost |
Proposed estimated cost of the statement of work. |
decimal number |
Optional |
| ApprovedEstimatedCost |
Approved estimated cost of the statement of work. |
decimal number |
Optional |
| CostVariance |
Cost variance between the proposed and approved estimated costs. |
decimal number |
Optional |
| ApprovedEstimatedCostPostMarkup |
The sum of statement of work items that have been approved with our current markup rate. |
decimal number |
Optional |
| Type |
Type of statement of work. |
string |
Optional |
| Media |
List of media items associated with the statement of work. |
Collection of CrmMedia |
Optional |
| SqftVariance |
The Sqft Variance between Home sqft and sum of sqft for SWITs under the Flooring category |
string |
Optional |
| Reference |
Used to reference the entity in CRM. |
EntityReference |
Optional |
| SystemDate |
Current system date of the client that created this object. |
date |
Optional |
| CapturedDate |
Date and time the client created this object. |
date |
Optional |
Response Formats
application/json, text/json
{
"StatementOfWorkItems": [
{
"Id": "sample string 1",
"MobileUniqueIdentifier": "sample string 2",
"StatementOfWorkObject": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Approved": true,
"Area": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItem": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"AreaDefinition": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItemDefinition": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"ProductOrService": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Cost": 1.0,
"Quantity": 1.0,
"TotalCost": 1.0,
"UnitType": "sample string 3",
"TenantResponsibilityPercentage": 1.0,
"Reference": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1573619-05:00",
"CapturedDate": "2025-10-30T10:20:56.1573619-05:00"
},
{
"Id": "sample string 1",
"MobileUniqueIdentifier": "sample string 2",
"StatementOfWorkObject": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Approved": true,
"Area": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItem": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"AreaDefinition": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"InspectionItemDefinition": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"ProductOrService": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"Cost": 1.0,
"Quantity": 1.0,
"TotalCost": 1.0,
"UnitType": "sample string 3",
"TenantResponsibilityPercentage": 1.0,
"Reference": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1573619-05:00",
"CapturedDate": "2025-10-30T10:20:56.1573619-05:00"
}
],
"Id": "sample string 1",
"ApprovalStatus": "sample string 2",
"ApprovalDate": "2025-10-30T10:20:56.1573619-05:00",
"ProjectObject": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"ProposedEstimatedCost": 1.0,
"ApprovedEstimatedCost": 1.0,
"CostVariance": 1.0,
"ApprovedEstimatedCostPostMarkup": 1.0,
"Type": "sample string 3",
"Media": [
{
"MediaId": 1,
"Tags": [
"sample string 1",
"sample string 2"
],
"Data": "sample string 2",
"Name": "sample string 3",
"Caption": "sample string 4",
"MediaKey": "sample string 5",
"Ordinal": 6,
"MimeType": "sample string 7",
"Url": "sample string 8",
"Latitude": 1.1,
"Longitude": 1.1,
"IsAnnotation": true,
"IsThumbnail": true,
"Height": 1,
"Width": 1,
"Reference": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1730073-05:00",
"CapturedDate": "2025-10-30T10:20:56.1730073-05:00"
},
{
"MediaId": 1,
"Tags": [
"sample string 1",
"sample string 2"
],
"Data": "sample string 2",
"Name": "sample string 3",
"Caption": "sample string 4",
"MediaKey": "sample string 5",
"Ordinal": 6,
"MimeType": "sample string 7",
"Url": "sample string 8",
"Latitude": 1.1,
"Longitude": 1.1,
"IsAnnotation": true,
"IsThumbnail": true,
"Height": 1,
"Width": 1,
"Reference": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1730073-05:00",
"CapturedDate": "2025-10-30T10:20:56.1730073-05:00"
}
],
"SqftVariance": "sample string 4",
"Reference": {
"Id": "057b07d5-185e-4492-82ef-2a4f0966ef8a",
"LogicalName": "sample string 2",
"Name": "sample string 3"
},
"SystemDate": "2025-10-30T10:20:56.1730073-05:00",
"CapturedDate": "2025-10-30T10:20:56.1730073-05:00"
}