- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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"
Now i went to Navigator > Rest api explorer
And i chose the IRE API as shown
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"
}
}
]
}
And as you can see in the pic shown below the operation says "Update_With_Upgrade".
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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"
Now i went to Navigator > Rest api explorer
And i chose the IRE API as shown
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"
}
}
]
}
And as you can see in the pic shown below the operation says "Update_With_Upgrade".
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

