Updates a specific working period for a gym.
| Permission | Description |
|---|---|
gym_working_periods.update | Update working periods for your own gyms |
gym_working_periods.update_any | Update working periods for 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 |
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| day | string | No | Day of the week (saturday-friday) | "monday" |
| gender | string | No | men, women, or genderless | "women" |
| opens_at | string | No | Opening time (HH:mm) | "07:00" |
| closes_at | string | No | Closing time (HH:mm) | "23:30" |
| description | string | No | Description (max 2000 chars, optional) | "Some desc" |
| is_exception | bool | No | Whether this is for an exceptional date | false |
| exception_start_date | string | No | Start date of the exception (YYYY-MM-DD) | null |
| exception_end_date | string | No | End date of the exception (YYYY-MM-DD) | null |
All parameters are optional; only include fields you wish to update. You can set them to null to clear their value.
{
"day": "monday",
"gender": "women",
"opens_at": "07:00",
"closes_at": "23:30",
"description": "Some desc",
"is_exception": false
}
Returns the updated working period resource.
{ /* working period resource */ }
For a full schema, see Working Period Resource.
| Status | Description | Reference |
|---|---|---|
| 422 | Validation error | Validation error |
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |