Update Profile Seen Privacy
PATCH/api/v2/instance/:instanceId/whatsapp/update/profile-seen-privacy
This endpoint allows you to modify the privacy settings of your "Last Seen" status on WhatsApp. The "Last seen" status lets other users know when you last viewed their messages. Through this endpoint, you can define who can see this information.
Request
Path Parameters
instanceId stringrequired
ID of the instance.
- application/json
Body
required
- action: A field that accepts specific values to determine who can see your "Last Seen" status. The possible values are:
- 'all': This allows all users to see your "Last Seen" status.
- 'contact_blacklist': This restricts visibility to contacts on your blocklist.
- 'contacts': This allows only the contacts from your contact list to see your "Last Seen" status.
- 'none': This prevents any user from seeing your "Last Seen" status.
action Actionrequired
Default value: all | contact_blacklist | contacts | none
Responses
- 200
- 400
- 401
- 500
ResponseProfileSeenPrivacy
- application/json
- Schema
- Example (from schema)
Schema
lastSeenPrivacy stringrequired
WhatsApp object
whatsappId stringrequired
remoteJid stringrequired
pictureUrl stringrequired
pushName stringrequired
createdAt stringrequired
instanceInstanceId stringrequired
{
"lastSeenPrivacy": "string",
"WhatsApp": {
"whatsappId": "string",
"remoteJid": "string",
"pictureUrl": "string",
"pushName": "string",
"createdAt": "string",
"instanceInstanceId": "string"
}
}
BadRequestException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
UnauthorizedException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
InternalServerErrorException
- application/json
- Schema
- Example (from schema)
Schema
message string[]required
Default value: string,[object Object]
error stringrequired
statusCode numberrequired
{
"message": [
"string"
],
"error": "string",
"statusCode": 0
}
Loading...