Dear Community,
I'm trying to create a user with Canvas rest api. Here's the json I'm posting:
{
"user":{
"Name":"Foo bar"
},
"pseudonym":{
"Unique_id":"foobar@mailinator.com"
}
}
And here's the response from Canvas:
{
"errors": {
"user": {
"pseudonyms": [
{
"attribute": "pseudonyms",
"type": "invalid",
"message": "invalid"
}
]
},
"pseudonym": {
"unique_id": [
{
"attribute": "unique_id",
"type": "invalid",
"message": "invalid"
},
{
"attribute": "unique_id",
"type": "too_short",
"message": "too_short"
}
]
},
"observee": {},
"pairing_code": {},
"recaptcha": null
}
}
I've tried a lot of different syntaxes but with the same result. Please help.
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.