Overview

Search for groups whose display names match a given pattern.

Client

Require permission rules group.getGroupsWithDisplayName.selfEnable. See PermissionRules

HTTP

POST /api/rJson/group/client/getGroupsWithDisplayName

Request Headers
NameTypeRequiredDescription
Auth-TokenstringtrueA token used to authenticate the user. It is issued after successful login from the client type authenticate (e.g., loginByAccount, loginWithCustomId, etc.) or when an admin logs in via the GearN Dashboard. This token identifies the request sender and determines their access level.
Secret-KeystringtrueThe SecretKey in SecretInfo with role must is Player.
Game-IdstringOptional if the gameId in the SecretInfo use in headers Secret-Key has assign a valid value, if not, let unique identifier of the game this request is targeting.
Content-Typestringtrueapplication/json
Request Body
CodeTypeRequiredDescription
keywordstringtrueKeyword parameter. (2 - 32 characters)
infoRequestParamInfoRequestParamtrueInfoRequestParam parameter. See InfoRequestParam
skipnumber intSkip parameter. (from 0) (Default: 0)
limitnumber intLimit parameter. (from 1 to 100) (Default: 10)
Server

Require permission rules group.getGroupsWithDisplayName.serverSelfEnable. See PermissionRules

HTTP

POST /api/rJson/group/server/getGroupsWithDisplayName

Request Headers
NameTypeRequiredDescription
Secret-KeystringtrueThe SecretKey in SecretInfo with role must is Admin.
Game-IdstringOptional if the gameId in the SecretInfo use in headers Secret-Key has assign a valid value, if not, let unique identifier of the game this request is targeting.
Content-Typestringtrueapplication/json
Request Body
CodeTypeRequiredDescription
keywordstringtrueKeyword parameter. (2 - 32 characters)
infoRequestParamInfoRequestParamtrueInfoRequestParam parameter. See InfoRequestParam
skipnumber intSkip parameter. (from 0) (Default: 0)
limitnumber intLimit parameter. (from 1 to 100) (Default: 10)
Admin

Require permission rules group.getGroupsWithDisplayName.adminSelfEnable. See PermissionRules

HTTP

POST /api/rJson/group/admin/getGroupsWithDisplayName

Request Headers
NameTypeRequiredDescription
Secret-KeystringtrueThe SecretKey in SecretInfo with role must is Admin.
Game-IdstringOptional if the gameId in the SecretInfo use in headers Secret-Key has assign a valid value, if not, let unique identifier of the game this request is targeting.
Content-Typestringtrueapplication/json
Request Body
CodeTypeRequiredDescription
keywordstringtrueKeyword parameter. (2 - 32 characters)
infoRequestParamInfoRequestParamtrueInfoRequestParam parameter. See InfoRequestParam
skipnumber intSkip parameter. (from 0) (Default: 0)
limitnumber intLimit parameter. (from 1 to 100) (Default: 10)
Response Body

200 Ok

CodeTypeRequiredDescription
returnCodeReturnCodetrueAdditional metadata that can be attached to any request. Especially useful when working with advanced features such as EventCallbackScript. See ReturnCode
debugMessagestringA developer-oriented message that provides additional context useful for debugging and internal logging. This field is not intended for end-users and may include stack traces, validation failures, or internal error diagnostics.
invalidRequestParametersInvalidMember[]Just had data when the returnCode is InvalidRequestParameters.A list of members that failed validation or could not be processed during the request. Each entry typically includes identifying information and an error reason. This is useful for partial success scenarios where some members are accepted and others are rejected. See InvalidMember
parametersResponseDataJust had data when the returnCode is Ok. A dynamic set of key-value pairs included in the response to provide additional context or metadata. These parameters may vary depending on the operation and typically contain optional fields such as timestamps, identifiers, or computed values relevant to the result. See ResponseData
ReturnCode
NameCodeDescription
SecretInvalid-10The selected secret key is missing, wrong, or does not match the current route/game context.
MaxSizeRequestReject-9The serialized request payload exceeded the maximum size accepted by the backend.
MaxRequestReject-8The backend rejected the request because the current caller exceeded a request-rate limit.
MaxCCUReject-7The backend rejected the request because the current concurrent-user/session limit was exceeded.
OperationNotAuthorized-6The target operation exists, but the caller is not authorized for the selected role or target resource.
InvalidRequestParameters-5The request shape or one or more request-member values are invalid.
When available, inspect `invalidMembers` for field-level details.
OperationInvalid-4The requested operation code is unknown or is not valid for the selected request type/role.
InternalServerError-3The backend hit an unhandled internal failure before producing a valid business response.
OperationNotAllow-2The operation is known and the secret key is valid, but the permission rules attached
to the current secret key do not allow this operation in the current target context.
This usually maps to missing `selfEnable`, `otherSelfEnable`, `serverSelfEnable`,
or `adminSelfEnable` permission for the resolved request.
OperationTimeout-1The request timed out before a response was received.
This code may be synthesized by the SDK timeout layer as well as returned by the backend.
UnknownError0The request failed, but no more specific low-level return code was mapped.
Ok1The request completed successfully at protocol level and produced a response payload.
Callers must still validate the business `errorCode` in that payload.
ResponseData
CodeTypeRequiredDescription
errorCodeErrorCodeA string that represents the status of the operation. It indicates whether the request was successful or failed due to a specific error condition. See ErrorCode
resultsGroupWithGroupIdResponseData[]trueResults field in GroupsWithGroupIdResponseData. See GroupWithGroupIdResponseData
InfoRequestParam

Flags to specify which optional fields should be included in the group response.

CodeTypeRequiredDescription
catalogIdbooleanCatalogId field in InfoRequestParam. (Default: false)
membersbooleanMembers field in InfoRequestParam. (Default: false)
removeStatusbooleanRemoveStatus field in InfoRequestParam. (Default: false)
segmentsbooleanInclude group segments in the response. (Default: false)
customDatasbooleanInclude custom key-value data in the response. (Default: false)
displayNamebooleanInclude the group’s display name in the response. (Default: false)
avatarbooleanInclude the group’s avatar reference or URL. (Default: false)
tsCreatebooleanInclude the timestamp of group creation. (Default: false)
tagsbooleanInclude tags assigned to the group. (Default: false)
groupCurrenciesbooleanInclude current virtual currency balances of the group. (Default: false)
groupStatisticsbooleanInclude statistics stored on the group profile. (Default: false)
groupDatasbooleanGroupDatas field in InfoRequestParam. (Default: false)
groupInventoriesbooleanGroupInventories field in InfoRequestParam. (Default: false)
groupDataKeysstring[]GroupDataKeys field in InfoRequestParam.
groupCurrencyKeysstring[]GroupCurrencyKeys field in InfoRequestParam.
groupStatisticsKeysstring[]GroupStatisticsKeys field in InfoRequestParam.
customDataKeysstring[]CustomDataKeys field in InfoRequestParam.
tagKeysstring[]TagKeys field in InfoRequestParam.
itemCatalogIdsstring[]ItemCatalogIds field in InfoRequestParam.
GroupWithGroupIdResponseData

Group profile data resolved using a GroupId query.

CodeTypeRequiredDescription
groupIdstringtrueUnique identifier for the group.
infoResponseParametersInfoResponseParameterstrueInfoResponseParameters field in GroupWithGroupIdResponseData. See InfoResponseParameters
InfoResponseParameters

Contains optional metadata fields returned in group data responses.

