Versions Compared

Key

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

...

Param

Source

Type

Required

Description

tag

body.config.from

string

conditional yes

branch

body.config.from

string

conditional yes

commit

body.config.from

string

conditional yes

image_name

body.config.from

string

conditional yes

image_tag

body.config.from

string

conditional yes

image_prefix

body.config.from

string

conditional yes

env

body.config.from

array

no

Output

...

Response

SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response 

Valid Response

Expand
titleSAMPLE
Code Block
languagejson
{
	"result": true,
	"data": {
		"stage_1": {
			"success": [
				"Deploy token authenticated Successfully"
			],
			"fail": []
		},
		"stage_2": {
			"success": [
				"Item found!"
			],
			"fail": []
		},
		"stage_3": {
			"success": [
				"Environments: NEW environments have been found"
			],
			"fail": []
		},
		"stage_4": {
			"success": [
				"Item Version 1 for environment NEW was selected with cd status deploy"
			],
			"fail": []
		},
		"stage_5": {
			"success": [
				"Item marketplace v 1 with cd status deploy in environment NEW has been successfully deployed"
			],
			"fail": []
		}
	}
}

Invalid Response

Expand
titleSAMPLE
Code Block
{
    "result":false,
    "errors":{
        "codes":[602],
        "details":[
            {
                "code":602,
                "message":"Model error: + %model_error%"
            }
        ]
    }
}

Response schema

Follow this link to check out the response JSON Schema

SOAJS Error Codes

...

Code

Description

400

Business logic required data are missing

503

Service Error: + %service_error”

602

Model error: + %model_error%