POST api/smarttask/users/{userId}/tasks/{taskId}/report

POST a user report on a task

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

the user id

string

Required

taskId

the task id associated with this report

integer

Required

Body Parameters

the report contents

PostedTaskReport
NameDescriptionTypeAdditional 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

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.