Busabase
OpenAPI 参考

Files

File metadata and content endpoints.

POST
/api/v1/files

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/files" \  -H "Content-Type: application/json" \  -d '{    "slug": "string",    "name": "string",    "assetId": "string"  }'
{  "node": {    "id": "string",    "parentId": "string",    "type": "folder",    "slug": "string",    "name": "string",    "description": "string",    "metadata": {},    "settings": {},    "explicitVisibility": null,    "icon": null,    "position": 0,    "createdAt": "string",    "updatedAt": "string",    "baseId": "string",    "children": [      {        "id": "string",        "parentId": "string",        "type": "folder",        "slug": "string",        "name": "string",        "description": "string",        "metadata": {},        "settings": {},        "explicitVisibility": null,        "icon": null,        "position": 0,        "createdAt": "string",        "updatedAt": "string",        "baseId": "string",        "children": [          null        ],        "hasChildren": true,        "shared": true      }    ],    "hasChildren": true,    "shared": true  },  "asset": {    "id": "string",    "attachmentId": "string",    "name": "string",    "contentKind": "text",    "metadata": {},    "fileName": "string",    "mimeType": "string",    "size": 0,    "url": "string",    "contentHash": "string",    "usageCount": 0,    "textStatus": "missing",    "createdAt": "string"  },  "materialized": true}