---
title: Search AAPM Account
slug: single-connect-api-3-0-3/search-aapm-account
description: Learn how to perform a POST request using the curl command with this code example. This document provides a complete breakdown of how to make the request to a specific URL, including specifying headers and JSON data. Master the art of POST requests and en
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "-mPaAZsrpX1Gg7kmiE22f",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\"dbId\": 748484}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "AAPM accounts can be searched with this API.",
    "examples": {
      "languages": [
        {
          "id": "VsXJXCgI1Xw7BC4GudvmD",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts \\\n     --header 'accept: application/json'"
        },
        {
          "id": "zMPi9AQCWF4HREM_ANfSc",
          "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/aapm/searchAapmAccounts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "b6KbGx9wMi3dfTLjmd08P",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts\")\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": "kvZ_q7c07qHQB7FsGOevA",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/aapm/searchAapmAccounts\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "VsXJXCgI1Xw7BC4GudvmD"
    },
    "results": {
      "languages": [
        {
          "id": "Pqru1MQ4Fkxyk3l1JRYVf",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "Pqru1MQ4Fkxyk3l1JRYVf"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}