---
updatedAt: 2026-07-02T14:47:16.000Z
---

# Update PAM Integration

Updates an existing PAM integration. Only provided fields will be updated

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "x-explorer-enabled": false,
  "info": {
    "title": "Site API (Legacy)",
    "license": {
      "name": "(c) Copyright 2021 WhiteHat Security"
    },
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sentinel.whitehatsec.com"
    }
  ],
  "paths": {
    "/api/pam_integration/{id}": {
      "put": {
        "description": "Updates an existing PAM integration. Only provided fields will be updated",
        "operationId": "updatePAMIntegration",
        "parameters": [
          {
            "description": "PAM integration ID",
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 1
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "name": "Updated Vault Server",
                "pam_endpoint": "https://vault-new.acme.com:8200"
              },
              "schema": {
                "$ref": "#/components/schemas/UpdatePAMIntegrationRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "PAM integration updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PAMIntegration"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request - Invalid fields",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BadRequestError"
                },
                "examples": {
                  "empty_field": {
                    "summary": "Empty field value",
                    "value": {
                      "error": "Name cannot be empty",
                      "status": 400
                    }
                  },
                  "invalid_format": {
                    "summary": "Invalid field format",
                    "value": {
                      "error": "Invalid endpoint URL format",
                      "status": 400
                    }
                  },
                  "invalid_field": {
                    "summary": "Invalid field for method",
                    "value": {
                      "error": "Field 'identifier' is not allowed for token authentication method",
                      "status": 400
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden - Access denied",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ForbiddenError"
                }
              }
            }
          },
          "404": {
            "description": "Not Found - PAM integration not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NotFoundError"
                }
              }
            }
          },
          "409": {
            "description": "Conflict - Name already exists for this client",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConflictError"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternalServerError"
                }
              }
            }
          }
        },
        "summary": "Update PAM Integration",
        "tags": [
          "PAM Integration API v1.0"
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "required": [
          "error",
          "status"
        ],
        "properties": {
          "error": {
            "type": "string",
            "description": "Error message describing what went wrong"
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code"
          }
        }
      },
      "BadRequestError": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "example": {
              "error": "Missing or empty required field: name",
              "status": 400
            }
          }
        ]
      },
      "ForbiddenError": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "example": {
              "error": "Access denied",
              "status": 403
            }
          }
        ]
      },
      "NotFoundError": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "example": {
              "error": "PAM integration not found for ID 1",
              "status": 404
            }
          }
        ]
      },
      "ConflictError": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "example": {
              "error": "PAM credentials with name 'Production Vault' already exists for this client",
              "status": 409
            }
          }
        ]
      },
      "InternalServerError": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "type": "object",
            "example": {
              "error": "Internal server error",
              "status": 500
            }
          }
        ]
      },
      "PAMIntegration": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 453
          },
          "name": {
            "type": "string",
            "example": "Staging Boundary API"
          },
          "pam_endpoint": {
            "type": "string",
            "example": "https://boundary.staging.acme.com:9200"
          },
          "pam_authentication_method": {
            "type": "string",
            "enum": [
              "token",
              "credentials",
              "app_role"
            ],
            "example": "token"
          },
          "pam_authentication_method_id": {
            "type": "string",
            "nullable": true,
            "description": "Auth method ID. Present for credentials, null otherwise",
            "example": null
          },
          "namespace": {
            "type": "string",
            "nullable": true,
            "description": "Namespace path. Present for app_role, null otherwise",
            "example": null
          },
          "organization": {
            "type": "string",
            "example": "Acme Corporation"
          },
          "client_id": {
            "type": "integer",
            "example": 789
          },
          "pam_auth_type": {
            "type": "string",
            "enum": [
              "Boundary",
              "Vault"
            ],
            "example": "Boundary"
          },
          "pam_auth_type_id": {
            "type": "integer",
            "description": "2 for Boundary, 3 for Vault",
            "example": 2
          },
          "identifier_secret": {
            "type": "string",
            "nullable": true,
            "description": "Always null in responses",
            "example": null
          },
          "identifier": {
            "type": "string",
            "nullable": true,
            "description": "Username (credentials), role ID (app_role), or null (token)",
            "example": null
          }
        }
      },
      "UpdatePAMIntegrationRequest": {
        "type": "object",
        "description": "All fields optional. Only provided fields are updated.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Updated name (must remain unique per client)",
            "example": "Updated Staging Boundary"
          },
          "pam_endpoint": {
            "type": "string",
            "format": "uri",
            "description": "Updated endpoint URL",
            "example": "https://boundary-new.acme.com:9200"
          },
          "pam_auth_type": {
            "type": "string",
            "enum": [
              "Boundary",
              "Vault"
            ],
            "description": "Updated PAM system type",
            "example": "Boundary"
          },
          "pam_authentication_method": {
            "type": "string",
            "enum": [
              "token",
              "credentials",
              "app_role"
            ],
            "description": "Updated authentication method. When changing methods, provide required fields for the new method:\n- **token**: none\n- **credentials**: identifier, pam_authentication_method_id\n- **app_role**: identifier, namespace\n",
            "example": "token"
          },
          "identifier_secret": {
            "type": "string",
            "description": "Updated token, password, or secret ID",
            "example": "at_NewToken987654321..."
          },
          "identifier": {
            "type": "string",
            "description": "Updated username (credentials) or role ID (app_role)",
            "example": "new-username@acme.com"
          },
          "pam_authentication_method_id": {
            "type": "string",
            "description": "Updated auth method ID (credentials only)",
            "example": "ampw_newid12345"
          },
          "namespace": {
            "type": "string",
            "description": "Updated namespace (app_role only)",
            "example": "admin/staging"
          }
        }
      }
    }
  }
}
```