Projects

Set project sandbox lifecycle defaults

Full replacement. A null field clears the project default (sandboxes fall through to the platform default). Requires project admin role.

PUT
/v1/orgs/{org}/projects/{project}/lifecycle-defaults

Full replacement. A null field clears the project default (sandboxes fall through to the platform default). Requires project admin role.

AuthorizationBearer <token>

API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.

In: header

Path Parameters

org*string

Organization name

Match^[a-z0-9][a-z0-9-]*[a-z0-9]$
Length2 <= length <= 64
project*string

Project name

Match^[a-z0-9][a-z0-9-]*[a-z0-9]$
Length2 <= length <= 64

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

auto_delete_after*|

Default delete TTL; null = no default, "0" = never.

auto_pause_after*|

Default idle timeout; null = no default, "0" = never.

auto_pause_mode?string

Default pause mode; null = no default.

Value in"hibernate" | "suspend"
auto_resume*|

Default auto-resume; null = no default.

Response Body

application/json

application/problem+json

curl -X PUT "https://api-dev.tektona.ai/v1/orgs/string/projects/string/lifecycle-defaults" \  -H "Content-Type: application/json" \  -d '{    "auto_delete_after": "string",    "auto_pause_after": "string",    "auto_resume": true  }'
{  "$schema": "https://api-dev.tektona.ai/schemas/LifecycleDefaultsBody.json",  "auto_delete_after": "string",  "auto_pause_after": "string",  "auto_pause_mode": "hibernate",  "auto_resume": true}