Busabase
OpenAPI 参考

Views

Base view configuration and metadata.

GET
/api/v1/bases/{baseId}/views

Path Parameters

baseId*string

Query Parameters

status?string

active (default) or the soft-archived set. Archived rows have the SAME shape as live ones — this is a predicate, not a different resource.

Default"active"

Value in

  • "active"
  • "archived"

Response Body

application/json

curl -X GET "https://example.com/api/v1/bases/string/views"
[  {    "id": "string",    "baseId": "string",    "slug": "string",    "name": "string",    "description": "string",    "type": "table",    "config": {      "filters": [],      "sorts": [],      "visibleFieldSlugs": [        "string"      ],      "fieldWidths": {        "property1": 92,        "property2": 92      },      "coverFieldSlug": "string",      "coverFit": "cover",      "cardSize": "small",      "showFieldLabels": true,      "stackByFieldSlug": "string",      "dateFieldSlug": "string",      "startFieldSlug": "string",      "endFieldSlug": "string",      "ganttScale": "week"    },    "status": "active",    "createdBy": "string",    "createdByUser": null,    "archivedAt": "string",    "createdAt": "string",    "updatedAt": "string"  }]
POST
/api/v1/views/change-requests

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/views/change-requests" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "operation": "create",    "baseId": "string"  }'
{  "id": "string",  "baseId": "string",  "slug": "string",  "name": "string",  "description": "string",  "type": "table",  "config": {    "filters": [],    "sorts": [],    "visibleFieldSlugs": [      "string"    ],    "fieldWidths": {      "property1": 92,      "property2": 92    },    "coverFieldSlug": "string",    "coverFit": "cover",    "cardSize": "small",    "showFieldLabels": true,    "stackByFieldSlug": "string",    "dateFieldSlug": "string",    "startFieldSlug": "string",    "endFieldSlug": "string",    "ganttScale": "week"  },  "status": "active",  "createdBy": "string",  "createdByUser": null,  "archivedAt": "string",  "createdAt": "string",  "updatedAt": "string",  "materialized": true}