Skip to content

Retry an app environment API Reference

POST
/tenants/{tenant}/apps/{app}/environments/{env}/retry
curl --request POST \
--url https://api.kupe.cloud/api/v1/tenants/example/apps/example/environments/example/retry \
--header 'Authorization: <Authorization>'

Deploy the environment’s current configuration again. Accepts no body or an empty JSON object. Send If-Match with the environment’s ETag so the retry is refused if the environment changed since you read it. A retry while deploying supersedes that request; the latest request wins. Answers 404 while the platform has apps switched off. Poll GET .../environments/{env} until status.requestedRelease names a release whose deploymentRevision matches the returned value; GET .../environments/{env}/releases provides that release’s revision. Then wait until status.deployment names that release and its phase is Succeeded or Failed. Recovery does not turn the failed requested release into a success.

tenant
required
string

Tenant name

app
required
string

App name

env
required
string

Environment name

If-Match
string

ETag from the environment read

Accepted

Media type application/json
object
app
string
deploymentRevision
integer
environment
string
generation
integer
Example generated
{
"app": "example",
"deploymentRevision": 1,
"environment": "example",
"generation": 1
}
ETag
string

UID and spec generation

Bad Request

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Unauthorized

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Forbidden

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Not Found

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Conflict

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Precondition Failed

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Request Entity Too Large

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}

Too Many Requests

Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}
Media type application/json
object
code
string
error
string
field
string
message
string
severity
string
Example generated
{
"code": "example",
"error": "example",
"field": "example",
"message": "example",
"severity": "example"
}