交易计划
Preparation ID or name
OK
Bad Request
Internal Server Error
GET /api/preparation/{id}/schedules HTTP/1.1
Host: localhost:9090
Accept: */*
[
{
"allowedPieceCids": [
"text"
],
"announceToIpni": true,
"createdAt": "text",
"duration": 1,
"errorMessage": "text",
"force": true,
"httpHeaders": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"keepUnsealed": true,
"maxPendingDealNumber": 1,
"maxPendingDealSize": 1,
"notes": "text",
"preparationId": 1,
"pricePerDeal": 1,
"pricePerGb": 1,
"pricePerGbEpoch": 1,
"provider": "text",
"scheduleCron": "text",
"scheduleCronPerpetual": true,
"scheduleDealNumber": 1,
"scheduleDealSize": 1,
"startDelay": 1,
"state": "active",
"totalDealNumber": 1,
"totalDealSize": 1,
"updatedAt": "text",
"urlTemplate": "text",
"verified": true
}
]Create a new schedule
Allowed piece CIDs in this schedule
Duration in epoch or in duration format, i.e. 1500000, 2400h
12840hForce to send out deals regardless of replication restriction
http headers to be passed with the request (i.e. key=value)
Whether the deal should be IPNI
trueWhether the deal should be kept unsealed
trueMax pending deal number
Max pending deal size in human readable format, i.e. 100 TiB
Notes
Preparation ID or name
Price in FIL per deal
0Price in FIL per GiB
0Price in FIL per GiB per epoch
0Provider
Schedule cron pattern
Whether a cron schedule should run in definitely
Number of deals per scheduled time
Size of deals per schedule trigger in human readable format, i.e. 100 TiB
Deal start delay in epoch or in duration format, i.e. 1000, 72h
72hTotal number of deals
Total size of deals in human readable format, i.e. 100 TiB
URL template with PIECE_CID placeholder for boost to fetch the CAR file, i.e. http://127.0.0.1/piece/{PIECE_CID}.car
Whether the deal should be verified
trueOK
Bad Request
Internal Server Error
POST /api/schedule HTTP/1.1
Host: localhost:9090
Content-Type: application/json
Accept: */*
Content-Length: 475
{
"allowedPieceCids": [
"text"
],
"duration": "12840h",
"force": true,
"httpHeaders": [
"text"
],
"ipni": true,
"keepUnsealed": true,
"maxPendingDealNumber": 1,
"maxPendingDealSize": "text",
"notes": "text",
"preparation": "text",
"pricePerDeal": 0,
"pricePerGb": 0,
"pricePerGbEpoch": 0,
"provider": "text",
"scheduleCron": "text",
"scheduleCronPerpetual": true,
"scheduleDealNumber": 1,
"scheduleDealSize": "text",
"startDelay": "72h",
"totalDealNumber": 1,
"totalDealSize": "text",
"urlTemplate": "text",
"verified": true
}{
"allowedPieceCids": [
"text"
],
"announceToIpni": true,
"createdAt": "text",
"duration": 1,
"errorMessage": "text",
"force": true,
"httpHeaders": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"keepUnsealed": true,
"maxPendingDealNumber": 1,
"maxPendingDealSize": 1,
"notes": "text",
"preparationId": 1,
"pricePerDeal": 1,
"pricePerGb": 1,
"pricePerGbEpoch": 1,
"provider": "text",
"scheduleCron": "text",
"scheduleCronPerpetual": true,
"scheduleDealNumber": 1,
"scheduleDealSize": 1,
"startDelay": 1,
"state": "active",
"totalDealNumber": 1,
"totalDealSize": 1,
"updatedAt": "text",
"urlTemplate": "text",
"verified": true
}Schedule ID
OK
Bad Request
Internal Server Error
POST /api/schedule/{id}/pause HTTP/1.1
Host: localhost:9090
Accept: */*
{
"allowedPieceCids": [
"text"
],
"announceToIpni": true,
"createdAt": "text",
"duration": 1,
"errorMessage": "text",
"force": true,
"httpHeaders": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"keepUnsealed": true,
"maxPendingDealNumber": 1,
"maxPendingDealSize": 1,
"notes": "text",
"preparationId": 1,
"pricePerDeal": 1,
"pricePerGb": 1,
"pricePerGbEpoch": 1,
"provider": "text",
"scheduleCron": "text",
"scheduleCronPerpetual": true,
"scheduleDealNumber": 1,
"scheduleDealSize": 1,
"startDelay": 1,
"state": "active",
"totalDealNumber": 1,
"totalDealSize": 1,
"updatedAt": "text",
"urlTemplate": "text",
"verified": true
}Schedule ID
OK
Bad Request
Internal Server Error
POST /api/schedule/{id}/resume HTTP/1.1
Host: localhost:9090
Accept: */*
{
"allowedPieceCids": [
"text"
],
"announceToIpni": true,
"createdAt": "text",
"duration": 1,
"errorMessage": "text",
"force": true,
"httpHeaders": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"keepUnsealed": true,
"maxPendingDealNumber": 1,
"maxPendingDealSize": 1,
"notes": "text",
"preparationId": 1,
"pricePerDeal": 1,
"pricePerGb": 1,
"pricePerGbEpoch": 1,
"provider": "text",
"scheduleCron": "text",
"scheduleCronPerpetual": true,
"scheduleDealNumber": 1,
"scheduleDealSize": 1,
"startDelay": 1,
"state": "active",
"totalDealNumber": 1,
"totalDealSize": 1,
"updatedAt": "text",
"urlTemplate": "text",
"verified": true
}Last updated
Was this helpful?