---
title: "Edit a resource"
method: PUT
path: "/restapi/json/v1/resources/{resourceId}"
tags: ["Resources"]
---

# Edit a resource

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

## Request

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

JSON string with fields to update. **RESOURCENAME is required** even for partial updates.

This operation is used to edit the resource information in Manage Engine PAM360

## Path parameters

- `resourceId` integer, required

## Headers

- `orgName` string

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

- EditResourceInput
  - `INPUT_DATA` object: JSON object containing resource creation details
    - `operation` object
      - `Details` object
        - `RESOURCENAME` string, required: Name of the resource. **Required** even for partial updates.
        - `LOCATION` string: Location where the resource is hosted
        - `DNSNAME` string: DNS name or IP address of the resource
        - `DEPARTMENT` string: Department associated with the resource
        - `RESOURCEURL` string: URL to access the resource
        - `RESOURCETYPE` string: Type of the resource
        - `RESOURCEPASSWORDPOLICY` string: Password policy applied to the resource
        - `RESOURCEDESCRIPTION` string: Description of the resource
        - `RECORD_CONFIGURED_RESOURCE_URL` boolean: Enable recording of configured resource URL
        - `DISABLE_TAB_DUPLICATION` boolean: Prevent opening the same session in multiple browser tabs
        - `WEBSITE_SESSION_RECORDING` boolean: Enable recording for web sessions
        - `GATEWAY_SESSION_RECORDING` boolean: Enable recording for gateway-based sessions
        - `RESOURCECUSTOMFIELD` object[]: Custom fields for the resource
          - `CUSTOMLABEL` string: Label for the custom field
          - `CUSTOMVALUE` string: Value for the custom field

## Response `200`

Resource updated

- EditResourceResponse
  - `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)
