Yes, but it's better
Tell me with the code, I donβt understand something
That's not right.
It should look like this:
key:filter value: make a list (key:host value:its_value)
The answer I get is this
I need hostid and status their values, that is, 10402 and 0
Error "Segment: Start (93) + length (1) - 1 exceeds text length (57)"
Could you stop making new topics and use the topic you already made. I merged this.
Set the language of app inventor to English and then post your blocks again.
the problem is different
sorry, corrected
This is what I used to get value from json string:
the number in the csvPath means the item index in the list.
Yes. it works fine
my code
on execution I get an error

API request
{
"jsonrpc": "2.0",
"method": "host.update",
"params": {
"hostid": "10126",
"status": 0
},
"auth": "038e1d7b1735c6a5436ee9eae095879e",
"id": 1
}
Answer
{
"jsonrpc": "2.0",
"result": {
"hostids": [
"10126"
]
},
"id": 1
}
https://www.zabbix.com/documentation/current/manual/api/reference/host/update
I don't need an answer. To avoid getting an error
I used the json response shown above
now the response is ?
{ "jsonrpc": "2.0", "result": { "hostids": [ "10126" ] }, "id": 1 }
the fact is that I only need hostid
I don't need hostids
Complete code
After this request, I need hostid and status
After that I don't need answers
In this example, we connect to Zabbix and activate the host or deactivate
How to discard the response in the last two requests?
you probably did not understand me
here in this block
I ask the API about the host AE3649PA what is its hostid and status
Next, I need to change its status
if it has status 1, then you need to change it to 0 and vice versa
But after these changes, I receive a response from the API according to the API documentation
https://www.zabbix.com/documentation/current/manual/api/reference/host/update
{
"jsonrpc": "2.0",
"result": {
"hostids": [
"10126"
]
},
"id": 1
}
I don't need this answer, how can I get rid of it so that there is no error?
Since I do not have your json , the best way to see the structure of it and modify blocks according to your needs is jsonparseronline