Modify thread
documentedModifies the labels applied to the thread.
POST /gmail/v1/users/{userId}/threads/{id}/modifyUsersno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://gmail.googleapis.com/gmail/v1/users/{{$user_id}}/threads/{{$id}}/modify" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"addLabelIds": ["{{$add_label_id1}}", "{{$add_label_id2}}"], "removeLabelIds": ["{{$remove_label_id1}}"]}'