English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/broadcast/{broadcastId}Delete a broadcast that is done or canceled, with its list of recipients. The messages already sent stay in the chats.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizbroadcast:write| Parameter | Type | Required | Description |
|---|---|---|---|
broadcastId | string | Yes | ID of the broadcast, the _id from Get Broadcast or the broadcastId from Create Broadcast. |
curl -X DELETE "https://api.repliz.com/public/broadcast/6927e1c2e4b0a1f2c3d4e5f6" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const response = await axios.delete('https://api.repliz.com/public/broadcast/6927e1c2e4b0a1f2c3d4e5f6', {
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
});
console.log(response.status);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const response = await fetch('https://api.repliz.com/public/broadcast/6927e1c2e4b0a1f2c3d4e5f6', {
method: 'DELETE',
headers: {
Authorization: `Basic ${credentials}`,
},
});
console.log(response.status);// No content returned on success{
"code": 400,
"message": "cancel the broadcast before deleting it"
}{
"code": 404,
"message": "broadcast not found"
}{
"code": 401,
"message": "unauthorized"
}