---
title: Get Approvers For SAPM Group
slug: single-connect-api-3-2-0/get-approvers-for-sapm-group
description: Learn how to make a POST request to a desired URL using the curl command with this helpful code example. Discover how to incorporate headers for Accept and Content-Type, and create a request body in JSON format. Enhance your programming skills with this v
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "fwsr5ZrsqH42ierW5A_nH",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/getApproversForSapmGroup",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"dbId\": 85202\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "<p>This API allows you to get list of approvers of the SAPM group you sent dbId of.\ndbId = SAPM group's dbId.</p>",
    "examples": {
      "languages": [
        {
          "id": "vGITuvn8DDNK4tlvYPatI",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/getApproversForSapmGroup \\\n     --header 'accept: application/json'"
        },
        {
          "id": "tLp91Gfo_YDG9MCvW6gGW",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"{{url}}/aioc-rest-web/rest/sc/sapm/getApproversForSapmGroup\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "3Vy_AbpaoStFWdOv2xP7F",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/getApproversForSapmGroup\")\n\nhttp = Net::HTTP.new(url.host, url.port);\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\n\nresponse = http.request(request)\nputs response.read_body\n"
        },
        {
          "id": "LXLQaT23-obBaVyz66DDl",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/getApproversForSapmGroup\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "vGITuvn8DDNK4tlvYPatI"
    },
    "results": {
      "languages": [
        {
          "id": "_Ryz3A9s9Z8D54OE04Rao",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "_Ryz3A9s9Z8D54OE04Rao"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}