Create Bolt Database
POST
/v1/bolts/{boltId}/databasesAdd a new database to a Bolt.
Request
Path Params
boltId
string
required
The ID of your Bolt.
Example:
1234
Header Params
Accept
string
required
Example:
application/json
Content-Type
string
required
Example:
application/json
Body Params application/json
data
object
required
attributes
object
required
Example
{
"data": {
"attributes": {
"name": "Wordpress DB"
}
}
}
Request samples
Responses
Created(201)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
data
object
required
id
integer
required
type
string
required
attributes
object
required
relationships
object
required
Example
{
"data": {
"id": 1287,
"type": "databases",
"attributes": {
"webhostId": 8988,
"name": "Wordpress DB",
"dbHost": "xxx",
"dbName": "wordpressd",
"dbPass": "xxx",
"dbUser": "wordpressd",
"size": 0,
"tags": "",
"environments": []
},
"relationships": {
"bolt": {
"data": {
"type": "bolts",
"id": 8988
}
},
"server": {
"data": {
"type": "servers",
"id": 35
}
}
}
}
}
Last modified: 5 months ago