API Overview
Message Callbacks
Status Codes
Overview
Changes the group owner. Only the current group owner can perform this operation, and the new group owner must be a group member.
Request
Authentication: Add authentication headers to the request. See Authentication
Method:
POST
Rate limit:
100 requests/second
Endpoint: https://API domain/jim/groups/management/chgowner
Content-Type:
application/json
Request parameters
| Parameter | Data type | Required | Description | |
|---|---|---|---|---|
| group_id | string | Yes | Group ID. | |
| owner_id | string | Yes | User ID of the new group owner. |
Request example
POST /jim/groups/management/chgowner HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
{
"group_id":"groupid1",
"owner_id":"userid2"
}
Response example
{
"code":0,
"msg":"sucess"
}
Response codes
| Response codes | Description |
|---|