POST api/Asset/mobileassetattachment

Request Information

URI Parameters

None.

Body Parameters

AssetAttachment
NameDescriptionTypeAdditional information
ID

integer

None.

AssetId

integer

None.

AttachmentID

integer

None.

UserName

string

None.

LastChanged

date

None.

Attachment

Attachment

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "AssetId": 2,
  "AttachmentID": 3,
  "UserName": "sample string 4",
  "LastChanged": "2024-05-18T07:33:29.474555Z",
  "Attachment": {
    "ID": 1,
    "AttachmentName": "sample string 2",
    "AttachmentContent": "QEA=",
    "AttachmentType": "sample string 3",
    "AccountID": 4,
    "UserName": "sample string 5",
    "LastChanged": "2024-05-18T07:33:29.474555Z"
  }
}

application/xml, text/xml

Sample:
<AssetAttachment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <AssetId>2</AssetId>
  <Attachment>
    <AccountID>4</AccountID>
    <AttachmentContent>QEA=</AttachmentContent>
    <AttachmentName>sample string 2</AttachmentName>
    <AttachmentType>sample string 3</AttachmentType>
    <ID>1</ID>
    <LastChanged>2024-05-18T07:33:29.474555+00:00</LastChanged>
    <UserName>sample string 5</UserName>
  </Attachment>
  <AttachmentID>3</AttachmentID>
  <ID>1</ID>
  <LastChanged>2024-05-18T07:33:29.474555+00:00</LastChanged>
  <UserName>sample string 4</UserName>
</AssetAttachment>

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 'AssetAttachment'.

Response Information

Resource Description

Collection of MobileSaveResult
NameDescriptionTypeAdditional information
OldID

integer

None.

NewID

integer

None.

OldNumber

string

None.

NewNumber

string

None.

Message

string

None.

Type

string

None.

IsError

boolean

None.

AccountID

integer

None.

BuildingID

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "OldID": 1,
    "NewID": 2,
    "OldNumber": "sample string 3",
    "NewNumber": "sample string 4",
    "Message": "sample string 5",
    "Type": "sample string 6",
    "IsError": true,
    "AccountID": 8,
    "BuildingID": 9
  },
  {
    "OldID": 1,
    "NewID": 2,
    "OldNumber": "sample string 3",
    "NewNumber": "sample string 4",
    "Message": "sample string 5",
    "Type": "sample string 6",
    "IsError": true,
    "AccountID": 8,
    "BuildingID": 9
  }
]

application/xml, text/xml

Sample:
<ArrayOfMobileSaveResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <MobileSaveResult>
    <AccountID>8</AccountID>
    <BuildingID>9</BuildingID>
    <IsError>true</IsError>
    <Message>sample string 5</Message>
    <NewID>2</NewID>
    <NewNumber>sample string 4</NewNumber>
    <OldID>1</OldID>
    <OldNumber>sample string 3</OldNumber>
    <Type>sample string 6</Type>
  </MobileSaveResult>
  <MobileSaveResult>
    <AccountID>8</AccountID>
    <BuildingID>9</BuildingID>
    <IsError>true</IsError>
    <Message>sample string 5</Message>
    <NewID>2</NewID>
    <NewNumber>sample string 4</NewNumber>
    <OldID>1</OldID>
    <OldNumber>sample string 3</OldNumber>
    <Type>sample string 6</Type>
  </MobileSaveResult>
</ArrayOfMobileSaveResult>