Skip to main content
Closed

Successful API Call Response Information

Related products:API and SDKs
Anita Hæhre
  • Anita Hæhre
    Anita Hæhre

When making calls to the Cognite API, successful calls provide no confirmation of success.

 

HTTP Response 200 would be helpful for asserting successful API requests.  

 

One point of uncertainty for us is when passing multiple External ID’s to delete row records in a staging table, if some ID’s are incorrectly identified, we aren’t receiving any feedback to indicate 100% success.

We’ve read that when passing batches, there should be a return item indicating which records failed, but that is not our experience.

 

Note: this is using the Cognite SDK.

2 replies

Jørgen Lund
Seasoned Practitioner
  • Product Manager
  • 113 replies
  • November 6, 2024

Hi @Jesse Jenken.

All API requests should return a response as documented in the API specification, e.g. here

For the endpoint you specifically mention, it returns a 200 and an empty JSON. Unknown keys are ignored.

Do you remember where you read the part about returning a list of failed records? If you have a link, I can take a look and update the documentation if needed.

 


Jørgen Lund
Seasoned Practitioner
  • Product Manager
  • 113 replies
  • January 3, 2025

Marking this as Closed as we won’t take any action for now.


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings