Indexing
🛡️ Control the current indexing run.
Update the state of the currently running indexing operation. This endpoint is dedicated to controlling the indexing service from the frontend, and cannot update completed runs.
This endpoint is designed to accept actions. Instead of sending the desired state, send an action and let the indexing service handle the change internally. So, you send "stop", and internally the service will terminate the run and change the state to idle.
Accepted actions are:
- pause - Pauses the run after the current file has completed indexing. The internal state will change to paused.
- resume - Resumes a run and continues with the next file. Triggering resume on a run that isn't paused will have no effect. The internal state will change to indexing.
- stop - Stops a run after the current file has completed indexing. The internal state will change to idle, and a new run can be started.
<br /><hr /><h3>🛡️ Requires Capabilities: <code>Indexing.Operate</code></h3>
patch/api/v1/index/state