CodeTypeRequiredDescription
catalogIdstringCatalogId field in InfoResponseParameters.
membersGenericModels.MemberItem[]Members field in InfoResponseParameters. See GenericModels.MemberItem
removeStatusGenericModels.RemoveStatusItemRemoveStatus field in InfoResponseParameters. See GenericModels.RemoveStatusItem
segmentsstring[]Include group segments in the response.
customDatasGenericModels.DataItem[]Include custom key-value data in the response. See GenericModels.DataItem
displayNamestringInclude the group’s display name in the response.
avatarGenericModels.AvatarItemInclude the group’s avatar reference or URL. See GenericModels.AvatarItem
tsCreatenumberInclude the timestamp of group creation.
tagsGenericModels.TagItem[]Include tags assigned to the group. See GenericModels.TagItem
groupDatasGenericModels.DataItem[]GroupDatas field in InfoResponseParameters. See GenericModels.DataItem
groupCurrenciesGenericModels.CurrencyItem[]Include current virtual currency balances of the group. See GenericModels.CurrencyItem
groupStatisticsGenericModels.StatisticsItem[]Include statistics stored on the group profile. See GenericModels.StatisticsItem
groupInventoriesGenericModels.InventoryItem[]GroupInventories field in InfoResponseParameters. See GenericModels.InventoryItem
Generic.MemberItem

Represents a lightweight relation item pointing to a group member.

CodeTypeRequiredDescription
memberIdstringtrueMember identifier of the related group member.
statusnumbertrueMember relation status. Map this value with the public member-status enum when available.
Generic.RemoveStatusItem

Represents soft-remove metadata for an entity.

CodeTypeRequiredDescription
tsRemovenumbertrueRemoval timestamp when the entity was soft-removed.
reasonstringRemoval reason when the backend provides one.
Generic.DataItem

Represents an arbitrary key-value data entry.

CodeTypeRequiredDescription
keystringtrueData entry key used to identify the payload.
valueanytrueRaw value returned by the backend. This may be a primitive, `GNHashtable`, `GNArray`, or plain object-like data.
Generic.AvatarItem

Represents a generic avatar payload.

CodeTypeRequiredDescription
typenumbertrueBackend-defined avatar type identifier. The public SDK currently does not export a dedicated avatar enum.
valuestringtrueAvatar value, typically a URL, file id, or provider-specific string.
Generic.TagItem

Represents a key-value tag entry.

CodeTypeRequiredDescription
keystringtrueTag key used to identify the metadata entry.
valuestringtrueTag value associated with `key`.
Generic.CurrencyItem

Represents one currency entry.

CodeTypeRequiredDescription
keystringtrueCurrency key such as the configured currency code or logical name.
valuenumbertrueNumeric balance of the currency identified by `key`.
Generic.StatisticsItem

Represents one statistics entry.

CodeTypeRequiredDescription
keystringtrueStatistic key such as the configured metric name.
valuenumbertrueNumeric value of the statistic identified by `key`.
Generic.InventoryItem

Represents a lightweight relation item pointing to an inventory item.

CodeTypeRequiredDescription
itemIdstringtrueInventory item identifier of the related item entity.
catalogIdstringtrueCatalog identifier associated with the related inventory item.
classIdstringtrueClass identifier associated with the related inventory item.
ErrorCode
NameCodeDescription
Ok1The business operation completed successfully.
InvalidMember
CodeTypeDescription
codestringThe parameterCode invalid.
invalidMemberTypeInvalidMemberTypeThe invalid member type of this parameterCode. See InvalidMemberType
InvalidMemberType
NameCodeDescription
UnknownError1The backend rejected the member but did not map it to a more specific validation category.
DataRequired2The member is required but missing.
TypeInvalid3The member type does not match the expected runtime type.
StringNull4A required string member is null or empty when null is not allowed.
StringMinLength5A string member is shorter than the configured minimum length.
StringMaxLength6A string member is longer than the configured maximum length.
NumberMinValue7A numeric member is lower than the configured minimum value.
NumberMaxValue8A numeric member is higher than the configured maximum value.
NumberMustInt9A numeric member must be an integer but received a non-integer value.
GNHashtableNull10A required `GNHashtable` member is null.
GNHashtableMinLength11A `GNHashtable` member contains fewer entries than allowed.
GNHashtableMaxLength12A `GNHashtable` member contains more entries than allowed.
GNArrayNull13A required `GNArray` member is null.
GNArrayMinLength14A `GNArray` member contains fewer items than allowed.
GNArrayMaxLength15A `GNArray` member contains more items than allowed.