Jessica - hi there! what would be the reasons t...
hi there! what would be the reasons the delete endpoint is not working when it returns a 400 with Metadata object not found corresponding to the guid: even though when I search for the object it returns that as the metadata_id and I seee that guid when I edit the TML from the UI -- https://developers.thoughtspot.com/docs/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fmetadata%2Fdelete-metadata
REST API v2.0 Playground
ThoughtSpot REST API v2.0 Playground
6 Replies
Is the object present in the same org for which you are trying to delete? Also what type of object is it? Can you also mention the message that you get when you are trying to delete the object?
yes it is!
its a sql_view or logical_table
I get "Metadata object not found corresponding to the guid:
we see this error message when either the guid is invalid, or if the object is present in a different org
since you mentioned that search api is working, could you pls check the org ids showing up in the response.
you can then use /auth/token/validate API to confirm that the token being used is for the correct org
if org ids match, then this would be a bug
yes, the org ids match as I can search with the same auth token to get the object returned with the same guid and then simply change the endpoint from search to delete and get the 403 error
So I just got UI access to your instance, on trying the API I see this error in the logs
It seems this is not being propagated to the API response. Will create an internal ticket for this. Meanwhile if you want to delete this, you might want to delete the dependecies for this..
ah amazing thank you!!