ZendeskApiClient icon indicating copy to clipboard operation
ZendeskApiClient copied to clipboard

CreateAsync method of UserResource returns 422

Open harsheet opened this issue 7 years ago • 5 comments

CreateAsync method of UserResource always return 422 even when the user is created on Zendesk. Can someone help with this?

Thanks

harsheet avatar Sep 12 '17 08:09 harsheet

have you tried with our pull request? For us, all requests needed to be inside a wrapper class. https://github.com/justeat/ZendeskApiClient/pull/87 {"identity":{"id": ... }} When examined with fiddler, we found out that the first part was missing: {"identity":{

EmmanuelAtx avatar Sep 12 '17 09:09 EmmanuelAtx

I checked the branch and I think its only fixed for Identity, but I was using CreateAsync of UserResource that needs to be inside a User wrapper. Like this -

{"user":{"name": "Roger12 Wilco", "email": "[email protected]"}}

harsheet avatar Sep 13 '17 06:09 harsheet

Indeed, we haven't time to fix the whole project. So we just did what we need. We already found the bug. We hope someone will have the time to fix this in the whole project, so many people can enjoy the fix :-)

EmmanuelAtx avatar Sep 13 '17 07:09 EmmanuelAtx

yes indeed :)

harsheet avatar Sep 13 '17 23:09 harsheet

Hi @harsheet, is this still an issue for you? I am conscious this issue is 5 years old and there have been many versions introduced since then

mikerogers123 avatar Jun 30 '22 16:06 mikerogers123