GroupMembership

Thuộc Tính

pathstring
createTimestring
Chỉ Xuất
updateTimestring
Chỉ Xuất
userstring
Bất Biến
rolestring
URL Cơ Sở

https://apis.roblox.com/cloud
Tài nguyên GroupMembership

{
"path": "groups/123/memberships/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/21557",
"role": "groups/7/roles/52"
}

GroupMembership

List Group Memberships
Bản Beta

GET /cloud/v2/groups/{group}/memberships
Yêu CầuTham Số Đường Dẫn
groupstring
Bắt Buộc
Tham Số Truy Vấn
maxPageSizenumber
pageTokenstring
filterstring
Phản Hồi
nextPageTokenstring
GET /cloud/v2/groups/{group}/memberships

curl -L -X GET 'https://apis.roblox.com/cloud/v2/groups/{group}/memberships?maxPageSize=10&pageToken={string}&filter={string}' \
-H 'x-api-key: {your-api-key}'
Phản Hồi

{
"groupMemberships": [
{
"path": "groups/123/memberships/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/21557",
"role": "groups/7/roles/52"
}
],
"nextPageToken": "string"
}

GroupMembership

Update Group Membership
Bản Beta

PATCH /cloud/v2/groups/{group}/memberships/{membership}
Phạm Vi
group:write
Yêu CầuTham Số Đường Dẫn
groupstring
Bắt Buộc
membershipstring
Bắt Buộc
Yêu Cầu Cơ ThểGroupMembership
Phản HồiGroupMembership
PATCH /cloud/v2/groups/{group}/memberships/{membership}

curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/groups/{group}/memberships/{membership}' \
-H 'x-api-key: {your-api-key}' \
--data '{ \
"user": "users/21557", \
"role": "groups/7/roles/52" \
}'
Phản Hồi

{
"path": "groups/123/memberships/123",
"createTime": "2023-07-05T12:34:56Z",
"updateTime": "2023-07-05T12:34:56Z",
"user": "users/21557",
"role": "groups/7/roles/52"
}