Get metadata for a piece for how it may be reassembled from the data source
GET//localhost:9090/api/piece/{id}/metadata
Path parameters
id*string
Piece CID
Response
OK
Body
store.PieceReader (object)
Request
Response
Add a piece to a preparation
POST//localhost:9090/api/preparation/{id}/piece
Path parameters
id*string
Preparation ID or name
Body
Piece information
fileSizeinteger
File size of the CAR file, this is required for boost online deal
pieceCid*string
CID of the piece
pieceSize*string
Size of the piece
rootCidstring
Root CID of the CAR file, used to populate the label field of storage deal
Response
OK
Body
attachmentIdinteger
createdAtstring
fileSizeinteger
idinteger
jobIdinteger
numOfFilesinteger
pieceCidstring
pieceSizeinteger
preparationIdinteger
Association
rootCidstring
storageIdinteger
storagePathstring
StoragePath is the path to the CAR file inside the storage. If the StorageID is nil but StoragePath is not empty, it means the CAR file is stored at the local absolute path.