POST api/Asset/mobileassets

Saves a list of Assets.

Request Information

URI Parameters

None.

Body Parameters

A List of MobileAssetUpdate records to be saved

Collection of MobileAssetUpdate
NameDescriptionTypeAdditional information
ID

integer

None.

AssetID

integer

None.

AccountID

integer

None.

AssetNumber

string

None.

SerialNumber

string

None.

CostCenterID

integer

None.

BuildingID

integer

None.

PriorityID

integer

None.

CommonName

string

None.

Floor

string

None.

Department

string

None.

Room

string

None.

ServiceTypeID

integer

None.

RiskID

integer

None.

RiskFunctionID

integer

None.

RiskHistoryID

integer

None.

TierID

integer

None.

AssetTypeID

integer

None.

SystemID

integer

None.

ClassID

integer

None.

ObjectID

integer

None.

ManufactID

integer

None.

BaseMonth

string

None.

InstallDate

string

None.

LinkGroupID

integer

None.

ShopID

integer

None.

EmployeeID

integer

None.

ModelNumber

string

None.

UserName

string

None.

AssetNotes

Collection of MobileAssetNote

None.

FacilityManagerID

integer

None.

MotorVoltageID

integer

None.

Amperage

decimal number

None.

HP

decimal number

None.

RPM

integer

None.

Frame

string

None.

BeltSize

string

None.

BeltQuantity

integer

None.

BearingType

string

None.

SpecificationNumber

string

None.

ApplicableDrawingHyperlink

string

None.

FedFrom

string

None.

DisconnectMeans

string

None.

