/build/static/layout/Breadcrumb_cap_w.png

Question about using the Kace REST API to add License Asset records

Hi - I'm trying to add (POST) License records into our Kace appliance using REST APIs.  I've setup a test using POSTMAN and I have everything working except when I try to add the reference to the Software Catalog Software Name.   The body for my REST call is shown below.  If you remove the section hi-lighted in yellow and the preceding comma my REST call works and it adds the License record. 

When I try to add the record with the reference to the software catalog ID APP1275833 for field 10000 it fails.  The error message I get is as follows:

{

    "errorCode": -1,

    "errorDescription": "Unexpected field field_10000"

}

 

Could this be a bug because field id 10000 is the ID for the field name Applies to Cataloged Software in License asset (Asset Type 7)

I’ve also looked at the Kace API reference and can’t find any examples related to making REST calls to POST License data.   

Can anyone provide some help?

    "Assets": [
        {
            "id""",
            "asset_type_id""7",
            "asset_type_name""License",
            "field_1""1",
            "name""Acrobat Pro DC",
            "field_4""Unit License",
            "field_10202""2021-02-12",
            "field_9""SER2000113",     
            "field_10""2020-02-04",     
            "field_11""65271309BA14A12",
            "field_14""Renewal"
            "field_16""7020284413",     
            "field_18""Adobe Systems,Inc."
            "field_9997""No",             
            "field_9996""Yes",
            "field_9994""Yes",
            "field_12""07/15/2020",
            "field_10199""10199",            
            "field_10206" : "912610822",
            "field_10426" : "30002257",
            "field_10427" : "FPP Business Strategy",
            "field_9998" :   {
                             "id"  : "174323"
                             }, 
            "field_9999"  :  {
                             "id"   : "174322"
                             }, 
            "field_8" :      {
                             "id" : "106990"
                             },
            "field_10000" : {
                             "id" : "APP1275833"
                             }                         
       }
    ]

} 


0 Comments   [ + ] Show comments

Answers (1)

Posted by: Hobbsy 4 years ago
Red Belt
0

Log a support ticket, it could be a glitch in the API for that version, what you are trying to do is not unreasonable or standard, so get supports view


Comments:
  • Thanks I agree and I did open a support ticket. In addition I also ran into issues when using the Asset Import utility. If I remove the Software Catalog selection when mapping data for import it works, when I select it it fails. We're running Kace version 10.1.99 has anyone else experienced the same? - geisenhuth 4 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