Driftwatch

APIs / PagerDuty

PagerDuty API changes

Breaking changes, deprecations and new fields in the PagerDuty API, as they ship.

PagerDutyPagerDuty REST API · 5eead2971 breaking2 additive
  • Breaking

    targets is now required

    Partial payloads are rejected.

    IpAllowList.targets · reachable from 4 operations
    Code that breaks
    await client.post("/…", {
      // …
      targets: /* now required */,
    });
  • Additive

    Response field targets added

    No action needed unless you validate responses against a closed schema.

    IpAllowList.targets · reachable from 4 operations
  • Additive

    Request property targets added

    No action needed unless it is required.

    IpAllowList.targets · reachable from 4 operations
PagerDutyPagerDuty REST API · cbaac3633 additive
  • Additive

    Request property incident_type added

    No action needed unless it is required.

    OrchestrationGlobal.orchestration_path.catch_all.actions.incident_type · reachable from 2 operations
2 new response fields
  • OrchestrationGlobal.orchestration_path.catch_all.actions.incident_type
  • orchestration_path.catch_all.actions.incident_type
PagerDutyPagerDuty REST API · 87beced13 breaking2 behavioral3 additive
  • Breakingdirection flip: their tools call this safe

    status can now return "in_review"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    IncidentReview.status · reachable from 3 operations
    Code that breaks
    switch (response.status) {
      // existing branches …
      // no branch for "in_review"
      default:
        throw new Error("unexpected status");
    }
  • Breaking

    Response field external_type removed

    Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

    IncidentReviewActionItem.external_type · reachable from 2 operations
    Code that breaks
    // response.external_type is now undefined
    const external_type = response.external_type;
  • Breaking

    Response field updated_at removed

    IncidentReviewActionItem.updated_at · reachable from 2 operations
    Code that breaks
    // response.updated_at is now undefined
    const updated_at = response.updated_at;
  • Behavioral

    Status code no longer documented

    Dead branch, or an undocumented response you still receive.

    POST /incidents/{id}/review
  • Behavioral

    409 is now documented on /incidents/{id}/review/markers

    An unhandled branch in your error handling.

    POST /incidents/{id}/review/markers
  • Additive

    Response type narrowed

    A tighter guarantee, not a break. Every value you can receive now was already possible, so existing handling still covers it; a null check here may now be dead code.

    IncidentReviewActionItem.external_url · reachable from 2 operations
  • Additive

    Response field type added

    No action needed unless you validate responses against a closed schema.

    IncidentReviewActionItem.type · reachable from 2 operations
  • Additive

    Request property owner_user_id added

    No action needed unless it is required.

    POST /incidents/{id}/review · owner_user_id
PagerDutyPagerDuty REST API · 15463bad3 breaking3 additive
  • Breaking

    type is now required

    Partial payloads are rejected.

    7 places: StatusPagePostPostRequest.status_page.type, POST /status_pages/{id}/subscriptions · subscription.status_page.type, StatusPagePostPutRequest.status_page.type, StatusPagePostUpdateRequest.post.type, StatusPagePostUpdateRequest.severity.type, StatusPagePostUpdateRequest.status.type +1 more
    Code that breaks
    await client.post("/…", {
      // …
      type: /* now required */,
    });
  • Breakingdirection flip: their tools call this safe

    status_page_type can now return "audience_specific"

    Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.

    StatusPage.status_page_type · reachable from 1 operation
    Code that breaks
    switch (response.status_page_type) {
      // existing branches …
      // no branch for "audience_specific"
      default:
        throw new Error("unexpected status_page_type");
    }
  • Breaking

    url changed type

    Parse failure, or silent coercion depending on your client.

    StatusPage.url · reachable from 1 operation
    Code that breaks
    // payload.url
    // was: url
    // now: uri
  • Additive

    total is now optional

    No action needed.

    GET /status_pages · total · 8 call sites
  • Additive

    limit is now optional

    GET /status_pages · limit · 8 call sites
  • Additive

    offset is now optional

    GET /status_pages · offset · 8 call sites
