This message was deleted.
# secoda-support
w
This message was deleted.
a
This appears to happen across multiple endpoint types. user, collections etc
m
Hi Kevin! Can you share the full URL that you're sending the request to? As well, are you using Postman, a curl request, or running a script?
a
Sure, python....
Copy code
import 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()
m
Silly thing that we've found with Django (the framework we use for our API development) is that there needs to be a backslash at the end of the URL -
<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!
a
Thanks