Redeploy from a past build
POST
/databases/{id}/redeploy
const url = 'https://api.reflexdb.cloud/v1/databases/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/redeploy';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"buildId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Database ID
Request Body required
Section titled “Request Body required ” Media type application/json
object
buildId
required
ID of the build to redeploy
string format: uuid
Example generated
{ "buildId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “ Responses ”Default Response
Media type application/json
object
status
required
string
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"}