Skip to main content
PUT
/
api
/
v1
/
chats
/
{chatId}
/
group
Update group
curl --request PUT \
  --url http://localhost:{port}/api/v1/chats/{chatId}/group \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "subject": "<string>",
  "description": "<string>",
  "settings": {
    "sendMessages": true,
    "editGroupInfo": true
  },
  "picture": "<string>"
}
'
{
  "success": true,
  "chatId": "<string>",
  "message": "<string>",
  "details": [
    "<any>"
  ],
  "actions": {
    "subjectUpdated": true,
    "descriptionUpdated": true,
    "settingsUpdated": true,
    "pictureUpdated": true
  }
}

Authorizations

Authorization
string
header
required

JWT token authentication

Path Parameters

chatId
string
required

ID of the group chat

Body

application/json
subject
string

New subject (name) for the group

description
string

New description for the group

settings
object

Group settings to update

picture
string

Base64 encoded image data for group picture

Response

Group updated successfully

success
boolean
required

Whether the action was successful

chatId
string

ID of the group the action was performed on

message
string

Additional details about the operation result

details
any[]

Detailed results of multiple operations

actions
object

Actions performed