pullPiecesApiRequest
pullPiecesApiRequest(
options):Promise<ReturnType>
Defined in: packages/synapse-core/src/sp/pull-pieces.ts:119
Initiate a piece pull request or get status of an existing one.
POST /pdp/piece/pull
This endpoint is idempotent - calling with the same extraData returns the status of the existing pull rather than creating duplicates. This allows safe retries and status polling using the same request.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
options | OptionsType | pullPiecesApiRequest.OptionsType |
Returns
Section titled “Returns”The current status of the pull operation. pullPiecesApiRequest.ReturnType