Broadcast Messages
Operations Summary
| Method |
Endpoint |
Description |
| Core CRUD |
|
|
| GET |
/api/broadcast-messages/ |
List Broadcast Messages |
| GET |
/api/broadcast-messages/{uuid}/ |
Retrieve |
| POST |
/api/broadcast-messages/ |
Create |
| PUT |
/api/broadcast-messages/{uuid}/ |
Update |
| PATCH |
/api/broadcast-messages/{uuid}/ |
Partial Update |
| DELETE |
/api/broadcast-messages/{uuid}/ |
Delete |
| Other Actions |
|
|
| GET |
/api/broadcast-messages/recipients/ |
Recipients |
| POST |
/api/broadcast-messages/{uuid}/schedule/ |
Schedule |
| POST |
/api/broadcast-messages/{uuid}/send/ |
Send |
Core CRUD
List Broadcast Messages
Retrieve
Create
Update
| http \
PUT \
https://api.example.com/api/broadcast-messages/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
subject="string-value" \
body="string-value" \
query=null
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 | from waldur_api_client.client import AuthenticatedClient
from waldur_api_client.models.broadcast_message_request import BroadcastMessageRequest # (1)
from waldur_api_client.api.broadcast_messages import broadcast_messages_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = BroadcastMessageRequest(
subject="string-value",
body="string-value",
query=null
)
response = broadcast_messages_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
BroadcastMessageRequest
- API Source:
broadcast_messages_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | import { broadcastMessagesUpdate } from 'waldur-js-client';
try {
const response = await broadcastMessagesUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"subject": "string-value",
"body": "string-value",
"query": null
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
subject |
string |
✓ |
body |
string |
✓ |
query |
any |
✓ |
send_at |
string (date) |
|
200 -
| Field |
Type |
uuid |
string (uuid) |
created |
string (date-time) |
subject |
string |
body |
string |
query |
any |
author_full_name |
string |
emails |
any |
state |
any |
send_at |
string (date) |
Partial Update
Delete
Other Actions
Recipients
Schedule
Send