Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recovering multiple suspended tickets does not work #481

Open
mhmihaylov opened this issue Jul 1, 2021 · 0 comments
Open

Recovering multiple suspended tickets does not work #481

mhmihaylov opened this issue Jul 1, 2021 · 0 comments

Comments

@mhmihaylov
Copy link

Recovering a single deleted ticket does work, but it changes the requester to the user user for the API authentication.

Thus is why I want to update all the relevant tickets:

Here is my code:

ticket_list = [ ]

for ticket in zenpy_client.suspended_tickets():
    ticket_list.append(ticket)
        
zenpy_client.suspended_tickets.recover(ticket_list)

The above does not return any error what so ever, but id doe not update the suspended tickets as well.

Could you please review and let me know if I am doing something wrong?

In the Zendesk API doc this is what it says regarding the requester:

Note: During recovery, the API sets the requester to the authenticated agent who called the API, not the original requester. This prevents the ticket from being re-suspended after recovery. To preserve the original requester, use the Recover Multiple Suspended Tickets endpoint with the single ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant