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"
}'
{
"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"
}