{
  "opencollection": "1.0.0",
  "info": {
    "name": "Event Subscription API",
    "version": "2.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Event Subscriptions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Published Events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/app/published_events/",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The initial index from which to return the results."
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Which field to use when ordering the results."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a list of published events"
        },
        {
          "info": {
            "name": "Get a Published Event",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/app/published_events/:event_id/",
            "params": [
              {
                "name": "event_id",
                "value": "",
                "type": "path",
                "description": "The ID of the event to retrieve"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a Published Event"
        },
        {
          "info": {
            "name": "Update a Published Event",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://sandbox.elationemr.com/api/2.0/app/published_events/:event_id/",
            "params": [
              {
                "name": "event_id",
                "value": "",
                "type": "path",
                "description": "The ID of the event to retrieve"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update a Published Event"
        },
        {
          "info": {
            "name": "Partially Update App Published Event",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.elationemr.com/api/2.0/app/published_events/:event_id/",
            "params": [
              {
                "name": "event_id",
                "value": "",
                "type": "path",
                "description": "The ID of the event to retrieve"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Partially Update App Published Event"
        },
        {
          "info": {
            "name": "List Subscriptions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/app/subscriptions/",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The initial index from which to return the results."
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Which field to use when ordering the results."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List Subscriptions"
        },
        {
          "info": {
            "name": "Subscribe to a resource updates",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.elationemr.com/api/2.0/app/subscriptions/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "You can only subscribe to the same resource and the same target once. A status 409 will be returned if you attempt to send duplicate subscription."
        },
        {
          "info": {
            "name": "Get a Subscription",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/app/subscriptions/:id/",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a Subscription"
        },
        {
          "info": {
            "name": "Delete a Subscription",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://sandbox.elationemr.com/api/2.0/app/subscriptions/:id/",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a Subscription"
        },
        {
          "info": {
            "name": "List Published Events",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/published_events/",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The initial index from which to return the results."
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Which field to use when ordering the results."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Returns a list of published events"
        },
        {
          "info": {
            "name": "Get a Published Event",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/published_events/:event_id/",
            "params": [
              {
                "name": "event_id",
                "value": "",
                "type": "path",
                "description": "The ID of the event to retrieve"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a Published Event"
        },
        {
          "info": {
            "name": "Update a Published Event",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://sandbox.elationemr.com/api/2.0/published_events/:event_id/",
            "params": [
              {
                "name": "event_id",
                "value": "",
                "type": "path",
                "description": "The ID of the event to retrieve"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update a Published Event"
        },
        {
          "info": {
            "name": "Partially Update Published Event",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://sandbox.elationemr.com/api/2.0/published_events/:event_id/",
            "params": [
              {
                "name": "event_id",
                "value": "",
                "type": "path",
                "description": "The ID of the event to retrieve"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Partially Update Published Event"
        },
        {
          "info": {
            "name": "List Subscriptions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/subscriptions/",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of results to return per page."
              },
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "The initial index from which to return the results."
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "Which field to use when ordering the results."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List Subscriptions"
        },
        {
          "info": {
            "name": "Subscribe to a resource updates",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://sandbox.elationemr.com/api/2.0/subscriptions/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "You can only subscribe to the same resource and the same target once. A status 409 will be returned if you attempt to send duplicate subscription."
        },
        {
          "info": {
            "name": "Get a Subscription",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://sandbox.elationemr.com/api/2.0/subscriptions/:id/",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a Subscription"
        },
        {
          "info": {
            "name": "Delete a Subscription",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://sandbox.elationemr.com/api/2.0/subscriptions/:id/",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/api/2.0/oauth2/token/",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a Subscription"
        }
      ]
    }
  ],
  "bundled": true
}