PATCH

/api/v1/environments/{id}

Patch TTL / metadata (If-Match)

Optimistic concurrency: If-Match is the bare integer revision from the last read

(missing → 400, stale → 412 revision_conflict). expiresAt may shorten or extend by

at most +1h per patch, never past the project maxTtlSeconds cap; an expired

environment cannot be extended. Bodies without expiresAt or metadata are rejected.

Operator face: principal sessions are denied 403 / 404 not_owned.

No code sample available for this language

Parameters

FieldTypeReqDefaultDescription
stringN—
stringN—

Request Body

FieldTypeReqDefaultDescription
expiresAtstringN—May shorten freely; extensions are capped at +1h per patch and the project TTL cap.
metadataobjectN—

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test