We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

IRE API reclassification flags

nadzeyay
Tera Contributor

Hi,

 

In the documentation  https://www.servicenow.com/docs/r/servicenow-platform/configuration-management-database-cmdb/c_CIRec... described how to turn off reclassification for the javascript payloads  ( classUpgrade flags and others ) but they are not mentioned in the IRE API docs for the JSONs payloads : https://www.servicenow.com/docs/r/api-reference/rest-apis/c_IdentifyReconcileAPI.html 

(they are working for them as well , btw) is it a missing documentation piece or shall they not work for the JSONs payloads ?

Question is : can we rely on them ( classUpgrade, classDowngrade, classSwitch) to use in our JSONs and it is a missing documentation piece or not?

 

Thank you in advance,

Nadzeya

1 ACCEPTED SOLUTION

Vishnu-K
Tera Guru

Hi @nadzeyay ,

 

In the IRE API docs they haven't mentioned clearly about all attributes like classUpgrade, classDowngrade, classSwitch but you can use them in that IRE API , as i have used them :

1. I have created a record in the cmdb_ci_computer table with details :

"name": "SRV-APP-01",
"serial_number": "SN123456789"

 

VishnuK_0-1770966566789.png

Now i went to Navigator > Rest api explorer 

And i chose the IRE API as shown

 

VishnuK_1-1770966893139.png

 

And then i used the following JSON payload :

{
  "items": [
    {
      "className": "cmdb_ci_server",
      "settings": {
        "classUpgrade": true,
        "classDowngrade": true,
        "classSwitch": true
      },
      "values": {
        "name": "SRV-APP-01",
        "serial_number": "SN123456789",
        "discovery_source": "ServiceNow"
      }
    }
  ]
}

VishnuK_2-1770967149450.png

 

And as you can see in the pic shown below the operation says  "Update_With_Upgrade".

VishnuK_3-1770967611045.png

So , that conclude you can use them(i.e classUpgrade, classDowngrade, classSwitch) in IRE API.

 

If this answers your question, please mark it as helpful and accept the solution for better community visibility.

 

Thanks,

Vishnu

View solution in original post

1 REPLY 1

Vishnu-K
Tera Guru

Hi @nadzeyay ,

 

In the IRE API docs they haven't mentioned clearly about all attributes like classUpgrade, classDowngrade, classSwitch but you can use them in that IRE API , as i have used them :

1. I have created a record in the cmdb_ci_computer table with details :

"name": "SRV-APP-01",
"serial_number": "SN123456789"

 

VishnuK_0-1770966566789.png

Now i went to Navigator > Rest api explorer 

And i chose the IRE API as shown

 

VishnuK_1-1770966893139.png

 

And then i used the following JSON payload :

{
  "items": [
    {
      "className": "cmdb_ci_server",
      "settings": {
        "classUpgrade": true,
        "classDowngrade": true,
        "classSwitch": true
      },
      "values": {
        "name": "SRV-APP-01",
        "serial_number": "SN123456789",
        "discovery_source": "ServiceNow"
      }
    }
  ]
}

VishnuK_2-1770967149450.png

 

And as you can see in the pic shown below the operation says  "Update_With_Upgrade".

VishnuK_3-1770967611045.png

So , that conclude you can use them(i.e classUpgrade, classDowngrade, classSwitch) in IRE API.

 

If this answers your question, please mark it as helpful and accept the solution for better community visibility.

 

Thanks,

Vishnu