ythomop - Hi all. Using the REST API v2, we wan...

Hi all. Using the REST API v2, we want to get a list of Models (LOGICAL_TABLE) that have a certain tag assigned. The curl command we use is the following:
curl --request POST --header 'Authorization: Bearer $(cat ./ts_admin_token)' --header 'Content-Type: application/json' --data '{"record_size":-1,"tag_identifiers":["$TS_TAG_ID"]}' $TS_URL/api/rest/2.0/metadata/search
curl --request POST --header 'Authorization: Bearer $(cat ./ts_admin_token)' --header 'Content-Type: application/json' --data '{"record_size":-1,"tag_identifiers":["$TS_TAG_ID"]}' $TS_URL/api/rest/2.0/metadata/search
This, however, returns an empty array, even though when we search by ID for one of the Models using the /metadata/search endpoint, we can see that the tag is correctly assigned to the Model. Is this a ThoughtSpot bug or are we doing something wrong? Note: We have been using this API call for a long time now, but this problem appeared now that we migrated from Worksheets to Models.
5 Replies
priyanshu.kumar
So when you are searching your metadata via metadata_id, can you find tag listed in the response?
ythomop
ythomopOP3w ago
Yep
priyanshu.kumar
Can you give us the Har file. We might need help from BE folks here. cc: @shikharTS
ythomop
ythomopOP3w ago
I have already opened a P0 case on the support page where I have provided the necessary curl requests and responses. Can you access support cases or should I copy paste them here? It's Case No: 00382698
shikharTS
shikharTS3w ago
We are investigating this, will provide updates.. Looks like might be a ThoughtSpot issue. The relevant team is looking into this and should provide updates on the support ticket.

Did you find this page helpful?