Skip to content

Revert the default zone to the root

DELETE/api/public/v1/zones/{zone_id}/default

409 NOT_DEFAULT when the zone is not the default. dry_run=true answers moving and writes nothing. Retiring the default zone clears the flag the same way.

Terminal window
curl --fail-with-body -X DELETE 'https://app.openlatch.ai/api/public/v1/zones/<zone_id>/default' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorNot allowed
viewerNot allowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: zones:write

ParameterTypeDescription
zone_idstring (uuid)Required.
ParameterTypeDescription
dry_runbooleanCount the agents that would move and change nothing.
ParameterTypeDescription
Idempotency-Keystring or nullOptional. Makes the request safe to retry: the same key and the same request, within 24 hours, returns the stored response with Idempotent-Replayed: true and runs once.
FieldTypeDescription
movingintegerRequired.
{
"moving": 3
}