Ir al contenido

Make a zone the organization's default zone

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

The default zone serves agents with no resolved owner and no manual assignment, existing ones included; the root serves when none is chosen. Swapping clears the previous default in the same transaction. dry_run=true answers moving — the agents whose zone would change — and writes nothing. PUT on the root clears any default; on the zone that already is the default it is a no-op answering moving: 0.

Ventana de terminal
curl --fail-with-body -X PUT '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
}