Surfaces
Rename, reslug, reorder, OR replace a surface's column schema
Changed onRename, change the URL slug, move a surface within its workspace's tab strip, OR replace the column schema (table surfaces only). Pass any subset of name, slug, position, columns. Position uses 0-based indexing and other tabs shift to keep positions contiguous. Column replace fires surface.columns_updated; row.data keys not in the new schema are preserved on disk. Editor role required. Slug renames preserve old URLs via the surface alias table.
patch/api/workspaces/{slug}/surfaces/{surfaceSlug}
Request
- Base URLhttps://trydock.ai
- AuthHTTP bearer
Path parameters
slugstring required
surfaceSlugstring required
Request body
Response
Updated.
Example response
{
"surface": {
"id": "srf_01J5Z…",
"slug": "table-2",
"name": "Backlog"
}
}Changes
- info
added the new optional request property
// - info
added the optional property
///to the response with the status
- info