Geovane - Hi team, can you help me to update an...

Hi team, can you help me to update an ANSWER title/name through the metadata api? I was hoping to use https://developers.thoughtspot.com/docs/restV2-playground?apiResourceId=http%2Fapi-endpoints%2Fmetadata%2Fupdate-metadata-header, but it is hard to know how the payload should look like.... For example: what is the property name for the Answer's name? (just name? answer_name? and etc...)
REST API v2.0 Playground
ThoughtSpot REST API v2.0 Playground
5 Replies
Geovane
GeovaneOP•2mo ago
I was hoping to build my api payload with something like:
payload = {
"headers_update": [
{
"identifier": "my_ts_answer_id",
"type": "ANSWER",
"attributes": [
{"name": "name", "value": "Updated throughAPI"}
],
}
],
}
payload = {
"headers_update": [
{
"identifier": "my_ts_answer_id",
"type": "ANSWER",
"attributes": [
{"name": "name", "value": "Updated throughAPI"}
],
}
],
}
But I am getting an error like: {'error': {'message': {'debug': {'debug': 'Custom object id feature flag is not enabled'}}}}
shikharTS
shikharTS•2mo ago
Seems like there is a flag that needs to be enabled. I am asking internally why that flag is required. Will update here. Also
Note
Currently, this API is enabled only for updating the obj_identifier attribute. Only text will be allowed in attribute's value.
Note
Currently, this API is enabled only for updating the obj_identifier attribute. Only text will be allowed in attribute's value.
It might be that only obj_identifier is allowed to be changed, but you wil require a flag. Will confirm internally and update documentation to make it more clear as well
Geovane
GeovaneOP•2mo ago
Thank you so much, updating the documentation would be great 🙂
shikharTS
shikharTS•2mo ago
So after talking internally, I do not think you can change the name for now using this api, it can only be used to change the obj_identifier attribute. I would recommend to use TML to update the name using API if required for now. Though this API can in further releases be used to update name as well.
Geovane
GeovaneOP•3w ago
Ok, thanks for the response

Did you find this page helpful?