---
title: Delete AAPM Account
slug: single-connect-api-3-2-0/delete-aapm-account
description: Learn how to make API requests using the cURL command with this code example. Explore the request method, URL, headers, and body data to effortlessly integrate APIs into your projects.
docTags: 
createdAt: 2022-11-10T14:24:52.000Z
---

{
  "id": "28Wt8yGxwMR4RZEIfaA7Q",
  "data": {
    "url": "http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "x-xsrf-token",
          "type": "string",
          "example": "{{x-xsrf-token}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\"dbId\": 963708}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "<p>AAPM accounts can be deleted with AAPM account db_id.</p>",
    "examples": {
      "languages": [
        {
          "id": "GLP36tkvu0fm5AU-v5jso",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts \\\n     --header 'accept: application/json'"
        },
        {
          "id": "v2HD224Wc4vFj6GsBqspE",
          "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(\"http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "h6iGsF31TLpG9HdS3AOaw",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts\")\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": "xBlifDMoZRjsx6RUukTJW",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"http://localhost/aioc-rest-web/rest/aapm/deleteAapmAccounts\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "GLP36tkvu0fm5AU-v5jso"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-200",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "response-0-200"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}