Skip to content

Create a command for an environment

POST
/api/v3/organizations/{organisation}/environments/{environment}/commands
curl --request POST \
--url https://dashboard.quantcdn.io/api/v3/organizations/test-org/environments/test-env/commands \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "command": "example" }'
organisation
required
string

The organisation ID

Example
test-org
environment
required
string

The environment ID

Example
test-env
Media typeapplication/json
object
command
string
Examplegenerated
{
"command": "example"
}

The command

Media typeapplication/json
object
runId
string
runType
string
command
string
status
string
startTime
string
endTime
string
exitCode
integer
output
Array<string>
scheduleName
string
targetContainerName
string
Examplegenerated
{
"runId": "example",
"runType": "example",
"command": "example",
"status": "example",
"startTime": "example",
"endTime": "example",
"exitCode": 1,
"output": [
"example"
],
"scheduleName": "example",
"targetContainerName": "example"
}