Set module data for empty scenario with make api

Hii there :wave: :wave:
i am new to make and using make api (python requests) from a week. i created an empty scenario with one module example “google-email:TriggerNewEmail”. now i want to insert data into it like filtertype,account,folder,criteria i used “set module data end point”
and got “updated”: true but not reflecting on module when i check from UI.

and my code is

shortend my payload showing only example code

url = "https://**"

payload = json.dumps({"2":"{\"data\": {\"account\": **40,\"searchType\":
\"simple\",\"markSeen\": true, \"maxResults\": 4, \"folder\": \"[Gmail]/Trash\"})

headers = { 'Authorization': 'Token abcd 0000 ,  'Content-Type': 'application/json'}

response = requests.request("PUT", url, headers=headers, data=payload)

is this correct way or i am doing wrong please suggest me a better way to add data to an empty scenario
expecting a reply with good suggestion to handle scenarios with api
Thank you