Skip to content

Update a freeze period

PUT
/api/v4/projects/{id}/freeze_periods/{freeze_period_id}

Updates a freeze period for a specified freeze_period_id. You must have the Maintainer or Owner role for the project.

id
required
One of:
string

The ID or URL-encoded path of the project

freeze_period_id
required
integer

The ID of the freeze period

Media type application/json
object
freeze_start

Start of the freeze period in cron format

string
nullable
freeze_end

End of the freeze period in cron format

string
nullable
cron_timezone

The time zone for the cron fields

string
nullable
Example generated
{
"freeze_start": "example",
"freeze_end": "example",
"cron_timezone": "example"
}

OK

Media type application/json
object
id
integer format: int64
freeze_start
string
freeze_end
string
cron_timezone
string
created_at
string format: date-time
updated_at
string format: date-time
Example
{
"id": 1,
"freeze_start": "0 23 * * 5",
"freeze_end": "0 8 * * 1",
"cron_timezone": "UTC",
"created_at": "2020-05-15T17:03:35.702Z",
"updated_at": "2020-05-15T17:03:35.702Z"
}

Bad request

Unauthorized

Not Found