Listar atribuições de leitura
RegistosGET /reading-assignments
Returns a cursor-paginated page of reading assignments, each giving the reader, the round and the meters that reader must read. Use limit (default 20, maximum 100) and after to page. Requires the business:reading-assignments:read permission.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
round_idReturns only assignments that belong to this reading round ID.
reader_idReturns only assignments given to this reader (the user ID of the meter reader).
statusReturns only assignments in this status: assigned, in_progress, completed or cancelled; any other value returns 400.
um de
assigned,in_progress,completed,cancelled
Devolve
200 Filtered reader assignments with meter stops
Permissões business:reading-assignments:read · Funções: admin, analyst, field_reader, field_supervisor, operations, owner
curl -X GET "$BUSINESS_API/reading-assignments" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/reading-assignments", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/reading-assignments",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/reading-assignments", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Filtered reader assignments with meter stops