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

Bulk Delete Tickets should return JobStatus #592

Closed
raymondpressly opened this issue Jun 16, 2023 · 2 comments
Closed

Bulk Delete Tickets should return JobStatus #592

raymondpressly opened this issue Jun 16, 2023 · 2 comments

Comments

@raymondpressly
Copy link

Is your feature request related to a problem? Please describe.

The Zendesk API Documentation for Bulk Delete Tickets specifies a JobStatus is returned.

The problem is that the method signature in the client does not match:

public void deleteTickets(long id, long... ids) {
complete(submit(req("DELETE", tmpl("/tickets/destroy_many.json{?ids}").set("ids", idArray(id, ids))),
handleStatus()));
}

Describe the solution you'd like

The method should return a JobStatus so that the caller can follow along with how the job progresses:

    public JobStatus deleteTickets(long id, long... ids) {
        complete(submit(req("DELETE", tmpl("/tickets/destroy_many.json{?ids}").set("ids", idArray(id, ids))),
                handleJobStatus()));
    }

Describe alternatives you've considered

Delete tickets 1 by 1. Not an option as we are trying to limit the number of questions we submit.

Additional context

N/A

@PierreBtz
Copy link
Collaborator

Agreed, that would be a nice enhancement, pull request welcome!

@syedaffanhamdani
Copy link
Contributor

Created a pull request for it. :)

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

No branches or pull requests

3 participants