database
Create a site database
Changed onCreates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.
post/sites/{site_id}/database
Request
- Base URLhttps://api.netlify.com/api/v1
- URLhttps://api.netlify.com/api/v1/sites/{site_id}/database
- AuthOAuth 2Implicit: https://app.netlify.com/authorize
Request body
Response
Database already exists
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking