Busabase
OpenAPI Reference

Sharing

Public link sharing for individual nodes.

GET
/api/v1/node-shares

Response Body

application/json

curl -X GET "https://example.com/api/v1/node-shares"
[  {    "nodeId": "string",    "name": "string",    "slug": "string",    "type": "folder",    "icon": null,    "capability": "read",    "hasPassword": true,    "expiresAt": "string",    "createdAt": "string"  }]
GET
/api/v1/nodes/{nodeId}/share

Path Parameters

nodeId*string

Response Body

application/json

curl -X GET "https://example.com/api/v1/nodes/string/share"
{  "nodeId": "string",  "scope": "none",  "capability": "read",  "hasPassword": true,  "expiresAt": "string",  "updatedAt": "string"}
POST
/api/v1/nodes/{nodeId}/share

Path Parameters

nodeId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/nodes/string/share" \  -H "Content-Type: application/json" \  -d '{    "scope": "none"  }'
{  "nodeId": "string",  "scope": "none",  "capability": "read",  "hasPassword": true,  "expiresAt": "string",  "updatedAt": "string"}
DELETE
/api/v1/nodes/{nodeId}/share

Path Parameters

nodeId*string

Response Body

application/json

curl -X DELETE "https://example.com/api/v1/nodes/string/share"
{  "nodeId": "string",  "scope": "none",  "capability": "read",  "hasPassword": true,  "expiresAt": "string",  "updatedAt": "string"}