NOTE: User must me logged in as admin to access this API

URL : service-desk/api/cab/{cabId}

Method : GET

Query Parameters :

Parameter Type Possible Values Required/Optional Description
cabId Integer Required Cab Id

Success Response:

{

  "success":true,

  "data":{

    "id":1,

    "name":"Manager Approval",

    "type":"Cab",

    "action_on_approve":{

      "id":1,

      "name":"Open"

      },

      "action_on_deny":{

        "id":3,

        "name":"Closed"

        },

        "user_id":1,

        "levels":[

          {

            "id":1,

            "name":"level 1",

            "match":"all",

            "order":1,

            "approvers":{

              "users":[

                {

                   "id":1,

                   "name":"Demo Admin"

                 },

                 {

                    "id":2,

                    "name":"Krishna Vishwakarma"

                  }],

                    "user_types":[]

                  }

               },

              {

    "id":2,

    "name":"level 2",

    "match":"all",

    "order":2,

    "approvers":{

      "users":[

        {
        "id":1,

        "name":"Demo Admin"

        }],

      "user_types":[]

      }

    }]

  }

}

Error Response:

{
  "success":false,
  "message":"Cab Not found"
}