Add tenant id to taskbase call

This commit is contained in:
Ramon Wenger 2021-02-15 20:03:20 +01:00
parent 048fd1b4a7
commit 1f3b6fe40d
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class TaskbaseClient:
self.login()
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
response = requests.post('{}/api/task'.format(self.base_url), json=payload, headers=headers)
if response.ok: