Skip to content

Download project backup

post/v2/projects/{ref}/backups/download

OAuth scopes

  • database:write

The fine-grained token must include the following permissions to access this endpoint:

  • backups_write

Path parameters

  • ref
    Required
    string

    Project ref

Body

  • data
    Required
    object

Response codes

  • 201
  • 401
  • 403
  • 404
  • 429
  • 500

Response (201)

{
"data": {
"type": "project_backup_file_url",
"id": 42,
"attributes": {
"file_url": "lorem"
}
}
}
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Resource type.",
"enum": [
"project_backup_file_url"
]
},
"id": {
"type": "number"
},
"attributes": {
"type": "object",
"properties": {
"file_url": {
"type": "string"
}
},
"required": [
"file_url"
]
}
},
"required": [
"type",
"id",
"attributes"
]
}
},
"required": [
"data"
]
}