Invitations
Last updated
Was this helpful?
Invitations are placeholders for rolemap objects. You cannot create a rolemap directly because, sometimes, user approval is required. Invitations are sent to users via email and, once accepted, create a rolemap on the object they were invited to with the requested role.
POST https://ws-api.onehub.com/:item/:id/invitations
Create an invitation to the :item (Workspace, folder, or file) specified via :id.
:item
string
The type of item. Can be workspaces, folders, or files.
:id
integer
The unique identifier of the item you would like to create an invitation to.
invitation
object
This is the top level object that contains the emails and role_name keys described below.
emails
string
The email addresses you would like to invite to the item. Multiple email addresses should be comma delimited in a single string.
role_name
string
The effective role granted to the user(s).
{
"share": {
"emails": "",
"email_errors": [],
"join_errors": [],
"invited_emails": [
{ "first-user@example.com": 5967 },
{ "second-user@example.com": 5977 }
],
"errors": {}
}
}//If a role_name is not provided, or is invalid, the default role will be used.
Last updated
Was this helpful?
Was this helpful?
{
"invitation": {
"emails": "first-user@example.com, second-user@example.com",
"role_name": "Creator"
}
}