Catalogs
Create a new catalog
POST https://api.borlaug.network/identity/catalogs
Headers
Content-Type
string
application/json
Authorization
string
BWS authorization token
Request Body
name
string
The name of the catalog
{
"result": "success",
"hash": "0xd3f16b32a9ce51d6ed2a6dfb43bcf0f69b78618b3a391fce5ddbc6462c7fb5e8",
"block": "0x103eb49619c7f79a4e76292b8ceafc4e1aaad6b4531ccdfcbb5e26c74319d6df",
"extrinsic": "0xd8f3653767461c653fcdeb1404b7ac49fe878e6dab2241bf211176d964e44662",
"created": "2020-02-03T10:35:48.016896"
}Example body:
{
"name" : "Test Catalog"
}List your catalogs
GET https://api.borlaug.network/identity/catalogs
Headers
Authentication
string
Authentication token
List all DIDs in a catalog
GET https://api.borlaug.network/identity/catalogs/:catalogid/dids
Path Parameters
catalog_id
number
Catalog in question
page
number
For pagination
per_page
number
Number of DIDs per page
Headers
Authorization
string
BWS authorization token
Update catalog name
PATCH https://api.borlaug.network/identity/catalogs/:catalogid
Update catalog name
Path Parameters
catalogid
number
Catalog to be updated
Headers
Authorization
string
BWS authorization token
Add or remove DIDs in a catalog
PATCH https://api.borlaug.network/identity/catalogs/:catalogid/dids
Add or re
Path Parameters
catalogid
number
Catalog to be modified
Headers
Content-Type
string
application/json
Authorization
string
BWS authorization token
Delete catalog
DELETE https://api.borlaug.network/identity/catalogs/:catalogid
Removes the catalog and DIDs in the catalog. NOTE: The DIDs themselves are not deleted from DID registry.
Path Parameters
catalogid
number
Catalog to be removed
Headers
Authorization
string
BWS authorization token
Last updated
Was this helpful?