- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-18-2021 03:37 AM
Hi there
trying to do a Import API
getting this error
{"error":{"message":"Method not Supported","detail":"POST method not supported for API"},"status":"failure"}
Method failed: (/api/now/table/import/u_rest_incidents) with code: 405
Thanks
Levino
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-18-2021 01:37 PM
Hi, a 405 error means method is not allowed
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
I would suspect this is because you appear to be using a mix of import and table API's in your path.
Try this format for table API
POST /now/table/{tableName}
https://developer.servicenow.com/dev.do#!/reference/api/quebec/rest/c_TableAPI
Or this for the import API
POST /now/import/{stagingTableName}
https://developer.servicenow.com/dev.do#!/reference/api/quebec/rest/c_ImportSetAPI
Take a look at the Rest API explorer for API syntax
/nav_to.do?uri=%2F$restapi.do
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā07-18-2021 01:37 PM
Hi, a 405 error means method is not allowed
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405
I would suspect this is because you appear to be using a mix of import and table API's in your path.
Try this format for table API
POST /now/table/{tableName}
https://developer.servicenow.com/dev.do#!/reference/api/quebec/rest/c_TableAPI
Or this for the import API
POST /now/import/{stagingTableName}
https://developer.servicenow.com/dev.do#!/reference/api/quebec/rest/c_ImportSetAPI
Take a look at the Rest API explorer for API syntax
/nav_to.do?uri=%2F$restapi.do