POST /api/environments { "environment": { "name": "some_environment", "organization_ids": [ 114267492 ] } } 201 { "created_at": "2018-07-24 12:57:33 UTC", "updated_at": "2018-07-24 12:57:33 UTC", "name": "some_environment", "id": 687036939, "template_combinations": [], "puppetclasses": [], "locations": [], "organizations": [ { "id": 114267492, "name": "Empty Organization", "title": "Empty Organization", "description": null } ] }
Param name | Description |
---|---|
location_id optional |
Scope by locations Validations:
|
organization_id optional |
Scope by organizations Validations:
|
environment required |
Validations:
|
environment[name] required |
Validations:
|
environment[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
environment[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|