Skip to content

Bulk Delete Tickets should return JobStatus #592

Closed
@raymondpressly

Description

@raymondpressly

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions