---
title: "POST /v1/{+parent}/backupSchedules"
method: POST
path: "/v1/{+parent}/backupSchedules"
tags: ["projects"]
---

# POST /v1/{+parent}/backupSchedules

`POST /v1/{+parent}/backupSchedules`

Creates a backup schedule on a database. At most two backup schedules can be configured on a database, one daily backup schedule and one weekly backup schedule.

## Path parameters

- `parent` string, required

## Request body

- GoogleFirestoreAdminV1BackupSchedule — A backup schedule for a Cloud Firestore Database. This resource is owned by the database it is backing up, and is deleted along with the database. The actual backups are not though.
  - `dailyRecurrence` GoogleFirestoreAdminV1DailyRecurrence — Represents a recurring schedule that runs every day. The time zone is UTC.
  - `updateTime` string, google-datetime — Output only. The timestamp at which this backup schedule was most recently updated. When a backup schedule is first created, this is the same as create_time.
  - `createTime` string, google-datetime — Output only. The timestamp at which this backup schedule was created and effective since. No backups will be created for this schedule before this time.
  - `name` string — Output only. The unique backup schedule identifier across all locations and databases for the given project. This will be auto-assigned. Format is `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
  - `weeklyRecurrence` GoogleFirestoreAdminV1WeeklyRecurrence — Represents a recurring schedule that runs on a specified day of the week. The time zone is UTC.
    - `day` 'DAY_OF_WEEK_UNSPECIFIED' | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY' — The day of week to run. DAY_OF_WEEK_UNSPECIFIED is not allowed.
  - `retention` string, google-duration — At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention period is 14 weeks.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/firestore.md) · [All operations](https://skmtc.net/google/apis/firestore/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/firestore/versions/11bc07a83431/schema)