Other

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "AssetID": 2,
    "AccountID": 3,
    "AssetNumber": "sample string 4",
    "SerialNumber": "sample string 5",
    "CostCenterID": 1,
    "BuildingID": 6,
    "PriorityID": 7,
    "CommonName": "sample string 8",
    "Floor": "sample string 9",
    "Department": "sample string 10",
    "Room": "sample string 11",
    "ServiceTypeID": 12,
    "RiskID": 1,
    "RiskFunctionID": 1,
    "RiskHistoryID": 1,
    "TierID": 13,
    "AssetTypeID": 14,
    "SystemID": 15,
    "ClassID": 16,
    "ObjectID": 17,
    "ManufactID": 1,
    "BaseMonth": "sample string 18",
    "InstallDate": "sample string 19",
    "LinkGroupID": 1,
    "ShopID": 1,
    "EmployeeID": 1,
    "ModelNumber": "sample string 20",
    "UserName": "sample string 21",
    "AssetNotes": [
      {
        "ID": 1,
        "AssetID": 2,
        "NoteText": "sample string 3",
        "NoteDate": "2024-05-18T07:16:52.3455173Z",
        "IsDeleted": true
      },
      {
        "ID": 1,
        "AssetID": 2,
        "NoteText": "sample string 3",
        "NoteDate": "2024-05-18T07:16:52.3455173Z",
        "IsDeleted": true
      }
    ],
    "FacilityManagerID": 1,
    "MotorVoltageID": 1,
    "Amperage": 1.0,
    "HP": 1.0,
    "RPM": 1,
    "Frame": "sample string 22",
    "BeltSize": "sample string 23",
    "BeltQuantity": 1,
    "BearingType": "sample string 24",
    "SpecificationNumber": "sample string 25",
    "ApplicableDrawingHyperlink": "sample string 26",
    "FedFrom": "sample string 27",
    "DisconnectMeans": "sample string 28",
    "Other": "sample string 29"
  },
  {
    "ID": 1,
    "AssetID": 2,
    "AccountID": 3,
    "AssetNumber": "sample string 4",
    "SerialNumber": "sample string 5",
    "CostCenterID": 1,
    "BuildingID": 6,
    "PriorityID": 7,
    "CommonName": "sample string 8",
    "Floor": "sample string 9",
    "Department": "sample string 10",
    "Room": "sample string 11",
    "ServiceTypeID": 12,
    "RiskID": 1,
    "RiskFunctionID": 1,
    "RiskHistoryID": 1,
    "TierID": 13,
    "AssetTypeID": 14,
    "SystemID": 15,
    "ClassID": 16,
    "ObjectID": 17,
    "ManufactID": 1,
    "BaseMonth": "sample string 18",
    "InstallDate": "sample string 19",
    "LinkGroupID": 1,
    "ShopID": 1,
    "EmployeeID": 1,
    "ModelNumber": "sample string 20",
    "UserName": "sample string 21",
    "AssetNotes": [
      {
        "ID": 1,
        "AssetID": 2,
        "NoteText": "sample string 3",
        "NoteDate": "2024-05-18T07:16:52.3455173Z",
        "IsDeleted": true
      },
      {
        "ID": 1,
        "AssetID": 2,
        "NoteText": "sample string 3",
        "NoteDate": "2024-05-18T07:16:52.3455173Z",
        "IsDeleted": true
      }
    ],
    "FacilityManagerID": 1,
    "MotorVoltageID": 1,
    "Amperage": 1.0,
    "HP": 1.0,
    "RPM": 1,
    "Frame": "sample string 22",
    "BeltSize": "sample string 23",
    "BeltQuantity": 1,
    "BearingType": "sample string 24",
    "SpecificationNumber": "sample string 25",
    "ApplicableDrawingHyperlink": "sample string 26",
    "FedFrom": "sample string 27",
    "DisconnectMeans": "sample string 28",
    "Other": "sample string 29"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMobileAssetUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aramark.ISIS.Domain.Models">
  <MobileAssetUpdate>
    <AccountID>3</AccountID>
    <Amperage>1</Amperage>
    <ApplicableDrawingHyperlink>sample string 26</ApplicableDrawingHyperlink>
    <AssetID>2</AssetID>
    <AssetNotes>
      <MobileAssetNote>
        <AssetID>2</AssetID>
        <ID>1</ID>
        <IsDeleted>true</IsDeleted>
        <NoteDate>2024-05-18T07:16:52.3455173+00:00</NoteDate>
        <NoteText>sample string 3</NoteText>
      </MobileAssetNote>
      <MobileAssetNote>
        <AssetID>2</AssetID>
        <ID>1</ID>
        <IsDeleted>true</IsDeleted>
        <NoteDate>2024-05-18T07:16:52.3455173+00:00</NoteDate>
        <NoteText>sample string 3</NoteText>
      </MobileAssetNote>
    </AssetNotes>
    <AssetNumber>sample string 4</AssetNumber>
    <AssetTypeID>14</AssetTypeID>
    <BaseMonth>sample string 18</BaseMonth>
    <BearingType>sample string 24</BearingType>
    <BeltQuantity>1</BeltQuantity>
    <BeltSize>sample string 23</BeltSize>
    <BuildingID>6</BuildingID>
    <ClassID>16</ClassID>
    <CommonName>sample string 8</CommonName>
    <CostCenterID>1</CostCenterID>
    <Department>sample string 10</Department>
    <DisconnectMeans>sample string 28</DisconnectMeans>
    <EmployeeID>1</EmployeeID>
    <FacilityManagerID>1</FacilityManagerID>
    <FedFrom>sample string 27</FedFrom>
    <Floor>sample string 9</Floor>
    <Frame>sample string 22</Frame>
    <HP>1</HP>
    <ID>1</ID>
    <InstallDate>sample string 19</InstallDate>
    <LinkGroupID>1</LinkGroupID>
    <ManufactID>1</ManufactID>
    <ModelNumber>sample string 20</ModelNumber>
    <MotorVoltageID>1</MotorVoltageID>
    <ObjectID>17</ObjectID>
    <Other>sample string 29</Other>
    <PriorityID>7</PriorityID>
    <RPM>1</RPM>
    <RiskFunctionID>1</RiskFunctionID>
    <RiskHistoryID>1</RiskHistoryID>
    <RiskID>1</RiskID>
    <Room>sample string 11</Room>
    <SerialNumber>sample string 5</SerialNumber>
    <ServiceTypeID>12</ServiceTypeID>
    <ShopID>1</ShopID>
    <SpecificationNumber>sample string 25</SpecificationNumber>
    <SystemID>15</SystemID>
    <TierID>13</TierID>
    <UserName>sample string 21</UserName>
  </MobileAssetUpdate>
  <MobileAssetUpdate>
    <AccountID>3</AccountID>
    <Amperage>1</Amperage>
    <ApplicableDrawingHyperlink>sample string 26</ApplicableDrawingHyperlink>
    <AssetID>2</AssetID>
    <AssetNotes>
      <MobileAssetNote>
        <AssetID>2</AssetID>
        <ID>1</ID>
        <IsDeleted>true</IsDeleted>
        <NoteDate>2024-05-18T07:16:52.3455173+00:00</NoteDate>
        <NoteText>sample string 3</NoteText>
      </MobileAssetNote>
      <MobileAssetNote>
        <AssetID>2</AssetID>
        <ID>1</ID>
        <IsDeleted>true</IsDeleted>
        <NoteDate>2024-05-18T07:16:52.3455173+00:00</NoteDate>
        <NoteText>sample string 3</NoteText>
      </MobileAssetNote>
    </AssetNotes>
    <AssetNumber>sample string 4</AssetNumber>
    <AssetTypeID>14</AssetTypeID>
    <BaseMonth>sample string 18</BaseMonth>
    <BearingType>sample string 24</BearingType>
    <BeltQuantity>1</BeltQuantity>
    <BeltSize>sample string 23</BeltSize>
    <BuildingID>6</BuildingID>
    <ClassID>16</ClassID>
    <CommonName>sample string 8</CommonName>
    <CostCenterID>1</CostCenterID>
    <Department>sample string 10</Department>
    <DisconnectMeans>sample string 28</DisconnectMeans>
    <EmployeeID>1</EmployeeID>
    <FacilityManagerID>1</FacilityManagerID>
    <FedFrom>sample string 27</FedFrom>
    <Floor>sample string 9</Floor>
    <Frame>sample string 22</Frame>
    <HP>1</HP>
    <ID>1</ID>
    <InstallDate>sample string 19</InstallDate>
    <LinkGroupID>1</LinkGroupID>
    <ManufactID>1</ManufactID>
    <ModelNumber>sample string 20</ModelNumber>
    <MotorVoltageID>1</MotorVoltageID>
    <ObjectID>17</ObjectID>
    <Other>sample string 29</Other>
    <PriorityID>7</PriorityID>
    <RPM>1</RPM>
    <RiskFunctionID>1</RiskFunctionID>
    <RiskHistoryID>1</RiskHistoryID>
    <RiskID>1</RiskID>
    <Room>sample string 11</Room>
    <SerialNumber>sample string 5</SerialNumber>
    <ServiceTypeID>12</ServiceTypeID>
    <ShopID>1</ShopID>
    <SpecificationNumber>sample string 25</SpecificationNumber>
    <SystemID>15</SystemID>
    <TierID>13</TierID>
    <UserName>sample string 21</UserName>
  </MobileAssetUpdate>
</ArrayOfMobileAssetUpdate>

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 'List`1'.

Response Information

Resource Description

A List of MobileSaveResult records

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>