Submit a TemsCore document to the indexing pipeline
POST/index
Enqueues a 3-stage pipeline (preprocessing → embedding → storing)
for the given TemsCore work. Returns immediately with a jobId ;
the work runs asynchronously on RQ workers. Poll GET /status/{jobId}
to follow each stage.
Concurrency on the same mediaWork.id is serialised by a FIFO
ticket lock and the previous pipeline is cancelled on arrival —
see the ARCHITECTURE doc § 4 for the protocol.
Request
Responses
- 200
- 400
- 401
- 422
- 500
Pipeline enqueued.
KC proxy sub-mode used without the X-Dataspace-Identity header,
or invalid received_at shape.
Missing / invalid bearer.
Request body doesn't match the TemsCore shape — e.g. missing
mediaWork.id or mediaWork.hasCanonicalVersion, or the
canonical version isn't present in articles[].
Pipeline failed to enqueue (Redis down, etc.).