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()