Update Event Template
Update event template with specified identifier.
Update Event Template
PATCH
https://environment.monterosa.cloud/api/v2/event_templates/:event_template_id
Path Parameters
Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
Request Body
Event template duration in seconds.
List of fields of event template settings. Each field is updated separately and if present its content is rewritten completely.
Example
// PATCH /api/v2/event_templates/2e9ddb8b-1ed0-4887-840a-9b37197a26e7
// Host: environment.monterosa.cloud
// Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
// Content-Type: application/vnd.api+json
{
"data": {
"type": "event_templates",
"id": "126cd46d-02db-4369-84af-922cd0a8846b",
"attributes": {
"name": "Base Event Template",
"duration": 1800,
"settings": [
{
"key": "hold_prompt",
"values": {
"en": "On hold..."
}
},
{
"key": "number_of_users",
"values": {
"all" : 6
}
}
]
}
}
}
// Status: 204 No Content
curl --request PATCH \
--url https://environment.monterosa.cloud/api/v2/event_templates/2e9ddb8b-1ed0-4887-840a-9b37197a26e7 \
--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "event_templates",
"id": "126cd46d-02db-4369-84af-922cd0a8846b",
"attributes": {
"name": "Base Event Template",
"duration": 1800,
"settings": [
{
"key": "hold_prompt",
"values": {
"en": "On hold..."
}
},
{
"key": "number_of_users",
"values": {
"all" : 6
}
}
]
}
}
}'