eQuipAPI

<back to all web services

CreateAsset_V3

The following routes are available for this service:
All Verbs/CreateAsset_V3
CreateAsset_V3 Parameters:
NameParameterData TypeRequiredDescription
UserIDquerystringNo
AssetIDInternalquerystringNo
assetqueryAssetNo
Asset Parameters:
NameParameterData TypeRequiredDescription
AssetNamebodystringYesAsset name.
AssetDescriptionbodystringNoAsset description.
BarcodebodystringYesAsset barcode.
AssetIDInternalbodystringNoThe internal id of the asset. Not used to save assets.
AssetCategoryIDInternalbodyGuidYesThe internal id of the asset category. See Api: FindAssetCategories.
LocationIDInternalbodyGuidYesThe internal id of the location. See Api: GetAllLocations
SiteIDInternalbodyGuidYesThe internal id of the site. See Api: FindSites.
PeopleIDInternalbodyGuidNoThe internal id of the people. See Api: GetAllPeople
AssetUsageIDbodyintYesThe id of the asset usage. See Api: GetAssetUsage
AssetConditionIDbodyintYesThe id of the asset condition. See Api: GetAssetCondition
AssetStatusbodystringNoAsset status.
AssetSerialNobodystringNoAsset serial no.
Pricebodydecimal?NoPrice.
PurchaseDatebodydatetimeNoPurchase date.
PurchaseOrderNobodystringNoPurchase order no.
QuantitybodyintNoQuantity.
ShortageOveragebodyintNoShortage overage.
VendorbodystringNoVendor.
IsActivebodystringNoIsActive.
AuditDatebodydatetimeNoAudit date.
AuditStatusbodystringNoAudit status.
Asset_UIDbodystringNoAsset uid.
DataGatherIDbodyintNoThe id of the department. See Api: FindDepartments.
MfgbodystringNoMfg.
ModelbodystringNoModel.
POLinebodyintNoPOLine.
POStatusbodycharNoPOStatus.
ScannerDeviceCodebodyintNoScanner device code.
DateModifiedbodydatetimeNoModified date.
ThumbnailImagebodybyte[]NoThumbnail image.
SubLocationbodystringNoSublocation.
OriginalPartNobodystringNoOriginal part no.

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/CreateAsset_V3 HTTP/1.1 
Host: equipstage3.e-isg.com 
Content-Type: application/xml
Content-Length: length

<CreateAsset_V3 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eQuipModel">
  <AssetIDInternal>String</AssetIDInternal>
  <UserID>String</UserID>
  <asset>
    <AssetCategoryIDInternal>String</AssetCategoryIDInternal>
    <AssetConditionID>0</AssetConditionID>
    <AssetDescription>String</AssetDescription>
    <AssetIDInternal>String</AssetIDInternal>
    <AssetName>String</AssetName>
    <AssetSerialNo>String</AssetSerialNo>
    <AssetStatus>String</AssetStatus>
    <AssetUsageID>0</AssetUsageID>
    <Asset_UID>String</Asset_UID>
    <AuditDate>0001-01-01T00:00:00</AuditDate>
    <AuditStatus>String</AuditStatus>
    <Barcode>String</Barcode>
    <DataGatherID>0</DataGatherID>
    <DateModified>0001-01-01T00:00:00</DateModified>
    <IsActive>String</IsActive>
    <LocationIDInternal>String</LocationIDInternal>
    <Mfg>String</Mfg>
    <Model>String</Model>
    <OriginalPartNo>String</OriginalPartNo>
    <POLine>0</POLine>
    <POStatus>0</POStatus>
    <PeopleIDInternal>String</PeopleIDInternal>
    <Price>0</Price>
    <PurchaseDate>0001-01-01T00:00:00</PurchaseDate>
    <PurchaseOrderNo>String</PurchaseOrderNo>
    <Quantity>0</Quantity>
    <ScannerDeviceCode>0</ScannerDeviceCode>
    <ShortageOverage>0</ShortageOverage>
    <SiteIDInternal>String</SiteIDInternal>
    <SubLocation>String</SubLocation>
    <ThumbnailImage>AA==</ThumbnailImage>
    <Vendor>String</Vendor>
  </asset>
</CreateAsset_V3>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

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