Skip to content
Lodle edited this page May 13, 2014 · 4 revisions

Table of Contents

Delete Crashdump

Delete old / processed crashdumps.

Input

URL

 * http://api.desura.com/1/crashdelete

Post

 * To delete, you can either specify the exact crash:
   * id: Optional, int. ID of the crash you wish to delete
 * Or you can filter and delete multiple crashes. I.e. if you post appid = 100 and lessbuild = 50, all appid's which are 100 and builds less than 50 will be deleted:
   * appid: Optional, int. This is the [wiki:GeneralAppVersion application version]
   * build: Optional, int. This is the application build
   * lessbuild: Optional, int. As above, but instead of been an exact match, matches all builds less than this int
 * username: Not Required, String. Username of a Desura account
 * password: Not Required, String. Password (or password hash) for that account
   * OR
 * token: Not Required, String. Security Token (contact Scott for it)

Process

 1. When wanting to delete a crashdump this api is called
   * The user performing this action must have app read and delete access. Permission denied will result in a 108 error being thrown.
   * If none of the variables above are posted, a 107 (validation error) message will be thrown.
   * Any other errors will result in a 100 (generic error) message being thrown.
 1. If a valid data is provided, 0 (ok) will be returned

Output

0: Ok

<?xml version="1.0" encoding="utf-8"?> 
<crashdelete xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
	<status code="0"/>
</crashdelete>

107: Validation Error

<?xml version="1.0" encoding="utf-8"?> 
<crashdelete xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
 	<status code="107">You must specify the crashes you wish to remove.</status>
</crashdelete>

108: Permission Error

<?xml version="1.0" encoding="utf-8"?> 
<crashdelete xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="desura" version="1">
	<status code="108">You do not have permission to remove crash dumps.</status>
</crashdelete>

100: Generic Error

As above, only with different status code and text.