Skip to main content

Add or Update a Worksheet Answer Image

Sets the answer to a worksheet question. Can be called before a job is sent to the device to pre-populate the worksheet. The question must require a photo as the answer. Will replace any existing image set as the answer.

Query String Parameters

NameTypeDescriptionRequired
ActionStringJobSaveWorksheetAnswerImageRequired
JobIdIntRequired
JobRefStringJob reference.Required
QuestionIdIntRequired
AnswerNoteStringAnswer note value.Optional
AddWorksheetIfNotPresentBoolIf true, will add the worksheet to the job if not already present. 1 (true) or 0.Optional

POST Body Parameters

NameTypeDescriptionNote
Filesmultipart MIME format
AttachmentsJson objectA serialised string containing details of the file to be uploaded.
note

Example JSON object for attachment:

[
{
"Filename": "20190424_155521.jpg",
"Type": "image/jpg",
"Compressed": false
}
]

Response Codes

CodeMessageInformation
0null
2questionId parameter required
2Only one image can be added as a worksheet answer.
2jobResult
2questionResult
2Attachment info not provided
2$No information provided for file {file.FileName}
2$Multiple information objects provided for {file.FileName}
2ex.Message
2new { Blocked = blockedFiles }

Example

Request URL

https://webservice.bigchange.com/v01/services.ashx?action=jobsaveworksheetanswerimage