Delete a Team
DELETE/api/teams/{id}
Soft delete. The team leaves every listing but stays in the database and can be restored by an administrator. The staff users themselves are not touched.
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| id | Number | Team unique ID |
curl -X DELETE "https://yoursite.com/api/teams/123" \
-H "authtoken: YOUR_API_TOKEN" Success-Response:
HTTP/1.1 200 OK
{ "status": 200, "messages": { "success": "The record has been deleted." } } Error-Response:
HTTP/1.1 400 Bad Request
{ "status": false, "messages": { "error": "This record can't be deleted" } }