Skip to content
LydieDevelopers
Menu

Move a page to another teamspace or to Private

View as Markdown
POST/v1/documents/{id}/space

Moves the page and its subpages to the top level of a teamspace you belong to, or of your private section (teamspaceId null). Needs full access to the page.

Request
curl -X POST "https://api.lydie.co/v1/documents/01JCQ3V5MZ8G4ZK2X7T9R6N1PB/space" \
  -H "Authorization: Bearer $LYDIE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "teamspaceId": null
  }'

Path parameters

  • idULIDrequired

Body

  • teamspaceIdstringor nullrequired· 1–64 chars
  • sortKeystring· 1–256 chars

    Recorded by clients so replays converge.

Response

200
{
  "id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
  "workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
  "parentId": null,
  "title": "Meeting notes",
  "sortKey": "a0",
  "properties": {
    "status": "draft"
  },
  "createdAt": "2026-11-12T09:30:00.000Z",
  "updatedAt": "2026-11-12T09:30:00.000Z",
  "deletedAt": null,
  "createdBy": null,
  "updatedBy": null
}

Errors use one envelope for every endpoint. See Errors and versions.