PATCH

Update Portfolio Settings


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates a site's portfolio settings.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Portfolio
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/portfolio/v1/settings

Body Params
portfolioSettingsPortfolioSettingsRequired

The portfolio settings to update.

Response Object
updatedPortfolioSettingsUpdatedPortfolioSettings

Updated portfolio settings.

Update Portfolio Settings
Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/portfolio/v1/settings' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>' \ -d '{ "portfolioSettings": { "revision": 2, "projectItemSettings": { "addItemDirection": "GALLERY_START", "defaultItemName": "EMPTY" }, "mediaSettings": { "folderId": "42460836-02b9-4640-8d47-2d9fe9aba7e4" } } }'
Response
JSON
{ "updatedPortfolioSettings": { "revision": 2, "projectItemSettings": { "addItemDirection": "GALLERY_START", "defaultItemName": "EMPTY" }, "mediaSettings": { "folderId": "42460836-02b9-4640-8d47-2d9fe9aba7e4" } "createdDate": "2024-07-31T12:00:00Z", "updatedDate": "2024-07-31T12:05:00Z" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?