Skip to content

Instantly share code, notes, and snippets.

@markstory
Created September 10, 2018 19:31
Show Gist options
  • Save markstory/ec415592e8f46cbd878a38a89c4d64b5 to your computer and use it in GitHub Desktop.
Save markstory/ec415592e8f46cbd878a38a89c4d64b5 to your computer and use it in GitHub Desktop.
title sidebar_order
Bulk Remove a List of Issues
5

DELETE /api/0/projects/{organization_slug}/{project_slug}/issues/

: Permanently remove the given issues. The list of issues tomodify is given through the id query parameter. It is repeatedfor each issue that should be removed.Only queries by 'id' are accepted.If any ids are out of scope this operation will succeed withoutany data mutation.

    <tr>
        <th>Query Parameters</th>
        <td>
            <ul>
            
                <li><strong>id</strong>
                    <em>(int)</em>
                    a list of IDs of the issues to be removed.  This parameter shall be repeated for each issue.
                </li>
            
            </ul>
        </td>
    </tr>


    <tr>
        <th>Path Parameters</th>
        <td>
            <ul>
            
                <li><strong>organization_slug</strong>
                    <em>(string)</em>
                    the slug of the organization the issues belong to.
                </li>
            
                <li><strong>project_slug</strong>
                    <em>(string)</em>
                    the slug of the project the issues belong to.
                </li>
            
            </ul>
        </td>
    </tr>



    <tr>
        <th>Authentication</th><td>required</td>
    </tr>

<tr>
    <th>Method</th><td>DELETE</td>
</tr>
<tr>
    <th>Path</th><td>/api/0/projects/{organization_slug}/{project_slug}/issues/</td>
</tr>

Example

DELETE /api/0/projects/the-interstellar-jurisdiction/amazing-plumbing/issues/?id=5&id=6 HTTP/1.1
Host: sentry.io
Authorization: Bearer {base64-encoded-key-here}

HTTP/1.1 204 NO CONTENT
Content-Length: 0
X-XSS-Protection: 1; mode=block
Content-Language: en
X-Content-Type-Options: nosniff
Vary: Accept-Language, Cookie
Allow: GET, PUT, DELETE, HEAD, OPTIONS
X-Frame-Options: deny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment