GroupMembership

属性

pathstring
createTimestring
出力のみ
updateTimestring
出力のみ
userstring
不変
rolestring
ベース URL

https://apis.roblox.com/cloud
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
ベータ版

GET /cloud/v2/groups/{group}/memberships
リクエストパスのパラメータ
groupstring
必須
クエリのパラメータ
maxPageSizenumber
pageTokenstring
filterstring
レスポンス
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}'
レスポンス

{
"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
ベータ版

PATCH /cloud/v2/groups/{group}/memberships/{membership}
範囲
group:write
リクエストパスのパラメータ
groupstring
必須
membershipstring
必須
リクエスト本文GroupMembership
レスポンスGroupMembership
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" \
}'
レスポンス

{
"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"
}