Broadcast Message Templates
Operations Summary
| Method |
Endpoint |
Description |
| GET |
/api/broadcast-message-templates/ |
List Broadcast Message Templates |
| GET |
/api/broadcast-message-templates/{uuid}/ |
Retrieve |
| POST |
/api/broadcast-message-templates/ |
Create |
| PUT |
/api/broadcast-message-templates/{uuid}/ |
Update |
| PATCH |
/api/broadcast-message-templates/{uuid}/ |
Partial Update |
| DELETE |
/api/broadcast-message-templates/{uuid}/ |
Delete |
List Broadcast Message Templates
Retrieve
Create
Update
| http \
PUT \
https://api.example.com/api/broadcast-message-templates/a1b2c3d4-e5f6-7890-abcd-ef1234567890/ \
Authorization:"Token YOUR_API_TOKEN" \
name="my-awesome-broadcast-message-template" \
subject="string-value" \
body="string-value"
|
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.message_template_request import MessageTemplateRequest # (1)
from waldur_api_client.api.broadcast_message_templates import broadcast_message_templates_update # (2)
client = AuthenticatedClient(
base_url="https://api.example.com", token="YOUR_API_TOKEN"
)
body_data = MessageTemplateRequest(
name="my-awesome-broadcast-message-template",
subject="string-value",
body="string-value"
)
response = broadcast_message_templates_update.sync(
uuid="a1b2c3d4-e5f6-7890-abcd-ef1234567890",
client=client,
body=body_data
)
print(response)
|
- Model Source:
MessageTemplateRequest
- API Source:
broadcast_message_templates_update
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | import { broadcastMessageTemplatesUpdate } from 'waldur-js-client';
try {
const response = await broadcastMessageTemplatesUpdate({
auth: "Token YOUR_API_TOKEN",
path: {
"uuid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
},
body: {
"name": "my-awesome-broadcast-message-template",
"subject": "string-value",
"body": "string-value"
}
});
console.log('Success:', response);
} catch (error) {
console.error('Error:', error);
}
|
| Name |
Type |
Required |
uuid |
string (uuid) |
✓ |
| Field |
Type |
Required |
name |
string |
✓ |
subject |
string |
✓ |
body |
string |
✓ |
200 -
| Field |
Type |
url |
string (uri) |
uuid |
string (uuid) |
name |
string |
subject |
string |
body |
string |
Partial Update
Delete