Skip to main content
GET
/
incidents
/
{incident}
/
updates
/
{update}
Get Incident Update
curl --request GET \
  --url http://localhost:8001/api/incidents/{incident}/updates/{update}
import requests

url = "http://localhost:8001/api/incidents/{incident}/updates/{update}"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('http://localhost:8001/api/incidents/{incident}/updates/{update}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_PORT => "8001",
CURLOPT_URL => "http://localhost:8001/api/incidents/{incident}/updates/{update}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "http://localhost:8001/api/incidents/{incident}/updates/{update}"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("http://localhost:8001/api/incidents/{incident}/updates/{update}")
.asString();
require 'uri'
require 'net/http'

url = URI("http://localhost:8001/api/incidents/{incident}/updates/{update}")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "data": {
    "id": "<string>",
    "type": "updates",
    "attributes": {
      "id": 123,
      "updateable_id": 123,
      "updateable_type": "<string>",
      "message": "<string>",
      "created": {
        "human": "<string>",
        "string": "<string>"
      },
      "updated": {
        "human": "<string>",
        "string": "<string>"
      },
      "status": {
        "value": 123
      }
    },
    "relationships": {
      "incident": {
        "data": {
          "type": "incidents",
          "id": "<string>"
        }
      },
      "schedule": {
        "data": {
          "type": "schedules",
          "id": "<string>"
        }
      }
    }
  },
  "included": [
    {
      "id": "<string>",
      "type": "incidents",
      "attributes": {
        "id": 123,
        "guid": "<string>",
        "name": "<string>",
        "message": "<string>",
        "stickied": true,
        "notifications": 123,
        "status": {
          "human": "<string>",
          "value": "<string>"
        },
        "occurred": {
          "human": "<string>",
          "string": "<string>"
        },
        "created": {
          "human": "<string>",
          "string": "<string>"
        },
        "updated": {
          "human": "<string>",
          "string": "<string>"
        },
        "components_count": "<string>"
      },
      "relationships": {
        "components": {
          "data": [
            {
              "type": "components",
              "id": "<string>"
            }
          ]
        },
        "updates": {
          "data": [
            {
              "type": "updates",
              "id": "<string>"
            }
          ]
        },
        "user": {
          "data": {
            "type": "<string>",
            "id": "<string>"
          }
        }
      }
    }
  ]
}
{
"message": "<string>"
}

Path Parameters

incident
integer
required

The incident ID

update
integer
required

The update ID

Query Parameters

include
enum<string>[]
Available options:
incident,
incidentCount,
incidentExists

Response

Update

data
Update · object
required
included
(Incident · object | Schedule · object)[]