/projects/{project_id}/branches/{branch_id}/backup_scheduleRetrieve backup scheduleReturns the backup schedule for the specified branch, including the configured snapshot frequencies.
Parameters
project_idstringpathrequiredThe Neon project ID
branch_idstringpathrequiredThe branch ID
Responses
schedulearray of objectrequiredList of schedule entries defining the backup frequency. At least one entry is required.
Show child attributes
Show array items
dayintegerThe day of the week or month to take the snapshot (if applicable).
frequencystringrequiredHow often to take snapshots. Known values: `daily`, `weekly`, `monthly`.
hourintegerThe hour of the day to take the snapshot (if applicable).
monthintegerThe month of the year to take the snapshot (if applicable).
retention_secondsintegerHow long to keep a scheduled snapshot (in seconds) before it's automatically deleted. The default is 3024000 seconds (35 days), which is also the maximum. Manually created snapshots have no maximum retention: set their `expires_at` instead.
{
"schedule": [
{
"day": 0,
"frequency": "daily",
"hour": 0,
"month": 0,
"retention_seconds": 3024000
}
]
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}