How can I modify a table within a Notion page using the Notion API with ENV-based filtering?

Need to update a Notion page table by filtering rows on ‘Env’. Which Notion API call works? Example:

upd=$(curl -s -X PATCH "https://api.notion.com/v1/blocks/$PID" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d '{"children":[{"type":"table_row","table_row":{"cells":[[{"text":{"content":"New Deploy"}}]]}}]}')

hey, try using the /pages endpoint and apply a colletion filter for env. patching blocks wont filter table rows directly. the docs might show other methods. also, double-check your autherization token.