Loads all endorsements in the user's VO hierarchy. It runs from the side drawer (BottomNavigationDrawerFragment) and the farmer list (IeFragment) via EndorsementRepositoryImpl.getEndorsementForVo, only when the user has VO work nodes. Rows older than the configured endorsement start date are dropped. The rest update endorsement status on ie_flat_entity (VO, SHG or farmer level) and are saved to the endorsement table. Errors are logged and returned as Resource.error.
Headers
Header
Value
Notes
X-SESSIONID
<session token>
Not set by the call site. AuthInterceptor (OkHttpClientInterceptor) adds it from AndroidSessionManager. On a 401 or 400 it invalidates the token, gets a fresh one and retries once.
Parameters
Param
In
Required
Example
Notes
name
query
Yes
PlusOneEndorsementVOHierarchy
Dataset name. The rtld executor (/rtld/api/dataset/v1/execute) picks the dataset by this query param.
version
query
Yes
1
Dataset version. Always 1.
format
query
Yes
json
Response format. Always json, so the body is a JSON array of row objects.
params
query
Yes
VO_CODE=VO-ALIAS-001
Dataset input parameters as KEY=value pairs joined with "--". VO_CODE = SharedPrefSource.workNodeDetail.voAliasId (the VO the user works in).