28 lines
944 B
Python
28 lines
944 B
Python
import json
|
|
import requests
|
|
|
|
WEBHOOK_ENDPOINT = "https://webhooks.workato.com/webhooks/rest/604b4fc0-fcd9-4f3b-b715-b42d7f740ba6/domains-updated"
|
|
PAYLOAD = {
|
|
'domain_to_update': {
|
|
'domain': "swtc.edu",
|
|
'group_ids': [
|
|
"2b5267b2-ce87-4e77-ad88-5cfec80496b9",
|
|
"59ccfdeb-8a8a-4693-b4fa-27034192071c",
|
|
"84d32175-8cb8-4fb0-95cc-6ae13d40aaaa",
|
|
"5f35e542-a8cf-4422-8e87-466cdca62864",
|
|
"55bae3db-5f62-4be3-823a-bcb429b8a2b2",
|
|
"4754b85b-e7a6-41a8-b0e9-5e02c58ebc38",
|
|
"fa8914be-0986-460c-884d-9973a9622045",
|
|
"b9f734fa-de0d-4a0b-9ce2-c092126e1d8d",
|
|
"106775db-a00d-4956-bf27-97ea269bb001",
|
|
"594cd6c0-17db-4241-be56-ad28a8db4f7b",
|
|
],
|
|
}
|
|
}
|
|
|
|
HEADERS = {"content-type": "application/json" }
|
|
|
|
response = requests.post(WEBHOOK_ENDPOINT, data=json.dumps(PAYLOAD))
|
|
print(response.status_code)
|
|
print(response.text)
|