Ir al contenido

Who would arrive if this unit's Autonomy Zone were enabled

GET/api/public/v1/org-units/{unit_id}/zone/preview

Agents with no manual assignment whose placement sits at or under the unit and whose current zone is above it — the agents for which the new zone would become the deepest — each with the placement link that brings it (owner · accountable_person · accountable_unit) and whether that link was set by hand. auto_arrivals is the total; agents lists the first 500 by display name. 409 ZONE_EXISTS when the unit already carries a zone.

Ventana de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/org-units/<unit_id>/zone/preview' \
-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:read

ParámetroTipoDescripción
unit_idstring (uuid)Obligatorio.
CampoTipoDescripción
agentsarray of objectObligatorio.
agents[].agent_idstringObligatorio.
agents[].current_zoneobjectObligatorio.
agents[].current_zone.idstringObligatorio.
agents[].current_zone.labelstringObligatorio.
agents[].reasonobjectObligatorio.
agents[].reason.kindstring — one of owner, accountable_person, accountable_unitObligatorio.
agents[].reason.personobject or null
agents[].reason.sourcestring — one of directory, manualObligatorio.
agents[].reason.unitstringObligatorio.
auto_arrivalsintegerObligatorio.
{
"agents": [
{
"agent_id": "agt_01jbwa2k1vfrn9y42xhgxhmzj2",
"current_zone": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"label": "string"
},
"reason": {
"kind": "owner",
"person": "string",
"source": "directory",
"unit": "string"
}
}
],
"auto_arrivals": 3
}