POST api/Inspection/mobileinspectionattachment

Request Information

URI Parameters

None.

Body Parameters

MobileInspectionAttachment
NameDescriptionTypeAdditional information
AccountID

integer

None.

InspectionHistoryID

integer

None.

QuestionID

integer

None.

AttachmentType

string

None.

AttachmentName

string

None.

AttachmentContent

Collection of byte

None.

UserName

string

None.

LastChangedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountID": 1,
  "InspectionHistoryID": 2,
  "QuestionID": 1,
  "AttachmentType": "sample string 3",
  "AttachmentName": "sample string 4",
  "AttachmentContent": "QEA=",
  "UserName": "sample string 5",
  "LastChangedDate": "2024-05-18T05:54:39.6726411Z"
}

application/xml, text/xml

Sample:
<MobileInspectionAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <_x003C_AccountID_x003E_k__BackingField>1</_x003C_AccountID_x003E_k__BackingField>
  <_x003C_AttachmentContent_x003E_k__BackingField>QEA=</_x003C_AttachmentContent_x003E_k__BackingField>
  <_x003C_AttachmentName_x003E_k__BackingField>sample string 4</_x003C_AttachmentName_x003E_k__BackingField>
  <_x003C_AttachmentType_x003E_k__BackingField>sample string 3</_x003C_AttachmentType_x003E_k__BackingField>
  <_x003C_InspectionHistoryID_x003E_k__BackingField>2</_x003C_InspectionHistoryID_x003E_k__BackingField>
  <_x003C_LastChangedDate_x003E_k__BackingField>2024-05-18T05:54:39.6726411+00:00</_x003C_LastChangedDate_x003E_k__BackingField>
  <_x003C_QuestionID_x003E_k__BackingField>1</_x003C_QuestionID_x003E_k__BackingField>
  <_x003C_UserName_x003E_k__BackingField>sample string 5</_x003C_UserName_x003E_k__BackingField>
</MobileInspectionAttachment>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'MobileInspectionAttachment'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

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