From 51c7a2739729ebb602ae59e85a7bc162582ebbe3 Mon Sep 17 00:00:00 2001 From: Vincent Van Gogh Date: Thu, 30 May 2024 12:22:11 -0700 Subject: [PATCH] add person field creation func --- pipedrive/persons.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pipedrive/persons.py b/pipedrive/persons.py index 5d7f615..af51741 100644 --- a/pipedrive/persons.py +++ b/pipedrive/persons.py @@ -34,6 +34,10 @@ def get_person_fields(self, params=None, **kwargs): url = "personFields" return self._client._get(self._client.BASE_URL + url, params=params, **kwargs) + def create_person_field(self, data, **kwargs): + url = "personFields" + return self._client._post(self._client.BASE_URL + url, json=data, **kwargs) + def get_person_activities(self, person_id, **kwargs): url = "persons/{}/activities".format(person_id) return self._client._get(self._client.BASE_URL + url, **kwargs)