Sharing Environments
Invite User to Environment
Given a user email, gives another user access to a specific environment. Returns the information for the environment.
POST api/environment/invitesPermissions
User must be logged in. User must be an admin of the environment.
Sample Request Body
{
"environmentId": 1,
"userEmail": "user@email.com"
}Success Response
200 OK{
"id": 2,
"environmentId": 1,
"userId": 1,
"isAdmin": false,
"inviteCode": "XXXXXXXX",
"accepted": false,
"createdAt": 1526761026983
}Error Response
Accept Invite to Environment
User accepts the invitation to an environment so that they have access to it.
Permissions
User must be logged in.
Sample Request Body
Success Response
Error Response
Last updated