POST api/smarttask/users/{userId}/tasks/{taskId}/report
POST a user report on a task
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
the user id |
string |
Required |
| taskId |
the task id associated with this report |
integer |
Required |
Body Parameters
the report contents
PostedTaskReport| Name | Description | Type | Additional information |
|---|---|---|---|
| Comment | string |
None. |
|
| Srid | integer |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
|
| UploadFile | UploadFile |
None. |
Request Formats
application/json, text/json
Sample:
{
"Comment": "sample string 1",
"Srid": 1,
"Latitude": 2.1,
"Longitude": 3.1,
"UploadFile": {
"FileName": "sample string 1",
"MimeType": "sample string 2",
"FileData": "QEA="
}
}
text/html
Sample:
{"Comment":"sample string 1","Srid":1,"Latitude":2.1,"Longitude":3.1,"UploadFile":{"FileName":"sample string 1","MimeType":"sample string 2","FileData":"QEA="}}
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.