POST api/smarttask/users/{userId}/supervision
Saves the supervision task.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId |
The user identifier. |
string |
Required |
Body Parameters
The task
SupervisionTaskName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
AssetId | integer |
None. |
|
ByUserId | string |
None. |
|
SupervisedAssets | Collection of InspectionTask |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "AssetId": 2, "ByUserId": "sample string 3", "SupervisedAssets": [ { "Id": 1, "AssetId": 2, "CauseIds": [ "sample string 1", "sample string 2" ], "Comment": "sample string 3" }, { "Id": 1, "AssetId": 2, "CauseIds": [ "sample string 1", "sample string 2" ], "Comment": "sample string 3" } ] }
text/html
Sample:
{"Id":1,"AssetId":2,"ByUserId":"sample string 3","SupervisedAssets":[{"Id":1,"AssetId":2,"CauseIds":["sample string 1","sample string 2"],"Comment":"sample string 3"},{"Id":1,"AssetId":2,"CauseIds":["sample string 1","sample string 2"],"Comment":"sample string 3"}]}
Response Information
Resource Description
HttpActionResult
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.