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

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
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" } }
MethodDELETE
Path/api/teams/{id}
GroupTeam
Sincev1.0.0
Defined inRestApi/Controllers/TeamController.php