Hi Yuuvis team
We are working with the tag search and update API. The API does not really return what is descibed in the documentation.
If no result is available, a search result is returned:
{
"objects": [],
"numItems": 0,
"hasMoreItems": false,
"totalNumItems": 0
}
If a tag was updated, only a single object is returned, but without the search result properties:
{
"objects": [
{
"properties": {
...
"system:tags": {
"update": [
[
"test",
0,
"2021-03-08T06:02:56.930Z",
"c5221c08ae26a88c"
]
],
"value": [
[
"test",
0,
"2021-03-08T06:02:56.930Z",
"c5221c08ae26a88c"
]
]
},
...
},
"options": {}
}
]
}
Questions:
- Why does the empty result return properties such as the numItems but when an object is found they are missing?
- Even if the last element of the query matches, will only one element (the last be returned)? So in the response it is not necessary for us to check the object list for the object that was updated? We can simply assume that every object in the ist (always 1) has been updated?
Thanks and kind regards
Nicole