getFolderBySite( )


Returns data about the folder that contains the specified site.

Note: If the specified site is root level, the returned folder object will be empty. Important: You can only call this method when authenticated as a Wix user or by using an account level API key.

Method Declaration
Copy
Method Parameters
siteIdstringRequired

Site ID.

Returns
Return Type:Promise<GetFolderBySiteResponse>
Errors

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

Did this help?