Online bulk read of crop line item attachments after portfolios are downloaded (data download, unit data download, farmer hub refresh, SetupForUser). PLI ids are sent in chunks of 50; for each PLI the newest image becomes the PLI photo URL and the newest KML is written to files/geofencing and linked as the PLI geofence. Chunk failures are collected and the step fails with a combined message.
Headers
Header
Value
Notes
X-SESSIONID
<session token>
Added by AuthInterceptor (data/net/AuthInterceptor.kt) when the call does not set it; on HTTP 401 or 400 the interceptor invalidates the token, fetches a new one and retries the request once.
Parameters
Param
In
Required
Example
Notes
portfolioLineItemIds
query
Yes
6001,6002
CSV, chunk of 50.
returnAllMimeType
query
No
true
Sent as true by the 'Clean' variant (current callers); SetupForUser uses the older variant without it.