---
title: Search Password Change Log
slug: single-connect-api-3-0-3/search-password-change-log
description: Learn how to effectively use the curl command to execute a seamless POST request with precision. This comprehensive document offers a clear code example demonstrating how to set up the header and body to perfection. Streamline your web development process
docTags: 
createdAt: 2022-11-10T14:21:49.000Z
---

{
  "id": "iP1JyBmbp3HMS0xvABkHr",
  "data": {
    "url": "{{url}}/aioc-rest-web/rest/sc/sapm/searchPasswordChangeLog",
    "method": "POST",
    "request": {
      "pathParameters": [],
      "queryParameters": [],
      "headerParameters": [
        {
          "name": "X-XSRF-TOKEN",
          "type": "string",
          "example": "{{csrftoken}}",
          "description": ""
        }
      ],
      "bodyDataParameters": [
        {
          "name": "body",
          "type": "string",
          "example": "{\n\t\"startTime4Search\": \"2020-04-25T19:45:00Z\",\n\t\"endTime4Search\": \"2020-04-29T21:45:00Z\"\n\t\n}",
          "description": ""
        }
      ],
      "formDataParameters": []
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "",
        "jsonExample": ""
      }
    ],
    "contentType": "application/json",
    "description": "This API is for searching between given time interval on request body.",
    "examples": {
      "languages": [
        {
          "id": "kh7GHzcolSR2t_EBdgIEM",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url {{url}}/aioc-rest-web/rest/sc/sapm/searchPasswordChangeLog \\\n     --header 'accept: application/json'"
        },
        {
          "id": "5qH6BPGB-zloYiTvdQW2w",
          "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/searchPasswordChangeLog\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "sfdV4c_g40pjCjJw5Dbvx",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"net/http\"\n\nurl = URI(\"{{url}}/aioc-rest-web/rest/sc/sapm/searchPasswordChangeLog\")\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": "MBXboavifh86prirZa7IX",
          "language": "python",
          "label": "Python",
          "code": "import requests\n\nurl = \"{{url}}/aioc-rest-web/rest/sc/sapm/searchPasswordChangeLog\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "kh7GHzcolSR2t_EBdgIEM"
    },
    "results": {
      "languages": [
        {
          "id": "Hur53fKojfFc0Lfd5F-Kb",
          "language": "200",
          "code": ""
        }
      ],
      "selectedLanguageId": "Hur53fKojfFc0Lfd5F-Kb"
    }
  },
  "type": "api-oas-v2",
  "children": [
    {
      "text": ""
    }
  ]
}