Skip to content

Restore a suspended team

POST
/api/v1/admin/teams/{id}/unsuspend
curl --request POST \
--url https://api.deploybase.eu/api/v1/api/v1/admin/teams/example/unsuspend \
--header 'Authorization: <Authorization>'

Lifts a suspension: the Zitadel organization is reactivated, every disabled Edge Rule is switched back on with its original GUID and ordering, each custom domain’s pull zone is re-pointed at its live deployment, the team’s HTTP functions are redeployed, and the team is emailed an all-clear. Safe to re-run; a call against a team that is not suspended is a no-op.

id
required
string

Team ID (UUID)

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
functions_error
string
functions_reconciled
boolean
hostnames_purged
integer
notification_error
string
notification_sent
boolean
projects
Array<object>
object
domains_processed
integer
errors
Array<string>
previews_processed
integer
production

Production is one of: “disabled”, “restored”, “no_rule” (the project has no production Edge Rule to touch), “no_live_deployment” (nothing to restore it to), “not_processed: …” (the context budget ran out first), or “error: …”.

string
project_id
string
project_slug
string
shares_processed
integer
purge_errors
Array<string>
suspended

Suspended is the team’s state AFTER the call.

boolean
transitioned_now

TransitionedNow is whether THIS call moved the flag. False on a re-run, which is also what keeps the statement of reasons from being sent twice.

boolean
zitadel_error
string
zitadel_org_deactivated
boolean
Example generated
{
"data": {
"functions_error": "example",
"functions_reconciled": true,
"hostnames_purged": 1,
"notification_error": "example",
"notification_sent": true,
"projects": [
{
"domains_processed": 1,
"errors": [
"example"
],
"previews_processed": 1,
"production": "example",
"project_id": "example",
"project_slug": "example",
"shares_processed": 1
}
],
"purge_errors": [
"example"
],
"suspended": true,
"transitioned_now": true,
"zitadel_error": "example",
"zitadel_org_deactivated": true
},
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Bad Request

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Unauthorized

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Forbidden

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Not Found

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Internal Server Error

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Service Unavailable

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
Example generated
{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}