Get organization template lifecycle settings
Get the archive and delete rules an organization supplies to its projects. Requires organization membership.
Get the archive and delete rules an organization supplies to its projects. Requires organization membership.
Authorization
apiKey API key starting with tektona_. Create one at app-dev.tektona.ai under API Keys.
In: header
Path Parameters
Organization name
Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/orgs/string/settings/template-lifecycle"{ "effective": { "archive_after_days_unused": 0, "archive_enabled": true, "delete_after_days_archived": 0, "delete_enabled": true }, "settings": { "archive_after_days_unused": 1, "archive_enabled": true, "delete_after_days_archived": 1, "delete_enabled": true }, "source": { "archive_after_days_unused": "project", "archive_enabled": "project", "delete_after_days_archived": "project", "delete_enabled": "project" }}{ "detail": "Property foo is required but is missing.", "errors": [ { "location": "string", "message": "string", "value": null } ], "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "https://example.com/errors/example"}Tail a template build's log GET
Server-sent events. Replays the log from the cursor, then continues live. A line frame's SSE id resumes the stream as Last-Event-ID. Comment frames keep a quiet build's connection open.
Get project template lifecycle settings GET
Get the archive and delete rules that apply to a project's templates, and the scope each value came from. Requires read access to the project.