Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Param

Source

Type

Required

Description

env

 body

 string

 no

 environment code

 id

body 

 string

 yes

 _id

data 

body

 object

 yes

 conditional

 body.data

Code Block
"anyOf": [
			{
				"required": ["name"]
			},
			{
				"required": ["plugged"]
			},
			{
				"required": ["shared"]
			},
			{
				"required": ["sharedEnvs"]
			},
			{
				"required": ["config"]
			},
			{
				"required": ["type"]
			},
			{
				"required": ["category"]
			}
		]

Param

Source

Type

Required

Description

name

 body.data

 string

conditional

 "pattern": /[a-z0-9]{1,61}/

 plugged

 body.data

 boolean

conditional

 

shared 

 body.data

 boolean

conditional

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

...

sharedEnvs

 body.data

object

conditional

"patternProperties": {"^[A-Z]+$": {"type": "boolean"}}

{“env_code”: true}

config

 body.data

object

conditional

type

 body.data

enum

conditional

['cluster', 'server', 'cdn', 'system', 'authorization', 'other']

category

 body.data

string

conditional