Ir al contenido

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.

Ventana de terminal
curl --fail-with-body -X DELETE 'https://app.openlatch.ai/api/public/v1/zones/<zone_id>/default' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorNo permitido
viewerNo permitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: zones:write

ParámetroTipoDescripción
zone_idstring (uuid)Obligatorio.
ParámetroTipoDescripción
dry_runbooleanCount the agents that would move and change nothing.
ParámetroTipoDescripción
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.
CampoTipoDescripción
movingintegerObligatorio.
{
"moving": 3
}