Get Event Templates

Get all event templates of a specific project.

Get Event Templates

GET https://environment.monterosa.cloud/api/v2/projects/:project_id/event_templates

Path Parameters

Headers

{
  "data": [
    {
      "id": "8da3f347-e02e-4c17-9f38-0db58b1b2850",
      "type": "event_templates",
      "attributes": {
        "duration": 600,
        "name": "Event Template #1",
        "settings": [
          {
            "key": "text",
            "values": {
              "all": "value"
            }
          }
        ]
      },
      "relationships": {
        "elements": {
          "links": {
            "related": "https://environment.lvis.io/api/v2/event_templates/8da3f347-e02e-4c17-9f38-0db58b1b2850/elements"
          }
        },
        "project": {
          "data": {
            "id": "2773ab5e-227a-4e66-8749-84da7d94c2d2",
            "type": "projects"
          }
        }
      },
      "links": {
        "self": "https://environment.lvis.io/api/v2/event_templates/8da3f347-e02e-4c17-9f38-0db58b1b2850"
      }
    },
    {
      "id": "b8406e91-935a-4aef-99e4-d7cdfb67ff4a",
      "type": "event_templates",
      "attributes": {
        "duration": 600,
        "name": "Event Template #2",
        "settings": [
          {
            "key": "text",
            "values": {
              "all": "value"
            }
          }
        ]
      },
      "relationships": {
        "elements": {
          "links": {
            "related": "https://environment.lvis.io/api/v2/event_templates/b8406e91-935a-4aef-99e4-d7cdfb67ff4a/elements"
          }
        },
        "project": {
          "data": {
            "id": "2773ab5e-227a-4e66-8749-84da7d94c2d2",
            "type": "projects"
          }
        }
      },
      "links": {
        "self": "https://environment.lvis.io/api/v2/event_templates/b8406e91-935a-4aef-99e4-d7cdfb67ff4a"
      }
    }
  ]
}

Example

curl --request GET \
  --url https://environment.monterosa.cloud/api/v2/projects/a7fde717-6100-4377-8530-fbad083eb768/event_templates \
  --header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
  --header 'Content-Type: application/vnd.api+json'