Skip to content

Redeploy from a past build

POST
/databases/{id}/redeploy
curl --request POST \
--url https://api.reflexdb.cloud/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/redeploy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "buildId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Re-runs terraform apply with the image from a specific past build, without triggering a new CodeBuild run. Useful for rollbacks or sidecar updates. Only allowed from: running, paused, failed.

id
required
string format: uuid

Database ID

Media type application/json
object
buildId
required

ID of the build to redeploy

string format: uuid
Example generated
{
"buildId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Default Response

Media type application/json
object
status
required
string
Allowed values: deploying
Example
{
"status": "deploying"
}

Default Response

Media type application/json
Error
object
error
required
string
message
string
Example generated
{
"error": "example",
"message": "example"
}

Default Response

Media type application/json
Error
object
error
required
string
message
string
Example generated
{
"error": "example",
"message": "example"
}

Default Response

Media type application/json
Error
object
error
required
string
message
string
Example generated
{
"error": "example",
"message": "example"
}