Overview

Update general metadata and configuration details for a specific game.

Client

Require permission rules masterAdmin.setGameInformation.selfEnable. See PermissionRules

HTTP

POST /api/rJson/masterAdmin/client/setGameInformation

Request Headers
NameRequiredDescription
Auth-TokentrueA 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-KeytrueThe SecretKey in SecretInfo with role must is Player.
Game-IdOptional 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-Typetrueapplication/json
Request Body
CodeTypeRequiredDescription
gameIdstringtrueUnique identifier of the game to query or modify. (2 - 32 characters)
gameNamestringGameName parameter.
gameDescriptionstringGameDescription parameter.
gameIconUrlstringGameIconUrl parameter.
gameSettingsGameSettingsParamGameSettings parameter. See GameSettingsParam
matchmakingQueueSettingsMatchmakingQueueSettingsParam[]MatchmakingQueueSettings parameter. See MatchmakingQueueSettingsParam
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-10Secret token is invalid (removed, expired or does not contains).
MaxSizeRequestReject-9Request rejected due to exceeding maximum allowed size.
MaxRequestReject-8Request rejected because the number of requests has exceeded the allowed limit per user or IP or exceeds the total number of pending requests the server is waiting to process..
MaxCCUReject-7Connection rejected due to exceeding the allowed CCU (Concurrent Users).
OperationNotAuthorized-6You are not authorized to perform this operation. Possibly due to missing or invalid token, or insufficient permissions.
InvalidRequestParameters-5Request parameters are invalid or missing.
OperationInvalid-4The requested operation is invalid or not supported.
InternalServerError-3Internal server error. Could be due to an unhandled exception or logic failure.
OperationNotAllow-2This operation is not allowed in the current context.
OperationTimeout-1The operation timed out. No response received within the expected time.
UnknownError0An unknown error occurred. The cause could not be determined.
Ok1Success. The operation completed successfully and returned a valid result.
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
GameSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
gamePlayerSettingsGamePlayerSettingsParamGamePlayerSettings used in GameSettingsParam. See GamePlayerSettingsParam
characterPlayerSettingsCharacterPlayerSettingsParamCharacterPlayerSettings used in GameSettingsParam. See CharacterPlayerSettingsParam
groupSettingsGroupSettingsParamGroupSettings used in GameSettingsParam. See GroupSettingsParam
inventorySettingsInventorySettingsParamInventorySettings used in GameSettingsParam. See InventorySettingsParam
GamePlayerSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
playerCurrenciesSettingsCurrencySettingsParam[]PlayerCurrenciesSettings used in GamePlayerSettingsParam. See CurrencySettingsParam
playerStatisticsSettingsStatisticsSettingsParam[]PlayerStatisticsSettings used in GamePlayerSettingsParam. See StatisticsSettingsParam
playerDatasSettingsDataSettingsParam[]PlayerDatasSettings used in GamePlayerSettingsParam. See DataSettingsParam
customDatasSettingsDataSettingsParam[]CustomDatasSettings used in GamePlayerSettingsParam. See DataSettingsParam
tagsSettingsTagSettingsParam[]TagsSettings used in GamePlayerSettingsParam. See TagSettingsParam
playerCharacterCatalogSettingsCharacterCatalogSettingsParam[]PlayerCharacterCatalogSettings used in GamePlayerSettingsParam. See CharacterCatalogSettingsParam
playerGroupCatalogSettingsGroupCatalogSettingsParam[]PlayerGroupCatalogSettings used in GamePlayerSettingsParam. See GroupCatalogSettingsParam
playerItemCatalogSettingsItemCatalogSettingsParam[]PlayerItemCatalogSettings used in GamePlayerSettingsParam. See ItemCatalogSettingsParam
playerFriendCatalogSettingsFriendCatalogSettingsParam[]PlayerFriendCatalogSettings used in GamePlayerSettingsParam. See FriendCatalogSettingsParam
CurrencySettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
keystringtrueKey used to reference the value or setting. (2 - 32 characters)
initialValuenumbertrueValue assigned to the configuration or key.
descriptionstringtrueDescription used in CurrencySettingsParam.
indexbooleantrueIndex used in CurrencySettingsParam.
StatisticsSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
keystringtrueKey used to reference the value or setting. (2 - 32 characters)
statisticsAggregationMethodnumber inttrueStatisticsAggregationMethod used in StatisticsSettingsParam.
maximumValuenumberValue assigned to the configuration or key. (Default: null)
minimumValuenumberValue assigned to the configuration or key. (Default: null)
initialValuenumbertrueValue assigned to the configuration or key.
descriptionstringtrueDescription used in StatisticsSettingsParam.
indexbooleantrueIndex used in StatisticsSettingsParam.
DataSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
keystringtrueKey used to reference the value or setting. (2 - 32 characters)
descriptionstringtrueDescription used in DataSettingsParam.
permissionnumber inttruePermissions configuration or role-based access control settings.
TagSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
keystringtrueKey used to reference the value or setting. (2 - 32 characters)
descriptionstringtrueDescription used in TagSettingsParam.
indexbooleantrueIndex used in TagSettingsParam.
CharacterCatalogSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
catalogIdstringtrueCatalogId used in CharacterCatalogSettingsParam. (2 - 32 characters)
descriptionstringtrueDescription used in CharacterCatalogSettingsParam.
GroupCatalogSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
catalogIdstringtrueCatalogId used in GroupCatalogSettingsParam. (2 - 32 characters)
descriptionstringtrueDescription used in GroupCatalogSettingsParam.
forceAcceptMemberbooleantrueForceAcceptMember used in GroupCatalogSettingsParam.
ItemCatalogSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
catalogIdstringtrueCatalogId used in ItemCatalogSettingsParam. (2 - 32 characters)
itemTypenumber inttrueItemType used in ItemCatalogSettingsParam.
itemClassSettingsItemClassSettingsParam[]trueItemClassSettings used in ItemCatalogSettingsParam. See ItemClassSettingsParam
ItemClassSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
classIdstringtrueClassId used in ItemClassSettingsParam. (2 - 32 characters)
descriptionstringtrueDescription used in ItemClassSettingsParam.
FriendCatalogSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
catalogIdstringtrueCatalogId used in FriendCatalogSettingsParam. (2 - 32 characters)
descriptionstringtrueDescription used in FriendCatalogSettingsParam.
forceAcceptFriendbooleantrueForceAcceptFriend used in FriendCatalogSettingsParam.
CharacterPlayerSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
playerCurrenciesSettingsCurrencySettingsParam[]PlayerCurrenciesSettings used in CharacterPlayerSettingsParam. See CurrencySettingsParam
playerStatisticsSettingsStatisticsSettingsParam[]PlayerStatisticsSettings used in CharacterPlayerSettingsParam. See StatisticsSettingsParam
playerDatasSettingsDataSettingsParam[]PlayerDatasSettings used in CharacterPlayerSettingsParam. See DataSettingsParam
customDatasSettingsDataSettingsParam[]CustomDatasSettings used in CharacterPlayerSettingsParam. See DataSettingsParam
tagsSettingsTagSettingsParam[]TagsSettings used in CharacterPlayerSettingsParam. See TagSettingsParam
playerGroupCatalogSettingsGroupCatalogSettingsParam[]PlayerGroupCatalogSettings used in CharacterPlayerSettingsParam. See GroupCatalogSettingsParam
playerItemCatalogSettingsItemCatalogSettingsParam[]PlayerItemCatalogSettings used in CharacterPlayerSettingsParam. See ItemCatalogSettingsParam
playerFriendCatalogSettingsFriendCatalogSettingsParam[]PlayerFriendCatalogSettings used in CharacterPlayerSettingsParam. See FriendCatalogSettingsParam
GroupSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
groupCurrenciesSettingsCurrencySettingsParam[]GroupCurrenciesSettings used in GroupSettingsParam. See CurrencySettingsParam
groupStatisticsSettingsStatisticsSettingsParam[]GroupStatisticsSettings used in GroupSettingsParam. See StatisticsSettingsParam
groupDatasSettingsDataSettingsParam[]GroupDatasSettings used in GroupSettingsParam. See DataSettingsParam
customDatasSettingsDataSettingsParam[]CustomDatasSettings used in GroupSettingsParam. See DataSettingsParam
tagsSettingsTagSettingsParam[]TagsSettings used in GroupSettingsParam. See TagSettingsParam
groupItemCatalogSettingsItemCatalogSettingsParam[]GroupItemCatalogSettings used in GroupSettingsParam. See ItemCatalogSettingsParam
InventorySettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
itemStatisticsSettingsStatisticsSettingsParam[]ItemStatisticsSettings used in InventorySettingsParam. See StatisticsSettingsParam
itemDatasSettingsDataSettingsParam[]ItemDatasSettings used in InventorySettingsParam. See DataSettingsParam
customDatasSettingsDataSettingsParam[]CustomDatasSettings used in InventorySettingsParam. See DataSettingsParam
tagsSettingsTagSettingsParam[]TagsSettings used in InventorySettingsParam. See TagSettingsParam
MatchmakingQueueSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
queueNamestringtrueQueueName used in MatchmakingQueueSettingsParam. (6 - 32 characters)
matchSizeSizeParamtrueMatchSize used in MatchmakingQueueSettingsParam. See SizeParam
ticketSizeSizeParamtrueTicketSize used in MatchmakingQueueSettingsParam. See SizeParam
serverAllocationServerAllocationParamtrueServerAllocation used in MatchmakingQueueSettingsParam. See ServerAllocationParam
teamsTeamParam[]Teams used in MatchmakingQueueSettingsParam. See TeamParam
rulesRuleParam[]Rules used in MatchmakingQueueSettingsParam. See RuleParam
removebooleanRemove used in MatchmakingQueueSettingsParam.
SizeParam

Parameters used to configure or control a related operation.

CodeTypeRequiredDescription
minnumber inttrueMin used in SizeParam. (from 1)
maxnumber inttrueMax used in SizeParam. (from 1)
ServerAllocationParam

Parameters used to configure or control a related operation.

CodeTypeRequiredDescription
enablebooleantrueEnable used in ServerAllocationParam.
TeamParam

Parameters used to configure or control a related operation.

CodeTypeRequiredDescription
teamIdstringtrueTeamId used in TeamParam. (1 - 32 characters)
teamSizeSizeParamtrueTeamSize used in TeamParam. See SizeParam
RuleParam

Parameters used to configure or control a related operation.

CodeTypeRequiredDescription
namestringtrueName used in RuleParam. (1 - 32 characters)
typenumber inttrueType used in RuleParam. (from 1 to 8)
attributeSourcenumberAttributeSource used in RuleParam. (from 1 to 2)
attributePathstringAttributePath used in RuleParam. (1 - 32 characters)
defaultValueanyValue assigned to the configuration or key.
compairTypenumber intCompairType used in RuleParam. (from 1 to 2)
allowedDifferencenumberAllowedDifference used in RuleParam. (from 0)
minnumberMin used in RuleParam.
maxnumberMax used in RuleParam.
advancedSettingsAdvancedSettingsParamAdvancedSettings used in RuleParam. See AdvancedSettingsParam
AdvancedSettingsParam

