Skip to content

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.

ParameterTypeDescription
optionsOptionsTypepullPiecesApiRequest.OptionsType

Promise<ReturnType>

The current status of the pull operation. pullPiecesApiRequest.ReturnType

Errors pullPiecesApiRequest.ErrorType