PagerDutyPagerDuty REST API · c07afaed8 breaking2 additive
  • Breaking

    end_time is now required

    Partial payloads are rejected.

    2 places: UpdateEventRequest.event.end_time, UpdateOverrideRequest.override.end_time
    Code that breaks
    await client.post("/…", {
      // …
      end_time: /* now required */,
    });
  • Breaking

    start_time is now required

    2 places: UpdateEventRequest.event.start_time, UpdateOverrideRequest.override.start_time
    Code that breaks
    await client.post("/…", {
      // …
      start_time: /* now required */,
    });
  • Breaking

    name is now required

    UpdateEventRequest.event.name · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      name: /* now required */,
    });
  • Breaking

    recurrence is now required

    UpdateEventRequest.event.recurrence · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      recurrence: /* now required */,
    });
  • Breaking

    assignment_strategy is now required

    UpdateEventRequest.event.assignment_strategy · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      assignment_strategy: /* now required */,
    });
  • Breaking

    effective_since is now required

    UpdateEventRequest.event.effective_since · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      effective_since: /* now required */,
    });
  • Breaking

    overriding_member is now required

    Partial payloads are rejected.

    UpdateOverrideRequest.override.overriding_member · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      overriding_member: /* now required */,
    });
  • Breaking

    type is now required

    UpdateOverrideRequest.override.type · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      type: /* now required */,
    });
2 new request properties
  • UpdateOverrideRequest.override.overridden_member
  • UpdateOverrideRequest.override.type
PagerDutyPagerDuty REST API · 6d58ee7a8 breaking2 behavioral3 additive
  • Breaking

    Response field more removed

    Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

    GET /v3/schedules/{id}/custom_shifts · more · 2 call sites
    Code that breaks
    // response.more is now undefined
    const more = response.more;
  • Breaking

    Response field offset removed

    GET /v3/schedules/{id}/custom_shifts · offset · 2 call sites
    Code that breaks
    // response.offset is now undefined
    const offset = response.offset;
  • Breaking

    Response field limit removed

    GET /v3/schedules/{id}/custom_shifts · limit · 2 call sites
    Code that breaks
    // response.limit is now undefined
    const limit = response.limit;
  • Breaking

    end_time is now required

    Partial payloads are rejected.

    UpdateCustomShiftRequest.custom_shift.end_time · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      end_time: /* now required */,
    });
  • Breaking

    start_time is now required

    UpdateCustomShiftRequest.custom_shift.start_time · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      start_time: /* now required */,
    });
  • Breaking

    type is now required

    UpdateCustomShiftRequest.custom_shift.type · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      type: /* now required */,
    });
  • Breaking

    time_zone is now required

    Partial payloads are rejected.

    UpdateScheduleRequest.schedule.time_zone · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      time_zone: /* now required */,
    });
  • Breaking

    assignments is now required

    Partial payloads are rejected.

    UpdateCustomShiftRequest.custom_shift.assignments · reachable from 1 operation
    Code that breaks
    await client.post("/…", {
      // …
      assignments: /* now required */,
    });
  • Behavioral

    Pagination default for limit changed to 100

    Silent truncation. Code that does not paginate keeps working and quietly returns a different slice of the data.

    GET /v3/schedules/{id}/rotations · limit · 2 call sites
    Code that breaks
    // Unpaginated calls now return 100 items, previously 25
    const page = await client.get("/v3/schedules/{id}/rotations");
  • Behavioral

    Pagination default for limit changed to 25

    Silent truncation. Code that does not paginate keeps working and quietly returns a different slice of the data.

    GET /v3/schedules · limit
    Code that breaks
    // Unpaginated calls now return 25 items, previously 100
    const page = await client.get("/v3/schedules");
  • Additive

    user_id is now optional

    No action needed.

    GET /v3/schedules · user_id
2 new request properties
  • UpdateCustomShiftRequest.custom_shift.type
  • UpdateScheduleRequest.schedule.teams
PagerDutyPagerDuty REST API · 38daa03e2 additive
  • Additive

    Response field enabled added

    No action needed unless you validate responses against a closed schema.

    EmailContactMethod.enabled · reachable from 4 operations
  • Additive

    Request property enabled added

    No action needed unless it is required.

    EmailContactMethod.enabled · reachable from 4 operations
PagerDutyPagerDuty REST API · 3e1ec29d8 additive
PagerDutyPagerDuty REST API · 725ee3225 additive
PagerDutyPagerDuty REST API · fb503fd67 additive
2 new response fields
  • User.http_cal_url
  • User.web_cal_url
4 new request properties
  • User.http_cal_url
  • User.web_cal_url
  • user.http_cal_url
  • user.web_cal_url
PagerDutyPagerDuty REST API · 168308765 additive
PagerDutyPagerDuty REST API · 5b8fc61b4 additive