AcceptRejectAssetAllocation

Read Complete Release Notes

Use the following API to accept or reject any asset after it has been allocated with details such as User ID, Email ID, Approval, and so on.

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

Service NameHTTP Method
AM_AcceptRejectAssetAllocation

POST

Scenario 1: Accept Asset

Sample Request
{
    "ServiceName": "AM_AcceptRejectAssetAllocation",
    "objCommonParameters": {
        "_ProxyDetails": {
            "SAASOrgID": "0",
            "LoginUID": 0,
            "RequestType": "mobile",
            "MobileVersion": "5.10.3",
            "Password": "test@123",
            "AuthType": "FORM",
            "ProxyID": 0,
            "OrgID": "1",
            "TokenID": "",
            "ReturnType": "JSON",
            "UserName": "abc@xyz.com"
        },
        "oAM_Asset_MasterParam": {
            "_Instance": "info",
            "_Asset_ID": "3103"
        },
        "oAM_Asset_Allocation": {
            "_UserId": 197,
            "_EmailID": null,
            "_Approval": "Yes",
            "_AssetUsageType": "qawer",
            "_ApprovalRemarks": "test accept"
        }
    }
}

Request Parameters

Parameter NameTypeDescriptionMandatory

User ID

INTEGER

Mention the user ID.

TRUE

Email ID

STRING

Mention the email ID of the user.

Either of the email ID or User ID is mandatory.

TRUE

Approval

STRING

Mention the attribute as 'Yes' in case of accepting the asset allocation.

Mention the attribute as 'No' in case of rejecting the asset allocation. 

TRUE

Approval Remarks

STRING

Mention the remarks for approving the asset allocation.

FALSE

Sample Response
{
    "Errors": "",
    "Input": null,
    "Message": "",
    "OrgID": 0,
    "Output": " Successfully updated the asset approval.",
    "OutputID": 0,
    "OutputObject": null,
    "TokenID": "A3948242F97AA5CA1A0424FDD5350D08B1A73ED305D0F16C148DE6BE75055F001A76DB51748395034DE6129A16F77354D805D362F7106EB345E101924118E9663F21160511D901F38CF3D34696961B0A235F9434041E498508B2879D673AC60E72031B426587D489CF319DC97096F4CAF28766B3159EAF62B5BF805C7F4B2B9B84BD368206A1AEA93B26CC0C0A4EAD1C"
}

Scenario 2: Reject Asset

Sample Request
{
    "ServiceName": "AM_AcceptRejectAssetAllocation",
    "objCommonParameters": {
        "_ProxyDetails": {
            "SAASOrgID": "0",
            "LoginUID": 0,
            "RequestType": "mobile",
            "MobileVersion": "5.10.3",
            "Password": "test@123",
            "AuthType": "FORM",
            "ProxyID": 0,
            "OrgID": "1",
            "TokenID": "",
            "ReturnType": "JSON",
            "UserName": "abc@xyz.com"
        },
        "oAM_Asset_MasterParam": {
            "_Instance": "info",
            "_Asset_ID": "3104"
        },
        "oAM_Asset_Allocation": {
            "_UserId": 197,
            "_EmailID": null,
            "_Approval": "No",
            "_ApprovalRemarks": "test reject"
        }
    }
}    
Sample Response
{
    "Errors": "",
    "Input": null,
    "Message": "",
    "OrgID": 0,
    "Output": " Successfully updated the asset approval.",
    "OutputID": 0,
    "OutputObject": null,
    "TokenID": "A3948242F97AA5CA1A0424FDD5350D08B1A73ED305D0F16C148DE6BE75055F001A76DB51748395034DE6129A16F77354D805D362F7106EB345E101924118E9663F21160511D901F38CF3D34696961B0A235F9434041E498508B2879D673AC60E72031B426587D489CF319DC97096F4CAF28766B3159EAF62B5BF805C7F4B2B9B84BD368206A1AEA93B26CC0C0A4EAD1C"
}