{
  "opencollection": "1.0.0",
  "info": {
    "name": "SpotDraft V1 Contract APIs V2.1 Contract Approvals API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "V2.1 Contract Approvals",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Contract Approvals",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.eu.spotdraft.com/api/v2.1/public/contracts/approvals/:contract_id/",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path",
                "description": "ID of the Contract. Should be of the form T-123 or H-123. T stands for Template contracts and H stands for Historical contracts."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "client-id",
              "value": "{{client-id}}",
              "placement": "header"
            }
          },
          "docs": "Returns the approval steps currently configured or in progress for the contract. Use this to show approval status, approvers, and progression before taking contract actions that depend on approvals."
        },
        {
          "info": {
            "name": "Create and Send Adhoc Approvals",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.eu.spotdraft.com/api/v2.1/public/contracts/approvals/:contract_id/",
            "params": [
              {
                "name": "contract_id",
                "value": "",
                "type": "path",
                "description": "ID of the Contract. Should be of the form T-123 or H-123. T stands for Template contracts and H stands for Historical contracts."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "client-id",
              "value": "{{client-id}}",
              "placement": "header"
            }
          },
          "docs": "\nCreate and send ad-hoc approvals for a contract.\n\nNotes:\n- This endpoint supports contracts on Approval V4.\n- Contracts configured for Approval V5 can fail with `SD_CONTRACT_APPROVALS_00001`.\n- The request can fail when another approval group is already in progress (`SD_CONTRACTS_00152`).\n"
        }
      ]
    }
  ],
  "bundled": true
}