3 Replies Latest reply on Aug 21, 2019 4:18 AM by Mpumelelo Tsabedze

    How to Create CI using Rest API and assign status as "Reserved"

      Share This:

      I have a system which uses REST API to create ComputerSystem CI in CMDB.

       

      Creating CI in ComputerSystem Class

       

      Use HTTP Post Method

       

      https://<IP>/api/cmdb/v1/instance/BMC.ASSET.SANDBOX/BMC.CORE/BMC_ComputerSystem

       

      And providing required value.

      {

            "attributes": {

        "Name": "Value"

      "HostName": "Value"

      "ShortDescription": "Static value + Username + Remarks from customer {Not more that 255 character}"

      "Company": "Daimler"

      "ChargingCode": "Value"

      "MarkAsDeleted": "No"

       

            }

      }

       

      But by this way I won't be able to set Status (AssetLifeCycle) to "Reserver" which is an AST:Attribute field.

       

      Could anyone please help me with this.