POST v1/Clients/{clientId}/Inspections/{inspectionId}/Questions/{questionId}/Attachments

Get an attachment to the specified inspection question.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientId

Client identifier.

globally unique identifier

Required

inspectionId

Inspection identifier.

integer

Required

questionId

Inspection question identifier.

integer

Required

Body Parameters

Inspection question attachment.

InspectionQuestionAttachmentV1
NameDescriptionTypeAdditional information
Id

The inspection question attachment Id.

integer

None.

Name

The file attachment name.

string

None.

AttachmentBytes

The bytes for the file attachment.

Collection of byte

None.

Notes

The file attachment notes.

string

None.

OriginalFileName

The original file name.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "AttachmentBytes": "QEA=",
  "Notes": "sample string 3",
  "OriginalFileName": "sample string 4"
}

application/xml, text/xml

Sample:
<InspectionQuestionAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Titan.API.Inspection.Models">
  <AttachmentBytes>QEA=</AttachmentBytes>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <Notes>sample string 3</Notes>
  <OriginalFileName>sample string 4</OriginalFileName>
</InspectionQuestionAttachment>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The id of the new attachment.

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>