User Group Invitations
Operations Summary
Core CRUD
List group invitations
Retrieve a list of group invitations. Unauthenticated users can only see public invitations.
Retrieve group invitation
Retrieve details of a specific group invitation. Unauthenticated users can only see public invitations.
Create group invitation
Create a new group invitation, which acts as a template for users to request permissions.
| http \
POST \
https://api.example.com/api/user-group-invitations/ \
Authorization:"Token YOUR_API_TOKEN" \
role="a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
scope="string-value"
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.group_invitation_request import GroupInvitationRequest # (1)
from waldur_api_client.api.user_group_invitations import user_group_invitations_create # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = GroupInvitationRequest(
role="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
scope="string-value"
)
response = user_group_invitations_create.sync(
client=client,
body=body_data
)
print(response)
|
- Model Source:
GroupInvitationRequest
- API Source:
user_group_invitations_create
1
2
3
4
5
6
7
8
9
10
11
12
13
14 | import { userGroupInvitationsCreate } from 'waldur-js-client';
try {
const response = await userGroupInvitationsCreate({
auth: "Token YOUR_API_TOKEN",
body: {
"role": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"scope": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Field |
Type |
Required |
Description |
role |
string (uuid) |
✓ |
|
scope |
string |
✓ |
Constraints: write-only |
is_public |
boolean |
|
Allow non-authenticated users to see and accept this invitation. Only staff can create public invitations. |
auto_create_project |
boolean |
|
Create project and grant project permissions instead of customer permissions |
project_name_template |
string |
|
Template for project name. Supports {username}, {email}, {full_name} variables |
project_role |
string (uuid) |
|
|
user_affiliations |
any |
|
|
user_email_patterns |
any |
|
|
201 -
| Field |
Type |
Description |
scope_uuid |
string (uuid) |
|
scope_name |
string |
|
scope_description |
string |
Get the description field from the scope if it exists. Returns empty string if scope doesn't have a description field. |
scope_type |
string |
|
customer_uuid |
string (uuid) |
|
customer_name |
string |
|
role_name |
string |
|
role_description |
string |
|
created_by_full_name |
string |
|
created_by_username |
string |
|
created_by_image |
string (uri) |
|
url |
string (uri) |
|
uuid |
string (uuid) |
|
role |
string (uuid) |
|
created |
string (date-time) |
|
expires |
string (date-time) |
|
is_active |
boolean |
|
is_public |
boolean |
Allow non-authenticated users to see and accept this invitation. Only staff can create public invitations. |
auto_create_project |
boolean |
Create project and grant project permissions instead of customer permissions |
project_name_template |
string |
Template for project name. Supports {username}, {email}, {full_name} variables |
project_role |
string (uuid) |
|
user_affiliations |
any |
|
user_email_patterns |
any |
|
scope_image |
string (uri) |
|
Other Actions
List projects for a customer-scoped group invitation
For a group invitation scoped to a customer, this endpoint lists all projects within that customer.
Cancel a group invitation
Cancels an active group invitation, preventing new permission requests from being created.
Submit a permission request
Creates a permission request based on a group invitation for the currently authenticated user.