POST - /environment

Description

This API adds an environment.


Input

Type: application/json

Param

Source

Type

Required

Description

Param

Source

Type

Required

Description

code 

body 

 string

 yes

 environment code

 description

 body

 string

 yes

 environment description

 settings

 body

 object

 yes

 

body.settings 

"oneOf": [ { "required": ["type", "port"] }, { "required": ["type", "namespace", "id"] } ]

Param

Source

Type

Required

Description

Param

Source

Type

Required

Description

type 

body.settings

 enum

 conditional

["manual", "kubernetes"]

 port

body.settings

 string

 conditional

 environment description

 namespace

body.settings

 string

 conditional

"pattern": /[a-z0-9]([-a-z0-9]*[a-z0-9])?/ 

id

body.settings

string

conditional

 

Â