Create Environment
POST
/v1/environmentsCreate a new environment in a Bolt.
Request
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": {
"boltId": 8988,
"title": "new awesome environment"
}
}
}
Request samples
Responses
Created(201)
Parameter Error(422)
HTTP Code: 201
Content Type : JSONapplication/json
Data Schema
data
object
required
id
string
required
type
string
required
attributes
object
required
relationships
object
required
links
object
required
Example
Exception
{
"errors": [
{
"title": "Invalid input",
"detail": "The data.attributes.bolt id field is required.",
"code": 422,
"source": {
"pointer": "/data/attributes/boltId"
}
},
{
"title": "Invalid input",
"detail": "The data.attributes.title field is required.",
"code": 422,
"source": {
"pointer": "/data/attributes/title"
}
}
]
}
Last modified: a month ago