POST /api/environments { "environment": { "name": "some_environment", "location_ids": [ 255093256 ] } } 201 { "created_at": "2020-11-04 13:54:32 UTC", "updated_at": "2020-11-04 13:54:32 UTC", "name": "some_environment", "id": 687036956, "template_combinations": [], "puppetclasses": [], "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request 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:
|