Receiving error when using API
Hi. I'm trying to update users through API using Postman. I'm using the instructions here https://developer.zendesk.com/api-reference/ticketing/users/users/#update-many-users specifically the batch update part. I'm updating emails so I'm using the user ids from the user profile web address and the new email.
I'm using the following endpoint: https://{subdomain}.zendesk.com/api/v2/users/update_many.json (I've put the real tenant name in for {subdomain}
"users": [
{ "id": ########, "email": ####@#####.com},
{ "id": ########, "email": #####@####.com}
]
}
Chris
-
Rest easy that your request body is fine Chris Hardy, this is a problem with postman and the way you have your request set up and it's very simple to fix:
You're sending the request as text instead of JSON.
You'll want to select JSON from this dropdown located in the body tab of your request.
I hope this helps!
-
Awesome. Thanks Jack.
I got it to work. Unfortunately I'm trying to update primary email address but looks like you can't do that with existing users. But at least I know how to update users through API now.
Please sign in to leave a comment.
2 Comments