APIs & services / Reporting datasets (rtld)

Get the review status of farmers' 2025-26 action plans.

Endpointtoday's app
Call
GET /rtld/api/dataset/v1/execute?name=PlusOneAAP2526IEIDStatus
Service
Reporting datasets (rtld)
Features
VO / SHG / Farmer endorsement, KAP / Annual Action Plan 2025-26
When
User opens endorsement screens
Auth
X-SESSIONID set by CoreAPI (dooNowOrThrow)
In the App Service

Use case

Used before bulk endorsement: EndorsementFragment (non-SHG bulk endorse) and ResolveCommentsFragment send the farmer ids and get back the ids that already have a submitted 2025-26 action plan. Only those farmers are offered for endorsement. Offline or failed calls show an error and hide the progress bar.

Headers

HeaderValueNotes
X-SESSIONID<session token>Added by Bridge CoreAPI from the AccountManager session when the Operation is executed with dooNowOrThrow. The app code does not set it.

Parameters

ParamInRequiredExampleNotes
namequeryYesPlusOneAAP2526IEIDStatusDataset name. The rtld executor (/rtld/api/dataset/v1/execute) picks the dataset by this query param.
versionqueryYes1Dataset version. Always 1.
formatqueryYesjsonResponse format. Always json, so the body is a JSON array of row objects.
paramsqueryYesIEID_LIST=100001,100002,100003Dataset input parameters as KEY=value pairs joined with "--". IEID_LIST = comma-separated IE ids of the farmers being endorsed. Sent raw in the URL string built by the app.

Request

No body. IEID_LIST

Response

Example response body (synthetic data)
[
  {
    "owner_entity_id": "100001"
  },
  {
    "owner_entity_id": "100003"
  }
]
FieldTypeRequiredNotes
owner_entity_idstringIE id with a submitted 2025-26 plan; these ids form the endorsement picker list.

Errors

StatusWhenWhat the app does
non-2xxServer rejects the call or the dataset query fails (CoreAPI handles session refresh internally)Resource.error "Some error occurred" (or "no network"); progress bar hidden, no list shown.
network errorNo connectivity or timeoutResource.error "Some error occurred" (or "no network"); progress bar hidden, no list shown.

Source

  • app/src/main/java/org/platformcommons/urvi/datasource/repository/impl/EndorsementRepositoryImpl.kt
  • app/src/main/java/org/platformcommons/urvi/view/endorsements/vo/EndorsementFragment.kt
  • app/src/main/java/org/platformcommons/urvi/view/endorsements/comment/ResolveCommentsFragment.kt
  • app/src/main/java/org/platformcommons/urvi/datasource/network/responsedto/AAPStatus.kt