Raff Apps
Link a database to an app
Changed onLink a running managed database to an app. Raff creates a database user for this app, sets {PREFIX}_URL, _HOST, _PORT, _USER, _PASSWORD, _NAME and _CA_CERT (prefix DATABASE by default; the first link also fills a template's own settings) and redeploys the app. Connections go over Raff's private network and always use TLS; check the server with {PREFIX}_CA_CERT.
<Note> Before linking, you need the **database ID**: get it from [List Databases](/api-reference/databases/list-databases). </Note>post/api/v1/apps/services/{service_id}/bindings
Request
- Base URLhttps://api.rafftechnologies.com
- URLhttps://api.rafftechnologies.com/api/v1/apps/services/{service_id}/bindings
- AuthAPI key in header X-API-Key
Path parameters
service_idstring required
App service ID (UUID) or short id (the service_id field)
Request body
Response
Linked; the app redeploys with the new settings
Changes
- info
endpoint added
- info