---
title: "Edit an account"
method: PUT
path: "/restapi/json/v1/resources/{resourceId}/accounts/{accountId}"
tags: ["Accounts"]
---

# Edit an account

`PUT /restapi/json/v1/resources/{resourceId}/accounts/{accountId}`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/resources/{resourceId}/accounts/{accountId}`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/resources/:resourceId/accounts/:accountId/put.ts> (a function with typed inputs; its response is checked against the schema)

Updates the account details for a given resource and account ID in PAM360.

## Path parameters

- `resourceId` integer, required
- `accountId` integer, required

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- EditAccountRequest
  - `INPUT_DATA` object, required: JSON object with `operation.Details` containing the account fields to update. **ACCOUNTNAME is required** even for partial updates.
    - `operation` object
      - `Details` object
        - `ACCOUNTNAME` string, required: Name of the account (required even for partial updates)
        - `ACCOUNTPASSWORDPOLICY` string: Password policy applied to the account
        - `ACCOUNTPASSWORDPOLICYID` integer: Password policy identifier number
        - `RECORD_RDP_SESSIONS` boolean: Enables recording of RDP sessions for this account
        - `RECORD_CLI_SESSIONS` boolean: Enables recording of CLI sessions for this account
        - `DISABLE_PASSWORD_RESETS` boolean: Prevents automatic password resets
        - `CONFIGURE_PASSWORD_RESET` boolean: Allows configuration of password reset for associated service accounts
        - `ACCOUNT_RESOURCE_GROUP_IDS` integer[]: List of resource group IDs to which the account belongs
        - `IIS_WEB_CONFIG_RESET` boolean: Enables IIS Web Config reset during password reset
        - `IIS_APP_POOL_RESTART` boolean: Restarts IIS Application Pool after password reset
        - `IIS_APP_POOL_RESET` boolean: Resets IIS Application Pool during password reset
        - `SERVICES_RESTART` boolean: Restarts associated services after password reset
        - `SERVICES_RESET` boolean: Resets associated services during password reset
        - `SCHEDULED_TASK_RESET` boolean: Resets scheduled tasks during password reset
        - `COMMAND_SET` integer: Command set ID associated with the account
        - `OWNERNAME` string: Name of the account owner
        - `TOTP_SECRET` string: Secret key for generating TOTP
        - `TOTP_ALGORITHM` string: Algorithm used for TOTP generation
        - `TOTP_DIGITS` string: Number of digits in TOTP
        - `TOTP_VALIDITY` string: TOTP validity period in seconds
        - `NOTES` string: Additional notes related to the account
        - `DOMAINNAME` string: Domain name associated with the account
        - `DESCRIPTION` string: Description of the account
        - `SAP_USER_TYPE` 'A' | 'B' | 'C' | 'S' | 'L': SAP account category (v8500+). Values: A (Dialog), B (System), C (Communication), S (Service), L (Reference)
        - `WEBSITE_SESSION_RECORDING` boolean: Enables website session recording
        - `GATEWAY_SESSION_RECORDING` boolean: Enables gateway session recording

## Response `200`

Account updated

- EditAccountResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
