Recent searches
No recent searches
Create or Update Many Users response specifications
Posted Aug 17, 2021
Hi, everyone.
I'm working on creating/updating many users with `v2/users/create_or_update_many` API and would like to clarify the specification of the response of `job_status`, especially for the key `results`.
I got the following response with 3 users request (omitted some keys).
- Is the order of the results guaranteed to be same as the order in the request?
- Is there any other status other than "Created", "Updated", "Failed"?
{ "job_status": {
"results": [
{ "id": 1900233268488, "status": "Created", "email": "success_created@example.com"},
{ "id": 902860577023, "status": "Updated", "email": "success_modified@example.com"},
{ "id": 2, "error": "UserUpdateError", "details": "Name: Email: error@example.com_ is not properly formatted", "status": "Failed" }
]
}}
I read https://developer.zendesk.com/api-reference/ticketing/ticket-management/job_statuses/#results and https://developer.zendesk.com/api-reference/ticketing/users/users/#create-or-update-many-users but could not find out detail.
If someone would help with this, I would really appreciate. Thank you!
0
1
1 comment
Tipene Hughes
Hi @...,
Thanks for reaching out!
I can confirm that the order of results array will remain the same as the order of the users array that is sent in the "create_or_update_many" request. With regard to the "status" property, there are only three values returned: “Created”, “Updated” or “Failed”, as you mentioned.
I hope this helps! Feel free to reach out if you have any questions.
Tipene
1