Sites API

Bramble Sites: team and communication sites with pages and news, members and roles, navigation and branding, and document libraries (which are Drive libraries managed by the site). Works with an API key.

Address
https://<your-org>.brambleit.cloud/sites
Sign-in
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Address
https://<your-org>.brambleit.cloud/api
Sign-in
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Endpoints
58
OpenAPI
sites.json
Guides
How Sites works

Sites are found by id or address. Endpoints with :ref take either the site's number or its slug.

Pages have a draft and a published version. Edit the draft, then publish it; every publish is kept as a version you can restore.

Files in a site's libraries are Drive files: use the Drive API with the library as site.

Resources

Home & search

Your sites home page, search, news across sites, and finding people.

MethodPathSummary
GET/api/v2/meWho you are: the signed-in person and what they can do here
GET/api/v2/homeYour sites home page
GET/api/v2/searchSearch sites and pages
GET/api/v2/newsNews from your sites
GET/api/v2/peopleFind people

Sites

Create and change sites, members and roles, following, libraries, pages and news.

MethodPathSummary
GET/api/v2/sitesList sites you can see
POST/api/v2/sitesCreate a site
GET/api/v2/sites/:refGet a site
PATCH/api/v2/sites/:idUpdate a site
DELETE/api/v2/sites/:idDelete a site
POST/api/v2/sites/:id/followFollow or unfollow a site
GET/api/v2/sites/:id/membersA site's members
PUT/api/v2/sites/:id/membersAdd or change a member
DELETE/api/v2/sites/:id/members/:type/:pidRemove a member
POST/api/v2/sites/:id/librariesAdd a document library
PATCH/api/v2/sites/:id/libraries/:lidRename a document library
DELETE/api/v2/sites/:id/libraries/:lidDelete a document library
GET/api/v2/sites/:id/pagesA site's pages
POST/api/v2/sites/:id/pagesCreate a page or news post
GET/api/v2/sites/:ref/page/:slugGet a page by its address
GET/api/v2/sites/:id/newsA site's news
GET/api/v2/sites/:id/blocks/filesFiles for a Files block
GET/api/v2/sites/:id/libraries/:lid/foldersFolders of a site library, for the Files block's folder picker
POST/api/v2/sites/:id/assetsUpload an image

Pages & news

A page's draft, publishing, versions, pinning and making it the site's home page.

MethodPathSummary
GET/api/v2/pages/:idGet a page
PUT/api/v2/pages/:id/draftSave a page's draft
POST/api/v2/pages/:id/publishPublish a page's draft
POST/api/v2/pages/:id/discardThrow away a page's draft
DELETE/api/v2/pages/:idDelete a page
POST/api/v2/pages/:id/homeMake a page the site's home page
POST/api/v2/pages/:id/pinPin or unpin a news post
GET/api/v2/pages/:id/versionsA page's published versions
POST/api/v2/pages/:id/versions/:vid/restoreRestore a published version

Page blocks

Data page blocks use (files, people, embed checks) and uploading images.

MethodPathSummary
GET/api/v2/blocks/peoplePeople for a People block
POST/api/v2/blocks/embed-checkCan this address be embedded?
GET/api/v2/assets/:idGet an image

Library files (Bramble Sync)

Older file routes Bramble Sync uses for site libraries. They pass straight through to Drive.

MethodPathSummary
POST/api/upload/:siteIdUpload a file to a site library (Sync)
PATCH/api/item/:itemId/contentReplace a file's contents (Sync)
GET/api/download/:itemIdDownload a file (Sync)
GET/api/preview/:itemIdPreview a file (Sync)
DELETE/api/trash/:itemIdMove a file to the bin (Sync)
DELETE/api/site/:siteId/trashEmpty a site library's bin (Sync)

Legacy v1 (BRM-API)

The original Sites endpoints in BRM-API, before Sites v2. Use /sites/api/v2.

MethodPathSummary
GET/v1/app/sitesList sites the caller is a member of
POST/v1/app/sitesCreate a site. Creator is automatically added as a drive_site_members row with role owner
DELETE/v1/app/sites/:idSoft-delete a site. Requires owner role on the site (drive_site_members)
GET/v1/app/sites/:id/quotaGet a site's storage usage against the tenant's shared site-storage pool
GET/v1/app/sites/:id/itemsList items in a site folder
GET/v1/app/sites/:id/item/:itemId/pathGet the breadcrumb path to an item within a site
POST/v1/app/sites/:id/folderCreate a folder within a site
PATCH/v1/app/sites/:id/item/:itemIdRename an item within a site
POST/v1/app/sites/:id/item/:itemId/moveMove an item into a different folder within a site
DELETE/v1/app/sites/:id/item/:itemIdSoft-delete an item within a site
GET/v1/app/sites/:id/trashList trashed items within a site
POST/v1/app/sites/:id/trash/restore/:itemIdRestore an item out of trash within a site
GET/v1/app/sites/:id/membersList a site's members
POST/v1/app/sites/:id/membersAdd or update a site member
DELETE/v1/app/sites/:id/member/:targetUserIdRemove a member from a site
GET/v1/app/sites/:id/searchSearch a site's items by name

Web pages

These return pages for the browser rather than data.

  • GET /
  • GET /portal