Delete Gym
Deletes whole gym along with all visits. Do not use this endpoint unless you are sure. You can only delete gym if you're admin.
Path parameters
-
Id of the gym in database (retrieved using GET /gym)
DELETE
/gym/{gym_id}
curl \
-X DELETE http://63.141.232.244:25540/v0/gym/{gym_id} \
-H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"success": true
}
Response examples (400)
{
"success": false,
"error": [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"client_id"
],
"message": "Required"
}
]
}
Response examples (401)
{
"success": false,
"error": "Unauthorized"
}
Response examples (429)
{
"success": false,
"error": "Too many requests, please try again later"
}