Page tree
Skip to end of metadata
Go to start of metadata

You can invite a user to view a content item with the inviteUsersToContentItem method.

Parameters

ParameterTypeDescription
credentials (required)credentialsRead the description of the Credentials object.
contentItemId (required)stringID of the content item that you want to invite users to.
users (optional)string[]An array of user IDs, who will be invited to view the content item.
groups (optional)string[]An array of group IDs, which members will be invited to view the content item.
emails (optional)string[]An array of e-mail addresses to send invitations to (for public content only).
invitationMessage(optional)stringInvitation text added to the e-mail.
autoAddPermissions(optional, default: true)boolIf true and a user/group has no permissions to view a given content item, these permissions will be added automatically.

 

Return Value

After the request has been completed, the system returns an object with the following properties:

ParameterTypeDescription
successboolTrue, if the invitations has been sent successfully.
usersWithoutPermissionstring[]An array of user IDs, who have no permissions to view a given content item.
usersWithoutPermissionstring[]An array of group IDs, which members have no permissions to view a given content item.

 

Sample Call

Sample Response

  •