GroupMembership

Attribute

pathstring
createTimestring
Nur Ausgabe
updateTimestring
Nur Ausgabe
userstring
Unveränderlich
rolestring
Basis-URL

https://apis.roblox.com
Die GroupMembership-Ressource

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

GET /cloud/v2/groups/{group_id}/memberships
AnfragePfadparameter
group_idstring
Erforderlich
Anfrageparameter
maxPageSizenumber
pageTokenstring
filterstring
Rückmeldung
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}'
Rückmeldung

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

PATCH /cloud/v2/groups/{group_id}/memberships/{membership_id}
Bereiche
group:write
AnfragePfadparameter
group_idstring
Erforderlich
membership_idstring
Erforderlich
Text anfordernGroupMembership
RückmeldungGroupMembership
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"
}'
Rückmeldung

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