Assets
Create an asset
POST
https://api.borlaug.network/ar/registries/:registryid/assets
Path Parameters
registryid
string
Registry in which assets are created
Headers
BWS-Idempotency-Key
string
Authorization
string
Content-Type
string
application/json
Request Body
owner_did
string
properties
array
See below
total_shares
string
Shares can be assigned to lessees
residual_value
number
Price after depreciation
status
string
DRAFT, ACTIVE, INACTIVE
serial_number
string
Serial number
purchase_value
number
Original value
acquired_date
string
Purchased date in ISO8601 format
number
string
Asset number
name
string
Asset name
Get Assets
GET
https://api.borlaug.network/ar/registries/:registryid/assets
Retrieve all assets in a given registry
Path Parameters
registryid
number
Registry from which assets are to be retrieved
Query Parameters
filter_asset_number
string
page
number
For pagination zero based
per_page
number
Items per page
Headers
BWS-Idempotency-Key
string
Authorization
string
BWS authorization token
Update an asset
PATCH
https://api.borlaug.network/ar/registries/:registryid/assets/:assetid
Updates any asset properties
Path Parameters
assetid
number
Asset to be updated
registryid
string
Registry where asset is located
Headers
BWS-Idempotency-Key
string
Content-Type
string
application/json
Authorization
string
Get an asset
GET
https://api.borlaug.network/ar/registries/:registryid/assets/:assetid
Retrieve an asset
Path Parameters
assetid
number
On chain asset Id
registryid
number
Registry
Headers
BWS-Idempotency-Key
string
Authorization
string
Get leases
GET
https://api.borlaug.network/ar/registries/:registryid/assets/:assetid/leases
Find which leases the asset is on and what the current allocations are.
Path Parameters
registryid
number
assetid
number
Headers
Authorization
string
Get allocations
GET
https://api.borlaug.network/ar/registries/:registryid/assets/:assetid/allocations
Path Parameters
assetid
number
registryid
number
Headers
Authorization
string
Delete an asset
DELETE
https://api.borlaug.network/ar/registries/:registryid/assets/:assetid
Assets can be deleted if ther'es no active lease.
Path Parameters
registryid
number
Registry where asset is located
assetid
number
Asset to be deleted
Last updated
Was this helpful?