Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Exporter macro migration
Scroll ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
#F0F0F0#F0F0F0

3

Scroll export button
scopecurrent
template-id4fda9400-a7df-4ede-a95f-e4ae5fcf4796
captionDownload this Page
add-onScroll PDF Exporter

You can create a new asset using the following API Request with Asset Master parameters. 

To authenticate the below API, see API Authentication and Authorization.

Service NameHTTP Method

AM_AddAsset_Details (Denali SP1 HF06, SIERRA SP1 HF20, DENALI HF13, DENALI SP1 HF13, DENALI SP3 HF08 onwards) 

AM_AddAsset

POST

Note
titleNotes:
  • To access AM_AddAsset_Details (Json format), refer the URL: <customer domain name>REST/Summit_RESTWCF.svc/RESTService/CommonWS_JsonObjCall_json. 
  • To access AM_AddAsset (String format), refer the URL: <customer domain name>REST/Summit_RESTWCF.svc/RESTService/AM_AddAsset. 
  • At UI configuration level, if the attribute is configured as mandatory then the Attribute Name and Attribute Value fields should be mandatory. 

Sample Request

Code Block
themeDJango
titleJson Format
linenumberstrue
{
 "ServiceName": "AM_AddAsset_Details",
 "objCommonParameters": {
 "_ProxyDetails": {
 "ProxyID": 0,
 "ReturnType": "JSON",
 "APIKey": "VCzYxzanmTiGn5Ry9i6rPgsUgn9IBEtXJqnw0S380FQ=",
 "AuthType": "APIKEY"
 },
 "oAM_Asset_MasterParam": {
 "_Instance": "IT",
 "_Category_ID": "Laptop",
 "_Stores": "Thailand\\Chamchuree building"
 },
 "oAM_Asset_DetailsParam_items": {
 "items": [
 {
 "_Attribute_Name": "Fix Asset ID",
 "_Attribute_Value": "234242"
 },
 {
 "_Attribute_Name": "Date of Purchase",
 "_Attribute_Value": "2021-07-02"
 },
 {
 "_Attribute_Name": "Serial Number",
 "_Attribute_Value": "8766HGFHG11"
 },
 {
 "_Attribute_Name": "LifeTime of asset",
 "_Attribute_Value": "3"
 },
 {
 "_Attribute_Name": "Warranty/AMC Start Date",
 "_Attribute_Value": "2021-06-01"
 },
 {
 "_Attribute_Name": "Warranty/AMC End Date",
 "_Attribute_Value": "2023-06-01"
 },
 
 {
 "_Attribute_Name": "PO Number",
 "_Attribute_Value": "29898/987"
 },
 {
 "_Attribute_Name": "PO Date",
 "_Attribute_Value": "2021-06-01"
 }
 ],
 "hasMore": true
 }
 }
} 
Ui tab
titleCreate Asset Details

Request Parameters

Parameter NameTypeDescriptionMandatory

_Instance

GreenString

Name of the Instance.

For Example: IT

Greentrue

_Category_ID

GreenString

The category name of an asset.

Greentrue

_Stores

GreenString

Store to which you want to add the Asset.

Greentrue

Items

GreenString

List of asset attributes.

Greentrue

_Attribute_Name

GreenString

Asset attribute name.

GreyFalse

_Attribute_Value

GreenString

Asset attribute value.

GreyFalse

hasMore

GreenString

By default, the value is true.

Greentrue

DJangoSample Responsetrue

Sample Request

Code Block
themeDJango
titleString Format
linenumberstrue
{
"_ProxyDetails": {
 "ProxyID": 0,
 "ReturnType": "JSON",
 "APIKey": "fVDxr5l/mZqmcdPOeGY4EQue7bCQjIth0jOiOMBu/mY=",
 "AuthType": "APIKEY"
 },
"oAM_Asset_MasterParam":{"_Instance":"ITG","_Category_ID":"Laptop","_Stores":"India\\Bangalore\\
Mylasandra\\Mylasandra Store"},
"oAM_Asset_DetailsParam":[
{
 "_Attribute_Name": "Serial Number",
 "_Attribute_Value": "SR0001"
 },
 {
 "_Attribute_Name": "Bond No.",
 "_Attribute_Value": "100/2015-16"
 },
 {
 "_Attribute_Name": "GRN no.",
 "_Attribute_Value": "GRN-305"
 }
 ]}  
Ui tab
titleCreate Asset

Request Parameters

Parameter NameTypeDescriptionMandatory

_Instance

GreenString

Name of the Instance.

For Example: IT

Greentrue

_Category_ID

GreenString

The category name of an asset.

Greentrue

_Stores

GreenString

Store to which you want to add the Asset.

Greentrue

Attribute_Name

GreenString

Asset attribute name.

GreyFalse

Attribute_Value

GreenString

Asset attribute value.

GreyFalse

DJangoSample Responsetrue

Status and Error Codes

For more information, see Status and Error Messages.

Scroll ignore
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmltrue
1

| |