Configuration structure defining backend behavior or system-level preferences.

CodeTypeRequiredDescription
secondsUntilOptionalnumbertrueSecondsUntilOptional used in AdvancedSettingsParam. (from 1)
expansionTypenumber intExpansionType used in AdvancedSettingsParam. (from 1 to 3)
linearExpansionsLinearExpansionsParamLinearExpansions used in AdvancedSettingsParam. See LinearExpansionsParam
customExpansionsCustomExpansionsParamCustomExpansions used in AdvancedSettingsParam. See CustomExpansionsParam
LinearExpansionsParam

Parameters used to configure or control a related operation.

CodeTypeRequiredDescription
secondsBetweenExpansionsnumbertrueSecondsBetweenExpansions used in LinearExpansionsParam. (from 1)
deltanumberDelta used in LinearExpansionsParam.
limitnumberLimit used in LinearExpansionsParam.
CustomExpansionsParam

Parameters used to configure or control a related operation.

CodeTypeRequiredDescription
secondsBetweenExpansionsnumbertrueSecondsBetweenExpansions used in CustomExpansionsParam. (from 1)
overrideValueany[]Value assigned to the configuration or key.
overrideMinany[]OverrideMin used in CustomExpansionsParam.
overrideMaxany[]OverrideMax used in CustomExpansionsParam.
ErrorCode
NameCode
Ok1
GameNotFound22
InvalidMember
CodeTypeDescription
codestringThe parameterCode invalid.
invalidMemberTypeInvalidMemberTypeThe invalid member type of this parameterCode. See InvalidMemberType
InvalidMemberType
NameCodeDescription
UnknownError1An unspecified or unexpected error has occurred.
DataRequired2A required data field is missing or not provided.
TypeInvalid3The data type provided does not match the expected type.
StringNull4A string value is null or has not been assigned.
StringMinLength5The string value is shorter than the minimum required length.
StringMaxLength6The string value exceeds the maximum allowed length.
NumberMinValue7The numeric value is less than the minimum allowed value.
NumberMaxValue8The numeric value exceeds the maximum allowed value.
NumberMustInt9The numeric value must be an integer but is not.
GNHashtableNull10The hashtable object is null or not provided.
GNHashtableMinLength11The hashtable contains fewer entries than the minimum required.
GNHashtableMaxLength12The hashtable contains more entries than the maximum allowed.
GNArrayNull13The array object is null or not provided.
GNArrayMinLength14The array contains fewer elements than the minimum required.
GNArrayMaxLength15The array contains more elements than the maximum allowed.