From a6f6ecf6cfa1e85fbae05d3c6ea58ea11c4b9c61 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Wed, 21 Jun 2023 16:58:47 -0400 Subject: [PATCH] Tested List properties --- Scripts/API_Tests/list_prop_test.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Scripts/API_Tests/list_prop_test.py diff --git a/Scripts/API_Tests/list_prop_test.py b/Scripts/API_Tests/list_prop_test.py new file mode 100644 index 00000000..6c26cfd4 --- /dev/null +++ b/Scripts/API_Tests/list_prop_test.py @@ -0,0 +1,26 @@ +import requests + + +def list_prop(): + url = "http://api.northpass.com/v2/properties/people/bulk" + headers = { + "X-Api-Key": "SlpQlju219WnWogn94dQUT6Yt", + "accept": "application/json", + "content-type": "application/json", + } + payload = { + "data": [ + { + "attributes": {"properties": {"sample_list": "item 3"}}, + "id": "0b31c435-c18b-4573-984e-32cda57045b4", + "type": "person_properties", + } + ] + } + response = requests.post(url, headers=headers, json=payload) + print(response.text) + print(response.status_code) + + +if __name__ == "__main__": + list_prop()