- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bad request when posting user against rest api
Dear Community,
I'm trying to create a user with Canvas rest api. Here's the json I'm posting:
And here's the response from Canvas:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @dtod for your reply!
I managed to figure out what was wrong. `Unique_id` needs to be in lowercase. Since I pass `Unique_Id` I guess Canvas gott `null` and went "well, this ID is way to short!"
So all is well, for now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can always do a test creation on your instance using: https://yourserver.instructure.com/doc/api/live#!/users.json/create_user_post_12 and you'll see the json used.
It's quite possible that if you do a create user in the UI, your browser will also capture the json used in your Developer Tools.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @dtod for your reply!
I managed to figure out what was wrong. `Unique_id` needs to be in lowercase. Since I pass `Unique_Id` I guess Canvas gott `null` and went "well, this ID is way to short!"
So all is well, for now.
