در حال بارگذاری…
Deletes a specific working period from a gym.
| Permission | Description |
|---|---|
gym_working_periods.delete | Delete working periods from your own gyms |
gym_working_periods.delete_any | Delete working periods from any gym |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| gym-id | int |
| Yes |
| ID of the gym |
| 123 |
| working-period-id | int | Yes | ID of the working period | 55 |
DELETE /api/v1/gyms/123/working-periods/55
Authorization: Bearer {token}
Despite the 204, this endpoint does return a JSON body — a localized confirmation message.
HTTP defines 204 as bodyless, so some clients and proxies discard it; treat the body as informational,
not something to depend on.
{
"message": "Gym working period deleted successfully."
}
Localized from messages.gyms.working_periods.deleted_successfully (fa: “بازه کاری باشگاه با موفقیت حذف شد.”).
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |