-
Notifications
You must be signed in to change notification settings - Fork 10
DeleteSoundDelete
Robin B edited this page Mar 13, 2020
·
1 revision
Delete an existing sound from the website.
Key | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
Authorization | Configured admin token |
Key | Description | Format | Example |
---|---|---|---|
id | ID of the sound to be deleted | Integer | 42 |
Key | Description | Format | Example |
---|---|---|---|
--- | ----------- | ------ | ------- |
/admin/sounds/delete
with:
- id
42
Output when there is no error:
{
"code": 200,
"message": "Sound successfully deleted.",
"sound": {
"id": 42,
"filename": "explosion",
"displayname": "Boom!",
"source": "Movie 1",
"count": 0,
"theme": "darkness"
}
}
Output when the requested sound (ID) was not found:
{
"code": 404,
"name": "Invalid sound",
"message": "Sound not found."
}
Output for other errors:
{
"code": 500,
"name": "Serverside error",
"message": "An unexpected error occurred."
}