Regenerate Authentication Token of a User

PUT

This API regenerates the authentication token of a user in PAM360. The response confirms that a new AUTHTOKEN has been generated and can be used for subsequent API requests.

Request URL

https://<Hostname-or-IP-address-of-PAM360-server>:<Port>/restapi/json/v1/user/regenerateAuthtoken

Header Parameters

{
	"AUTHTOKEN" : "<<Authtoken-generated-from-PAM360>>",
	"orgName"   : "<<org display name>>"
}

ParameterDescriptionValues

AUTHTOKEN

Authentication token for the user to authorize the API request.
Type : String
Mandatory : Yes

Default Value : N/A

orgName

Organization name available in PAM360.
Type : String
Mandatory : No

Default Value : The organization to which the user belongs.

Sample Request

cURLPythonPowerShell
curl -X PUT -H "AUTHTOKEN: <<Authtoken-generated-from-PAM360>>" -H "Content-Type: application/x-www-form-urlencoded" "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/user/regenerateAuthtoken"
import requests

# API endpoint
url = "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/user/regenerateAuthtoken"

# Headers
headers = {
    "AUTHTOKEN": "<<Authtoken-generated-from-PAM360>>",
    "Content-Type": "application/x-www-form-urlencoded"
}

# PUT request with no body (form-encoded header only)
response = requests.put(
    url,
    headers=headers,
    verify=True
)

# Print response
print(response.text)
# API endpoint
$Url = "https://<Host-Name or IP-Address-of-PAM360-Server>:<Port>/restapi/json/v1/user/regenerateAuthtoken"

# Headers
$Headers = @{
    "AUTHTOKEN"   = "<<Authtoken-generated-from-PAM360>>"
    "Content-Type" = "application/x-www-form-urlencoded"
}

# Send PUT request
$response = Invoke-RestMethod `
    -Uri $Url `
    -Headers $Headers `
    -Method Put `
# Show response
$response | ConvertTo-Json -Depth 5

Sample Response

{
  "operation": {
    "result": {
      "message": "Authtoken regenerated successfully.",
      "status": "true",
      "statusCode": 20000
    },
    "Details": {
      "AUTHTOKEN": "<<Authtoken-generated-from-PAM360>>"
    },
    "name": "REGENERATE_AUTHTOKEN"
  }
}



Top