- Index
- Consts
- Get Invite Link
- Renew Invite Link
- Disable Invite Link
- Enable Invite Link
- Invite by Email
- Join Team by Invite Link (Already logged in)
- Change invite by email user role
- Get Share App Link
- Renew Share App Link
- Share App by Email
- CATEGORY_INVITE_BY_LINK = 1
- CATEGORY_INVITE_BY_EMAIL = 2
- INVITE_RECORD_STATUS_OK = 1
- INVITE_RECORD_STATUS_USED = 2
- INVITE_RECORD_STATUS_SUSPEND = 3
- USER_ROLE_ANONYMOUS = -1
- USER_ROLE_OWNER = 1
- USER_ROLE_ADMIN = 2
- USER_ROLE_EDITOR = 3
- USER_ROLE_VIEWER = 4
- SHARE_LINK_REDIRECT_PAGE_EDIT = "edit"
- SHARE_LINK_REDIRECT_PAGE_RELEASE = "release"
For generate invite link.
GET /api/v1/teams/:teamID/inviteLink/userRole/:userRole
- userRole
- see User Role
none{
"inviteLink": "https://cloud-api.illacloud.com/api/v1/join/xxxxxxxxxxxxxxxxxxxxxxxxxx",
"teamID": 12,
"userRole": 2
}Re-generate the invitation link Note that only the team owner and admin have this privilege, other users will get an illegal request.
GET /api/v1/teams/:teamID/newInviteLink/userRole/:userRole
none{
"inviteLink": "https://cloud-api.illacloud.com/api/v1/join/xxxxxxxxxxxxxxxxxxxxxxxxxx",
"teamID": 12,
"userRole": 2
}For disable the invite link.
PUT /api/v1/teams/:teamID/disableAllInviteLink
none// HTTP 200
// or
// HTTP 400For enable the invite link.
PUT /api/v1/teams/:teamID/enableAllInviteLink
none// HTTP 200
// or
// HTTP 400Send invitation links based on emails.
POST /api/v1/teams/:teamID/inviteByEmail
{
"email": "user1@email.com",
"userRole": 2
{
"email": "user1@email.com",
"teamID": 12,
"userRole": 2,
"emailStatus": true
}Join the team by following the invitation link. This interface is only available if you are already logged in.
PUT /api/v1/join/:inviteLinkHash
none// HTTP 200Modify roles for users based on email invitations.
- After the invitation email has been sent, a user has been created in the team_membrs table of the database, and the user's role can be changed using the "Change Team Members Role" [# Change TeamMembers Role](. /team_members/README.md) API.
Get the Share APP link, which has an appID more than the Invite to join link to facilitate the jump.
GET /api/v1/teams/:teamID/shareAppLink/userRole/:userRole/apps/:appID/redirectPage/:redirectPage
- userRole
- see User Role
- appID
- APP ID in string.
- redirectPage
- see Redirect Page
none{
"teamID": "ILAfx4p1C7cR",
"appID": "ILAfx4p1C7ec",
"userRole": 3,
"inviteLink": "https://cloud.illacloud.com/?inviteToken=ZjU2NzBiNjUtOGZjZC00Y2UzLTliYmMtNmIyYmRlNjA2Y2Vi&appID=ILAfx4p1C7ec&redirectPage=edit"
}Re-generate the invitation link. Note that only the team owner and admin have this privilege, other users will get an illegal request.
GET /api/v1/teams/:teamID/newShareAppLink/userRole/:userRole/apps/:appID/redirectPage/:redirectPage
- userRole
- see User Role
- appID
- APP ID in string.
- redirectPage
- see Redirect Page
none{
"teamID": "ILAfx4p1C7cR",
"appID": "ILAfx4p1C7ec",
"userRole": 3,
"inviteLink": "https://cloud.illacloud.com/?inviteToken=ZjNmYjBiMzQtYjBiMi00ZTM5LThkZTgtODFlYzZhNjViOTA5&appID=ILAfx4p1C7ec&redirectPage=release"
}Share App by Email.
POST /api/v1/teams/:teamID/shareAppByEmail
{
"email": "user1@email.com",
"userRole": 2,
"appID": 81312,
"redirectPage": "release",
}
{
"email": "user1@email.com",
"teamID": 12,
"userRole": 2,
"appID": 81312,
"redirectPage": "release",
"emailStatus": true
}The link in the email has an email and appID, so it's easy to sign up and jump afterward.
https://cloud.illacloud.com/?inviteToken=YWU0MmFjMjctODc2NC00OWEyLWExZjUtNDRhNzBkN2I0OWM1&email=youremail@outlook.com&appID=xxxxxxxx