- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 03:03 AM
Hello everyone,
I am trying to write a script to import multiple CI's into CMDB using REST API interface. I am testing the deployment in Postman, create a POST request and receive the following data:
"result": {
"items": [
{
"className": "cmdb_ci_router",
"sysId": "Unknown",
"identifierEntrySysId": "Unknown",
"errors": [
{
"error": "INVALID_INPUT_DATA",
"message": "In payload invalid data source [null] exist. You need to provide a valid choice value from field [discovery_source] in table [cmdb_ci]"
}
],
"identificationAttempts": [],
Obviously the error message suggests that field [discovery_source] is missing the correct info. I have tried to leave the field blank, putting in "None" or other name of existing discovery source, but still get the same error. Does it need to be an ID of a discovery source and if so, where do I find it?
Thanks
Solved! Go to Solution.
- Labels:
-
Instance Configuration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 06:27 AM
can u try something like below ?
{
"attributes": {
"name" : "New_PC"
},
"source": "ServiceNow",
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2022 11:51 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2022 12:47 AM
ok ! it says u searched with object id ? u sure u searched sys_id = "the value" right ? let me simulate in my personal instance too !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2022 03:32 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-06-2022 06:07 AM
i did find oob documentation though here