A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses
write_backups
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | write_backups |
| Database | write_backups |
The access token received from the authorization server in the OAuth 2.0 flow.
Organization name slug from list_organizations. Example: acme.
Database name slug from list_databases. Example: app-db.
The name of the backup policy
Whether the policy is for production or development branches
production, development A number value for the retention period of the backup policy
The unit for the retention period of the backup policy
hour, day, week, month, year A number value for the frequency of the backup policy
The unit for the frequency of the backup policy
hour, day, week, month The time of day that the backup is scheduled, in HH:MM format
Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
Returns the created backup policy
The ID of the backup policy
The display name of the backup policy
The name of the backup policy
Whether the policy is for production or development branches
production, development A number value for the retention period of the backup policy
The unit for the retention period of the backup policy
A number value for the frequency of the backup policy
The unit for the frequency of the backup policy
The time of day that the backup is scheduled, in HH:MM format
Day of the week that the backup is scheduled. 0 is Sunday, 6 is Saturday
Week of the month that the backup is scheduled. 0 is the first week, 3 is the fourth week
When the backup policy was created
When the backup policy was last updated
When the backup was last run
When the backup will next run
Whether the policy is a required system backup