POST /api/environments { "environment": { "name": "" } } 422 { "error": { "id": null, "errors": { "name": [ "can't be blank", "must only contain alphanumeric or underscore characters" ] }, "full_messages": [ "Name can't be blank", "Name must only contain alphanumeric or underscore characters" ] } }
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:
|