GroupMembership

특성

pathstring
createTimestring
출력 전용
updateTimestring
출력 전용
userstring
불변
rolestring
기본 URL

https://apis.roblox.com
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/99513316"
}

GroupMembership

List Group Memberships
베타

GET /cloud/v2/groups/{group_id}/memberships
요청경로 매개 변수
group_idstring
필수
쿼리 매개 변수
maxPageSizenumber
pageTokenstring
filterstring
응답
nextPageTokenstring
GET /cloud/v2/groups/{group_id}/memberships

curl -L -X GET 'https://apis.roblox.com/cloud/v2/groups/{group_id}/memberships?maxPageSize=10&pageToken={string}&filter={string}' \
-H 'x-api-key: {your-api-key}'
응답

{
"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/99513316"
}
],
"nextPageToken": "string"
}

GroupMembership

Update Group Membership
베타

PATCH /cloud/v2/groups/{group_id}/memberships/{membership_id}
범위
group:write
요청경로 매개 변수
group_idstring
필수
membership_idstring
필수
요청 본문GroupMembership
PATCH /cloud/v2/groups/{group_id}/memberships/{membership_id}

curl -L -X PATCH 'https://apis.roblox.com/cloud/v2/groups/{group_id}/memberships/{membership_id}' \
-H 'x-api-key: {your-api-key}' \
-H 'Content-Type: application/json' \
--data '{
"role": "groups/7/roles/99513316"
}'
응답

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