You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*DataApi* | [**delete_local**](docs/DataApi.md#delete_local) | **DELETE** /data/{cid} | Deletes either a single block or an entire dataset from the local node.
66
65
*DataApi* | [**download_local**](docs/DataApi.md#download_local) | **GET** /data/{cid} | Download a file from the local node in a streaming manner. If the file is not available locally, a 404 is returned.
67
66
*DataApi* | [**download_network**](docs/DataApi.md#download_network) | **POST** /data/{cid}/network | Download a file from the network to the local node if it's not available locally. Note: Download is performed async. Call can return before download is completed.
68
67
*DataApi* | [**download_network_manifest**](docs/DataApi.md#download_network_manifest) | **GET** /data/{cid}/network/manifest | Download only the dataset manifest from the network to the local node if it's not available locally.
Copy file name to clipboardExpand all lines: codex.yaml
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,7 @@ components:
205
205
required:
206
206
- id
207
207
- totalRemainingCollateral
208
+
- freeSize
208
209
allOf:
209
210
- $ref: "#/components/schemas/SalesAvailability"
210
211
- type: object
@@ -627,6 +628,26 @@ paths:
627
628
"500":
628
629
description: Well it was bad-bad
629
630
631
+
delete:
632
+
summary: "Deletes either a single block or an entire dataset from the local node."
633
+
tags: [Data]
634
+
operationId: deleteLocal
635
+
parameters:
636
+
- in: path
637
+
name: cid
638
+
required: true
639
+
schema:
640
+
$ref: "#/components/schemas/Cid"
641
+
description: Block or dataset to be deleted.
642
+
643
+
responses:
644
+
"204":
645
+
description: Data was successfully deleted.
646
+
"400":
647
+
description: Invalid CID is specified
648
+
"500":
649
+
description: There was an error during deletion
650
+
630
651
"/data/{cid}/network":
631
652
post:
632
653
summary: "Download a file from the network to the local node if it's not available locally. Note: Download is performed async. Call can return before download is completed."
Copy file name to clipboardExpand all lines: codex_api_client/models/sales_availability_read.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ class SalesAvailabilityREAD(BaseModel):
34
34
enabled: Optional[StrictBool] =Field(default=True, description="Enable the ability to receive sales on this availability.")
35
35
until: Optional[StrictInt] =Field(default=0, description="Specifies the latest timestamp, after which the availability will no longer host any slots. If set to 0, there will be no restrictions.")
free_size: Optional[StrictInt]=Field(default=None, description="Unused size of availability's storage in bytes as decimal string", alias="freeSize")
37
+
free_size: StrictInt=Field(description="Unused size of availability's storage in bytes as decimal string", alias="freeSize")
38
38
total_remaining_collateral: StrictStr=Field(description="Total collateral effective (in amount of tokens) that can be used for matching requests", alias="totalRemainingCollateral")
0 commit comments