Storage Allocation Management
Storage Allocation Management
These endpoints manage decentralized storage allocations and permissions.
Insert Allocation
Path:
/v2/allocationMethod:
POSTAccess: Signature API
Description: Creates a new allocation for the authenticated user. Used to provision decentralized storage via blobbers.
Headers Required:
AuthHeaderBody:
{
"id": "a1b2c3d4e5f6g7h8i9j0",
"name": "My First Allocation",
"description": "This is my primary storage allocation.",
"allocation_type": "standard",
"alloc_blobbers_type": "hot"
}Response:
Update Allocation
Path:
/v2/allocationMethod:
PUTAccess: Signature API
Description: Updates an existing allocation with new configuration such as size or blobber replacement.
Headers Required:
AuthHeaderBody:
Response:
Delete Allocation
Path:
/v2/allocation/:IDMethod:
DELETEAccess: Signature API
Description: Permanently deletes a specified allocation.
Path Param:
ID(string)Headers Required:
AuthHeaderResponse:
Get Allocation
Path:
/v2/allocationMethod:
GETAccess: Signature API
Description: Fetches details of an allocation by ID using body data.
Headers Required:
AuthHeaderBody:
Response:
Get Allocation List
Path:
/v2/allocation/listMethod:
GETAccess: Signature API
Description: Retrieves all allocations for the authenticated owner.
Headers Required:
AuthHeaderResponse: Array of
AllocResponseobjects.
Check Allocation Name
Path:
/v2/allocation/exists/nameMethod:
GETAccess: Signature API
Query Parameter:
allocation_name(string, required)Headers Required:
AuthHeaderResponse:
Check Allocation (by user + app)
Path:
/v2/allocation/existsMethod:
GETAccess: CSRF API
Headers Required:
NonAuthHeaderResponse:
Public Smart Contract Allocation Info
GetSCAllocation
Path:
/v2/getAllocationMethod:
GETAccess: Public
Query Parameter:
allocation(string, required)Description: Returns full SC data and blobber info.
Response (simplified):
GetSCAllocations
Path:
/v2/geAllocationsMethod:
GETAccess: Public
Query Parameter:
client(string, required)Description: Lists SC allocations for a specific client ID.
Last updated