Skip to navigation

Update Library Settings

Unshare this site’s library, share an unshared library again, or turn automatic installs on or off. To share a new version, use Share Library.

This endpoint is synchronous. It returns the updated library, as Get Site Library does.

shared requires permission to manage libraries on the site. autoInstall requires permission to manage libraries in the workspace.

Required scope | libraries:write

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site

Request

Pass at least one field.
sharedbooleanOptional

false unshares the library. Sites that installed it keep it. true shares an unshared library again, without a new version.

autoInstallbooleanOptional
Whether new sites in the workspace install the library automatically.

Response

Request was successful
idstringformat: "objectid"

Library version ID. List Libraries returns the latest version, and List Installed Libraries returns the installed version. Use it as library_id.

profileIdstringformat: "objectid"
ID of the library across all its versions. Use it to match a library between lists.
typeenum
Kind of library. Code libraries are shared from the Webflow CLI.
Allowed values:
displayNamestring
Library name. A library takes the name of its source site.
versionstring
datePublishedstringformat: "date-time"
componentsCountinteger
variablesCountinteger
assetsCountinteger
codeComponentsCountinteger
tagStylesCountinteger
fontsCountinteger
statusenum

Whether the source site shares the library (ACTIVE) or unshared it (ARCHIVED).

Allowed values:
autoInstallboolean
Whether new sites in the workspace install the library automatically.
excludedAssetFolderIdslist of strings

Asset folders the library leaves out. NO_FOLDER means assets outside any folder.

descriptionstringOptional
Release notes of this version.
sourceFilesCountintegerOptional
Not returned for code libraries.
skillsCountintegerOptional
Not returned for code libraries.
rulesCountintegerOptional
Not returned for code libraries.

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error