I am trying to make a REST API call to know who is on duty. Every time I run this command I get 401 status saying, unauthorized user. I can login successfully using the Xmatters Web Interface. Here is the API call I am making
curl -H "Content-Type: application/json" --user username "https://xxx.hosted.xmatters.com/api/xm/1/groups/groupId/calendar"
Where am I going wrong?
To access the API, ensure the user has (at least) the "Limited Group Supervisor" role. If you've never done this before, here is how:
Your curl command can be as simple as
curl --user username "https://xxx.hosted.xmatters.com/api/xm/1/groups/groupId/calendar"
API Doc: https://help.xmatters.com/xmAPI/#get-who-is-on-duty