POST api/Inspections/{id}/StatementOfWorkItem
Inserts the given statement of work item 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 item to insert.
CrmStatementOfWorkItemName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of statement of work item. |
string |
Optional |
MobileUniqueIdentifier |
Unique id of statement of work item from mobile device. |
string |
Optional |
StatementOfWorkObject |
Used to reference the related statement of work in CRM. |
EntityReference |
Optional |
Approved |
If true, the current statement of work item has been approved. |
boolean |
Optional |
Area |
Area this statement of work item relates to. |
EntityReference |
Optional |
InspectionItem |
Inspection item this statement of work item relates to. |
EntityReference |
Optional |
AreaDefinition |
Area definition this statement of work item relates to. |
EntityReference |
Optional |
InspectionItemDefinition |
Inspection item definition this statement of work item relates to. |
EntityReference |
Optional |
ProductOrService |
Product or service this statement of work item relates to. |
EntityReference |
Optional |
Cost |
Cost of the statement of work item. |
decimal number |
Optional |
Quantity |
Quantity of the statement of work item. |
decimal number |
Optional |
TotalCost |
Total cost (Cost * Quantity) of the statement of work item. |
decimal number |
Optional |
UnitType |
Unit type of the statement of work item. |
string |
Optional |
TenantResponsibilityPercentage |
Percentage of tenant's responsibility to repair/replace. Represented in whole number (i.e. 100 is 100%) |
decimal number |
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
{ "Id": "sample string 1", "MobileUniqueIdentifier": "sample string 2", "StatementOfWorkObject": { "Id": "c7d7b7ca-4a09-4bbf-a08b-0b9f43fc6211", "LogicalName": "sample string 2", "Name": "sample string 3" }, "Approved": true, "Area": { "Id": "c7d7b7ca-4a09-4bbf-a08b-0b9f43fc6211", "LogicalName": "sample string 2", "Name": "sample string 3" }, "InspectionItem": { "Id": "c7d7b7ca-4a09-4bbf-a08b-0b9f43fc6211", "LogicalName": "sample string 2", "Name": "sample string 3" }, "AreaDefinition": { "Id": "c7d7b7ca-4a09-4bbf-a08b-0b9f43fc6211", "LogicalName": "sample string 2", "Name": "sample string 3" }, "InspectionItemDefinition": { "Id": "c7d7b7ca-4a09-4bbf-a08b-0b9f43fc6211", "LogicalName": "sample string 2", "Name": "sample string 3" }, "ProductOrService": { "Id": "c7d7b7ca-4a09-4bbf-a08b-0b9f43fc6211", "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": "c7d7b7ca-4a09-4bbf-a08b-0b9f43fc6211", "LogicalName": "sample string 2", "Name": "sample string 3" }, "SystemDate": "2025-05-23T17:38:22.0110727-05:00", "CapturedDate": "2025-05-23T17:38:22.0110727-05:00" }
Response Information
Resource Description
Returns statement of work item inserted.
CrmStatementOfWorkItemName | Description | Type | Additional information |
---|---|---|---|
Id |
Id of statement of work item. |
string |
Optional |
MobileUniqueIdentifier |
Unique id of statement of work item from mobile device. |
string |
Optional |
StatementOfWorkObject |
Used to reference the related statement of work in CRM. |
EntityReference |
Optional |
Approved |
If true, the current statement of work item has been approved. |
boolean |
Optional |
Area |
Area this statement of work item relates to. |
EntityReference |
Optional |
InspectionItem |
Inspection item this statement of work item relates to. |
EntityReference |
Optional |
AreaDefinition |
Area definition this statement of work item relates to. |
EntityReference |
Optional |
InspectionItemDefinition |
Inspection item definition this statement of work item relates to. |
EntityReference |
Optional |
ProductOrService |
Product or service this statement of work item relates to. |
EntityReference |
Optional |
Cost |
Cost of the statement of work item. |
decimal number |
Optional |
Quantity |
Quantity of the statement of work item. |
decimal number |
Optional |
TotalCost |
Total cost (Cost * Quantity) of the statement of work item. |
decimal number |
Optional |
UnitType |
Unit type of the statement of work item. |
string |
Optional |
TenantResponsibilityPercentage |
Percentage of tenant's responsibility to repair/replace. Represented in whole number (i.e. 100 is 100%) |
decimal number |
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
{ "Id": "sample string 1", "MobileUniqueIdentifier": "sample string 2", "StatementOfWorkObject": { "Id": "c41a71bf-a02a-4236-a1ab-d8d5c26c0429", "LogicalName": "sample string 2", "Name": "sample string 3" }, "Approved": true, "Area": { "Id": "c41a71bf-a02a-4236-a1ab-d8d5c26c0429", "LogicalName": "sample string 2", "Name": "sample string 3" }, "InspectionItem": { "Id": "c41a71bf-a02a-4236-a1ab-d8d5c26c0429", "LogicalName": "sample string 2", "Name": "sample string 3" }, "AreaDefinition": { "Id": "c41a71bf-a02a-4236-a1ab-d8d5c26c0429", "LogicalName": "sample string 2", "Name": "sample string 3" }, "InspectionItemDefinition": { "Id": "c41a71bf-a02a-4236-a1ab-d8d5c26c0429", "LogicalName": "sample string 2", "Name": "sample string 3" }, "ProductOrService": { "Id": "c41a71bf-a02a-4236-a1ab-d8d5c26c0429", "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": "c41a71bf-a02a-4236-a1ab-d8d5c26c0429", "LogicalName": "sample string 2", "Name": "sample string 3" }, "SystemDate": "2025-05-23T17:38:22.0110727-05:00", "CapturedDate": "2025-05-23T17:38:22.0110727-05:00" }