Assets

Create an asset

POST https://api.borlaug.network/ar/registries/:registryid/assets

Path Parameters

Name
Type
Description

registryid

string

Registry in which assets are created

Headers

Name
Type
Description

BWS-Idempotency-Key

string

Authorization

string

Content-Type

string

application/json

Request Body

Name
Type
Description

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

Name
Type
Description

registryid

number

Registry from which assets are to be retrieved

Query Parameters

Name
Type
Description

filter_asset_number

string

page

number

For pagination zero based

per_page

number

Items per page

Headers

Name
Type
Description

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

Name
Type
Description

assetid

number

Asset to be updated

registryid

string

Registry where asset is located

Headers

Name
Type
Description

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

Name
Type
Description

assetid

number

On chain asset Id

registryid

number

Registry

Headers

Name
Type
Description

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

Name
Type
Description

registryid

number

assetid

number

Headers

Name
Type
Description

Authorization

string

Get allocations

GET https://api.borlaug.network/ar/registries/:registryid/assets/:assetid/allocations

Path Parameters

Name
Type
Description

assetid

number

registryid

number

Headers

Name
Type
Description

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

Name
Type
Description

registryid

number

Registry where asset is located

assetid

number

Asset to be deleted

Last updated

Was this helpful?