Data Requests

Trigger Data Request Termination

Changed on

Triggers the termination of data requests whose termination period has expired, which otherwise runs as a scheduled nightly job, and waits for it to finish. Only accessible to administrators. The run is guarded by the same cluster-wide advisory lock as the scheduled job, so a conflict is reported if a run is already in progress.

post/api/agreement/v1/data-requests/termination

Request

  • The document declares no server URL.
  • Auth
    OpenID Connect (http://localhost:6999/realms/agate/.well-known/openid-configuration, scopes: agridata.ch.Agridata_Admin)

Response

OK

terminatedCountinteger

Number of data requests that were terminated during this run

failedCountinteger

Number of data requests that could not be terminated during this run

durationMsinteger

Duration of the run in milliseconds

Example response

{
  "terminatedCount": 3,
  "durationMs": 1234
}

Changes