Sign in

Modify message

documented

Modifies the labels on the specified message.

POST /gmail/v1/users/{userId}/messages/{id}/modifyUsersno implementation yet0 runs
No 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}}/messages/{{$message_id}}/modify" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{"addLabelIds": ["{{$addLabelId}}"], "removeLabelIds": ["{{$removeLabelId}}"]}'