My subscriptions

The my subscription request allows the client application to get the list of all subscriptions of the logged-in user.

My subscriptions describes the API structure for getting a list of all subscriptions of the logged-in user.

Table 1. My subscriptions
Title My subscriptions
URL http://<impact_url>:port/m2m/mysubscriptions
Method GET
Content-Type application/json
URL Params NA
Data Params
msg[string]: Success or failure message
Success Code
Response Code: 200
Error Code
401: Unauthorized 
403: Forbidden 
400: Bad request 
404: Not found
Sample Call

Curl:

curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' 'http://<impact_url>:<port>/m2m/mysubscriptions’ }
Response Body:
{
            "msg": "Success", "Code": 1000
          }
{
        "subscriptions":
        [
            {
                "subscriptionId": "1b862058-d47f-407b-b0f7-54f144f28ebc",
                "groupName": "DM.MFORM",
                "events":
                [
                    "registration"
                ],
                "criteria":
                {
                    "manufacturerData":
                    {
                        "make": "samsung",
                        "model": "n70",
                        "firmwareVersion": "1.0"
                    }
                },
                "deletionPolicy": 0
            },
            {
                "subscriptionId": "687535f8-84f0-4406-ba91-ba34b63db8b1",
                "groupName": "DM.MFORM",
                "events":
                [
                    "registration"
                ],
                "criteria":
                {
                    "manufacturerData":
                    {
                        "make": "oneplus",
                        "model": "3t",
                        "firmwareVersion": "1.0"
                    }
                },
                "deletionPolicy": 0
            },
            {
                "subscriptionId": "d96710ea-9f15-4ce6-b074-69a7a0d1d3ad",
                "groupName": "DM.MFORM",
                "events":
                [
                    "registration"
                ],
                "criteria":
                {
                    "manufacturerData":
                    {
                        "make": "Nokia",
                        "model": "Surya",
                        "firmwareVersion": "1.0"
                    }
                },
                "deletionPolicy": 0
            }
        ]
    }
Notes None