Setting infinite EOL does not work for On-Demand Sandboxes
Trailblazer Community

Setting infinite EOL does not work for On-Demand Sandboxes

Commerce Cloud API/OCAPI

Last updated 2020-06-26 ·Reference W-7743709 ·Reported By 1 users

In Review

Summary
When a realm has a fix predefined maximum sandbox-ttl and a sandbox has been created with that, it is not possible to overwrite the sandbox-ttl with an infinite EOL.

Repro
Using the Sandbox API attempt to update an existing sandbox with a call such as the following:

curl -X PATCH "https://admin.us01.dx.commercecloud.salesforce.com/api/v1/sandboxes/aaaacadaa-aaaa-asd-aaaa-11aa111a111aaa" -H "accept: application/json" -H "authorization: Bearer 77aaas7aaAas71AAAAa" -H "Content-Type: application/json" -d "{ \"ttl\": -1}"

Response will show:

{
"kind": "Status",
"code": 403,
"status": "Failure",
"error": {
"status": "Failure",
"message": "Increasing the sandboxes TTL by -1 hour(s) would exceed the maximum TTL of 2160 hour(s).",
"reason": "RestResponseEntity"
}
}

Workaround
None Currently known.

Reported By (1)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.