Mute conversation
curl --request POST \
--url https://api.notifique.dev/v1/chat/conversations/{id}/mute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"muted": true,
"mutedUntil": "2023-11-07T05:31:56Z",
"memberExternalUserId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
muted: true,
mutedUntil: '2023-11-07T05:31:56Z',
memberExternalUserId: '<string>'
})
};
fetch('https://api.notifique.dev/v1/chat/conversations/{id}/mute', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/chat/conversations/{id}/mute"
payload = {
"muted": True,
"mutedUntil": "2023-11-07T05:31:56Z",
"memberExternalUserId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/chat/conversations/{id}/mute"
payload := strings.NewReader("{\n \"muted\": true,\n \"mutedUntil\": \"2023-11-07T05:31:56Z\",\n \"memberExternalUserId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true
}{
"success": false,
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"message": "<string>"
}Conversations
Mute conversation
JWT mutes self. API Key sends memberExternalUserId. Null mutedUntil turns mute off.
POST
/
v1
/
chat
/
conversations
/
{id}
/
mute
Mute conversation
curl --request POST \
--url https://api.notifique.dev/v1/chat/conversations/{id}/mute \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"muted": true,
"mutedUntil": "2023-11-07T05:31:56Z",
"memberExternalUserId": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
muted: true,
mutedUntil: '2023-11-07T05:31:56Z',
memberExternalUserId: '<string>'
})
};
fetch('https://api.notifique.dev/v1/chat/conversations/{id}/mute', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/v1/chat/conversations/{id}/mute"
payload = {
"muted": True,
"mutedUntil": "2023-11-07T05:31:56Z",
"memberExternalUserId": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/v1/chat/conversations/{id}/mute"
payload := strings.NewReader("{\n \"muted\": true,\n \"mutedUntil\": \"2023-11-07T05:31:56Z\",\n \"memberExternalUserId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true
}{
"success": false,
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"message": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"message": "<string>"
}Was this page helpful?

