wooden-spring-14915
10/30/2023, 3:38 PMabundant-crowd-2724
10/30/2023, 3:39 PMmammoth-lamp-67488
10/30/2023, 3:47 PMabundant-crowd-2724
10/30/2023, 3:51 PMimport json
import requests
payload = json.dumps({
'first_name': 'Sample',
'last_name': 'User',
'email': '<mailto:sample@sample.com|sample@sample.com>',
'teams': [
'e8ac09ed-e51e-4e61-8eaf-59942c98c260'
],
'role': 'Viewer',
'_role': 'Viewer'
})
response = <http://requests.post|requests.post>("<https://api.secoda.co/user>", headers={"Authorization": f"Bearer {token}", "content-type": "application/json"}, json=payload).json()mammoth-lamp-67488
10/30/2023, 4:01 PM<https://api.secoda.co/user/>
We're in the process of fixing this but some endpoints still require that backslah to work! Sorry about this!abundant-crowd-2724
10/30/2023, 4:12 PM