Doesnt work Update function

When i test the data method it is works
But when i use it in logic builder - any request doesnt send


Help me please, i want to update the status of the item

as you can see in your last image you are in component editor mode and as the red message says you cant put such functions in there, to solve it double click outside the box and put that logic after using an event that you have set up with that trigger that you have there