Timeoff > BlockedPeriod
Updates a Blocked period
Changed onUpdates a blocked period
put/api/2026-10-01/resources/timeoff/blocked_periods/{id}
Request
- Base URLhttps://api.factorialhr.com
- URLhttps://api.factorialhr.com/api/2026-10-01/resources/timeoff/blocked_periods/{id}
- Auth
- OAuth 2Authorization code: https://id.factorialhr.com/oauth/authorizeToken URL: https://id.factorialhr.com/api/oauth/token scopes: time_off
- or API key in header x-api-key
Path parameters
idstring required
Request body
Example request
{
"name": "Onboarding period edited",
"leave_type_ids": [
"1",
"2"
],
"time_periods_attributes": [
{
"name": "Product offsite updated",
"period_type": "by_contract_start_date",
"duration": 2,
"duration_unit": "months",
"start_on": "2024-01-02",
"finish_on": "2024-02-28"
}
],
"strategy": "fqlmultiselect",
"members": [
"25",
"22",
"23"
],
"team_ids": [
"1",
"2"
],
"location_ids": [
"1",
"2"
],
"legal_entity_ids": [
"1",
"2"
]
}Response
OK
Example response
{
"id": "1",
"company_id": "1",
"name": "Onboarding period",
"leave_type_ids": [
"1",
"2"
],
"time_periods": [
{
"name": "Product offsite",
"period_type": "by_contract_start_date",
"duration": 2,
"duration_unit": "months",
"start_on": "2024-01-01",
"finish_on": "2024-02-28"
}
],
"strategy": "everyone",
"members": [
"1",
"2"
],
"location_ids": [
"1",
"2"
],
"team_ids": [
"1",
"2"
],
"legal_entity_ids": [
"1",
"2"
]
}Changes
- info
endpoint added
- info