Add tenant id to taskbase call
This commit is contained in:
parent
048fd1b4a7
commit
1f3b6fe40d
|
|
@ -46,7 +46,7 @@ class TaskbaseClient:
|
||||||
self.login()
|
self.login()
|
||||||
|
|
||||||
headers = {'Authorization': 'Bearer {}'.format(self.token), 'Content-Type': 'application/json'}
|
headers = {'Authorization': 'Bearer {}'.format(self.token), 'Content-Type': 'application/json'}
|
||||||
payload = {'type': 'SPELL_CHECK'}
|
payload = {'type': 'SPELL_CHECK', 'tenantId': 4}
|
||||||
# we first need to register the assignment via API, so we get an ID
|
# we first need to register the assignment via API, so we get an ID
|
||||||
response = requests.post('{}/api/task'.format(self.base_url), json=payload, headers=headers)
|
response = requests.post('{}/api/task'.format(self.base_url), json=payload, headers=headers)
|
||||||
if response.ok:
|
if response.ok:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue