Skip to content

Execute environment action

POST
/api/v1/environments/actions
curl --request POST \
--url https://osctrl.net/api/v1/environments/actions \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "action": "example", "hostname": "example", "icon": "example", "name": "example", "type": "example", "uuid": "example" }'

Creates or modifies an environment using the legacy action endpoint.

Request body

Media typeapplication/json
object
action
string
hostname
string
icon
string
name
string
type
string
uuid
string
Examplegenerated
{
"action": "example",
"hostname": "example",
"icon": "example",
"name": "example",
"type": "example",
"uuid": "example"
}

OK

Media typeapplication/json
object
message
string
Examplegenerated
{
"message": "example"
}

Bad request

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Unauthorized

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Forbidden

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Not found

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Conflict

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Too many requests

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Internal server error

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}

Service unavailable

Media typeapplication/json
object
code
string
error
string
Examplegenerated
{
"code": "example",
"error": "example"
}