OpsGenie - List Schedules using REST API

Here is an example of how to submit a GET request to api.opsgenie.com using curl for Schedules.

~]$ curl --request GET https://api.opsgenie.com/v2/schedules --header 'Authorization: GenieKey 6760afa9-5a94-4b45-bd77-54752d4d5292'

 

Which should return JSON that looks something like this.

{
    "data": [
        {
            "description": "My Schedule",
            "enabled": true,
            "id": "0847efce-c378-48cb-8b74-f5bb514090e7",
            "name": "My Schedule",
            "ownerTeam": {
                id": "29eb4194-7a9f-4b3a-87b3-4949707ddc01",
                "name": "Parent Schedule",
            },
            "rotations": [],
            "timezone": "America/Chicago"
        }
    ]
}

 




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee

Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.





Please enter 632f0 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |