pullPieces
pullPieces(
options):Promise<PullResponse>
Defined in: packages/synapse-core/src/sp.ts:1003
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 | pullPieces.OptionsType |
Returns
Section titled “Returns”The current status of the pull operation. pullPieces.ReturnType
Throws
Section titled “Throws”Errors pullPieces.ErrorType