logo
In-app Chat
ZIMAudio
On this page

ModifyGroupLimit

GET

https://zim-api.zego.im/

By calling this API, you can modify the following specification limits of a group:

  • Join mode;
  • Invite mode;
  • Be invited mode;
  • Group member count limit (not exceeding the package limit, for details please refer to Pricing - Version Differences).

After successful modification, group members can receive notifications of group specification limit modifications through the following ZIM SDK callback interfaces:

iOSAndroidmacOSWindows
groupVerifyInfoUpdatedonGroupVerifyInfoUpdatedgroupVerifyInfoUpdatedonGroupVerifyInfoUpdated
WebMini ProgramFlutterReact Native
groupVerifyInfoUpdatedgroupVerifyInfoUpdatedonGroupVerifyInfoUpdatedgroupVerifyInfoUpdated
Unity3Duni-app | uni-app xHarmonyOS
OnGroupVerifyInfoUpdatedgroupVerifyInfoUpdatedgroupVerifyInfoUpdated
Note

The parameters FromUserID and GroupId only support numbers, English characters, and '!','#','$','%','&','(',')','+','\'',':',';','<','=','.','>','?', '@','[',']','^','_','{','}','|','~'.

If you do not need to modify JoinMode, InviteMode, or BeInvitedMode, please do not include these parameters in the request URL. If the parameter is included but not assigned a value, the parameter value may be modified to 0.

QPS Limit
20 times/s

Request

Query Parameters

    Action stringrequired

    Possible values: [ModifyGroupLimit]

    API prototype parameter

    https://zim-api.zego.im/?Action=ModifyGroupLimit

    AppId uint32required

    💡Public parameter. Application ID, assigned by ZEGOCLOUD. Get it from the ZEGOCLOUD Admin Console.

    SignatureNonce stringrequired

    💡Public parameter. A 16-character hexadecimal random string (hex encoding of 8-byte random number). Refer to Signature example for how to generate.

    Timestamp int64required

    💡Public parameter. Current Unix timestamp, in seconds. Refer to Signature example for how to generate, with a maximum error of 10 minutes.

    SignatureVersion stringrequired

    Possible values: [2.0]

    Default value: 2.0

    💡Public parameter. Signature version number.

    Signature stringrequired

    💡Public parameter. Signature, used to verify the legitimacy of the request. Refer to Signing the requests for how to generate an API request signature.

    FromUserId stringrequired

    Possible values: <= 32 characters

    User ID of the modification operator (who has logged in to the ZIM service by calling the login method on the client, or has completed registration by calling the server-side API).

    GroupId stringrequired

    Possible values: <= 32 characters

    Target group ID.

    JoinMode number

    Possible values: [0, 1, 2]

    Join mode:

    • 0: (Default) No verification required, anyone can join the group directly.
    • 1: Users need to initiate a join request, and can only join the group after approval by the group owner or group administrator.
    • 2: External users can only join the group through invitation by group members.
    InviteMode number

    Possible values: [0, 1]

    Invite mode:

    • 0: (Default) All group members can invite external users to join the group.
    • 1: Only the group owner or group administrator can initiate invitations.
    BeInvitedMode number

    Possible values: [0, 1]

    Be invited mode:

    • 0: (Default) External users can be directly invited to join the group without their consent.
    • 1: After inviting someone to join the group, their consent is required.
    MemberCountLimit number

    Group member count limit, default value is 0.

Responses

OK
Schema
    Code number

    Return code.

    The following only lists the return codes related to the API business logic. For the complete return codes, please refer to Return codes.

    Return codeDescriptionSuggested Solution
    660000001Server error.Please retry or contact ZEGOCLOUD Technical Support.
    660000002Input parameter is missing or invalid.Please check the input parameters.
    660300005The API call frequency exceeds the AppID-level limit.Please try again later.
    660500002Operator user is not registered.Please register the operator user first.
    660600001Group does not exist.Please confirm if the input GroupId is correct.
    660600009Failed to obtain group-related information.Please confirm if the GroupID is correct first. If correct, please contact ZEGOCLOUD Technical Support.
    Message string

    Description of the operation result.

    RequestId string

    Request ID.

Previous

Query group information

Next

Query group list in the app

On this page

Back to top