Updating information
PUT/api/v2/instance/:instanceId/socket
Updating information
Request
Path Parameters
ID of the instance.
- application/json
Body
required
events object
Default value: true
Enables sending the qr code.
Default value: false
Enables sending instance State.
Default value: false
Enables batch sending of old messages.
Default value: true
Enables sending of all new incoming messages.
Default value: true
Enables sending all updates to the incoming or outgoing message.
Default value: true
Enables the sending of all messages sent by the API.
Default value: false
Enables sending the initial batch of loaded contacts.
Default value: false
Enables sending a new contact with additional information.
Default value: false
Enable update notification for each contact in the conversation.
Default value: true
Enables notification of contact behavior in chat.
Default value: false
Enables sending all loaded chats.
Default value: false
Enable notification of each chat update in the conversation.
Default value: false
Enable notification of every new chat started.
Default value: false
Enable notification when a chat is deleted.
Default value: false
Enable notification when a group is created.
Default value: false
c
Default value: false
Enable notification when a member of a group is updated.
Default value: true
Enable notification when connection status changes.
Default value: false
Responses
- 201
- 400
- 401
ResponseSocket
- application/json
- Schema
- Example (from schema)
Schema
SocketEvents object
Default value: true
Enables sending the qr code.
Default value: false
Enables sending instance State.
Default value: false
Enables batch sending of old messages.
Default value: true
Enables sending of all new incoming messages.
Default value: true
Enables sending all updates to the incoming or outgoing message.
Default value: true
Enables the sending of all messages sent by the API.
Default value: false
Enables sending the initial batch of loaded contacts.
Default value: false
Enables sending a new contact with additional information.
Default value: false
Enable update notification for each contact in the conversation.
Default value: true
Enables notification of contact behavior in chat.
Default value: false
Enables sending all loaded chats.
Default value: false
Enable notification of each chat update in the conversation.
Default value: false
Enable notification of every new chat started.
Default value: false
Enable notification when a chat is deleted.
Default value: false
Enable notification when a group is created.
Default value: false
c
Default value: false
Enable notification when a member of a group is updated.
Default value: true
Enable notification when connection status changes.
Default value: false
{
"socketId": "string",
"enabled": true,
"SocketEvents": {
"qrcodeUpdate": true,
"stateInstance": false,
"messagesSet": false,
"messagesUpsert": true,
"messagesUpdate": true,
"sendMessage": true,
"contactsSet": false,
"contactsUpsert": false,
"contactsUpdate": false,
"presenceUpdate": true,
"chatsSet": false,
"chatsUpdate": false,
"chatsUpsert": false,
"groupsUpsert": false,
"groupUpdate": false,
"groupParticipantsUpdate": false,
"connectionUpdate": true,
"callUpsert": false
},
"createdAt": "2024-04-14T14:11:06.347Z",
"updatedAt": "2024-04-14T14:11:06.347Z",
"deletedAt": "2024-04-14T14:11:06.347Z",
"instanceInstanceId": "string"
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
Default value: string,[object Object]
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}