Create Analytics Folder Share
Share a folder with one target: every page in it, and in its subfolders, is shared with them too. A member gets an email about the new share. Folders are shared inside your organization only.
Path
The folder id, from List Analytics Folders.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
user, organization, role, team or guest (pages only).
Who the share is for. Folders are shared inside the organization only.
userOne member of the organization.organizationEveryone in the organization.roleEvery member whose role is this one, now and later.teamEvery member of this team, now and later.
view or edit.
What they can do on every page in the folder.
viewCan open it.editCan open and edit it, as their role allows.
For user: the member, from List Members.
For user: the member's email instead of userId. For guest: the address to invite.
For user: the member's email, in place of userId.
For role: the role, from List Roles.
For team: the team, from List Teams.
Response fields
idstringThe share's id.
targetTypestringWho it is for.
userOne member of the organization.organizationEveryone in the organization.roleEvery member whose role is this one, now and later.teamEvery member of this team, now and later.guestA person outside the organization, by email. View only, pages only. They get an email with a link that works for 30 days and asks for a code sent to that address.
permissionstringWhat they can do.
viewCan open it.editCan open and edit it, as their role allows.
userIdstringFor user: the member, from List Members. Null otherwise.
namestringFor user: the member's name. Null otherwise.
emailstringFor user: the member's email. For guest: the guest's address. Null otherwise.
roleIdstringFor role: the role, from List Roles. Null otherwise.
roleNamestringFor role: the role's name. Null otherwise.
teamIdstringFor team: the team, from List Teams. Null otherwise.
teamNamestringFor team: the team's name. Null otherwise.
viaFolderIdstringOn a page: the folder this share comes from (from List Analytics Folders), when the page inherits it. Change it on that folder. Null for a share on the page itself.
viaFolderNamestringThe name of the folder it comes from. Null when it is the page's own.
createdOndateWhen it was shared.
updatedOndateWhen it last changed.