{
  "opencollection": "1.0.0",
  "info": {
    "name": "Configuration alertRules approvalRequest API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "approvalRequest",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get all the approval requests.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://test.api.solvimon.com/v:version/approval-requests",
            "headers": [
              {
                "name": "X-API-KEY",
                "value": ""
              },
              {
                "name": "x-platform-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "version"
              },
              {
                "name": "source_type",
                "value": "",
                "type": "query",
                "description": "The object type in which this Approval Request was triggered. I.e. INVOICE."
              },
              {
                "name": "source_id",
                "value": "",
                "type": "query",
                "description": "The ID of the object type that triggered this Approval Request."
              },
              {
                "name": "user_id",
                "value": "",
                "type": "query",
                "description": "The ID of the user to check if they are an approver."
              },
              {
                "name": "statuses[]",
                "value": "",
                "type": "query",
                "description": "Filter Approval Request based on status(es)"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The amount of records shown in the list"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page which is going to be shown"
              },
              {
                "name": "order_by",
                "value": "",
                "type": "query",
                "description": "The parameter by which the response is ordered."
              },
              {
                "name": "order_direction",
                "value": "",
                "type": "query",
                "description": "The order direction by which the response is ordered."
              }
            ]
          },
          "docs": "Get all the approval requests."
        },
        {
          "info": {
            "name": "Get approval request.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://test.api.solvimon.com/v:version/approval-requests/:resourceId",
            "headers": [
              {
                "name": "X-API-KEY",
                "value": ""
              },
              {
                "name": "x-platform-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "version"
              },
              {
                "name": "resourceId",
                "value": "",
                "type": "path",
                "description": "The ID of the resource to be requested."
              }
            ]
          },
          "docs": "Get approval request."
        },
        {
          "info": {
            "name": "Approve an Approval Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://test.api.solvimon.com/v:version/approval-requests/:resourceId/approve",
            "headers": [
              {
                "name": "X-API-KEY",
                "value": ""
              },
              {
                "name": "x-platform-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "version"
              },
              {
                "name": "resourceId",
                "value": "",
                "type": "path",
                "description": "The ID of the resource for which the action is posted."
              }
            ]
          },
          "docs": "Approve an Approval Request"
        },
        {
          "info": {
            "name": "Decline an Approval Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://test.api.solvimon.com/v:version/approval-requests/:resourceId/decline",
            "headers": [
              {
                "name": "X-API-KEY",
                "value": ""
              },
              {
                "name": "x-platform-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "version"
              },
              {
                "name": "resourceId",
                "value": "",
                "type": "path",
                "description": "The ID of the resource for which the action is posted."
              }
            ]
          },
          "docs": "Decline an Approval Request"
        },
        {
          "info": {
            "name": "Cancel an Approval Request",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://test.api.solvimon.com/v:version/approval-requests/:resourceId/cancel",
            "headers": [
              {
                "name": "X-API-KEY",
                "value": ""
              },
              {
                "name": "x-platform-id",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "version",
                "value": "",
                "type": "path",
                "description": "version"
              },
              {
                "name": "resourceId",
                "value": "",
                "type": "path",
                "description": "The ID of the resource for which the action is posted."
              }
            ]
          },
          "docs": "Cancel an Approval Request"
        }
      ]
    }
  ],
  "bundled": true
}