Enter Gym
Enter certain gym by yourself or given client. You have to be an admin to enter gym for another client.
POST
/gym/visit
curl \
-X POST http://63.141.232.244:25540/v0/gym/visit \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"gym_id":1}'
Request example
{
"gym_id": 1
}
Response examples (200)
{
"success": true,
"visit_history": {
"gym_id": 1,
"left_at": "2024-10-10T20:36:47Z",
"entered_at": "2024-10-10T18:36:47Z",
"visit_history_id": 1
}
}
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"
}