Skip to content

Inconsistency in sort field values for Incident API and Alert API #24

@davidban77

Description

@davidban77

Hi,

I have stumbled with this error:

HTTP response body: {"message": "Invalid sort field.", "took": 0.001, "requestId": "xzxzxzxzxz", "url": "https://api.opsgenie.com/v1/incidents/"}

This happens when trying to use the list_incidents method on the IncidentApi with:

sort="created_at"

It works when is set as camel case createdAt, but is not consistent with the AlertApi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions