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

NameTypeDescription

event_template_id

string

Event Template ID.

Headers

NameTypeDescription

Authorization

string

Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb

Content-Type

string

application/vnd.api+json

Request Body

NameTypeDescription

name

string

Event template name.

duration

integer

Event template duration in seconds.

settings

array

List of fields of event template settings. Each field is updated separately and if present its content is rewritten completely.

// no content

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
          }
        }
      ]
    }
  }
}

Last updated