/gmail/v1/users/{userId}/settings/filters
POST
/gmail/v1/users/{userId}/settings/filters
users
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://gmail.googleapis.com//gmail/v1/users//settings/filters' \
--header 'Content-Type: application/json' \
--data-raw '{
"action": {
"addLabelIds": [
"string"
],
"forward": "string",
"removeLabelIds": [
"string"
]
},
"criteria": {
"excludeChats": true,
"from": "string",
"hasAttachment": true,
"negatedQuery": "string",
"query": "string",
"size": 0,
"sizeComparison": "unspecified",
"subject": "string",
"to": "string"
},
"id": "string"
}'
Response Response Example
{
"action": {
"addLabelIds": [
"string"
],
"forward": "string",
"removeLabelIds": [
"string"
]
},
"criteria": {
"excludeChats": true,
"from": "string",
"hasAttachment": true,
"negatedQuery": "string",
"query": "string",
"size": 0,
"sizeComparison": "unspecified",
"subject": "string",
"to": "string"
},
"id": "string"
}
Request
Path Params
userId
stringÂ
required
Body Params application/json
Responses
Modified at 2023-08-15 05:40:23