-
Notifications
You must be signed in to change notification settings - Fork 10
DeleteMilestoneDelete
Robin B edited this page Mar 13, 2020
·
1 revision
Delete an existing milestone from the website.
Key | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
Authorization | Configured admin token |
Key | Description | Format | Example |
---|---|---|---|
id | ID of the milestone to be deleted | Integer | 39 |
Key | Description | Format | Example |
---|---|---|---|
--- | ----------- | ------ | ------- |
/admin/milestones/delete
with:
- id
5
Output when there is no error:
{
"code": 200,
"message": "Milestone successfully deleted.",
"milestone": {
"id": 5,
"count": 2000000,
"reached": 1,
"timestamp": 1550247538345,
"sound_id": 39
}
}
Output when the requested milestone (ID) was not found:
{
"code": 404,
"name": "Invalid milestone",
"message": "Milestone not found."
}
Output for other errors:
{
"code": 500,
"name": "Serverside error",
"message": "An unexpected error occurred."
}