---
title: "Change Opensearch Security Admin password"
method: PUT
path: "/project/{project}/service/{service_name}/opensearch/security/admin"
tags: ["Service:_OpenSearch"]
---

# Change Opensearch Security Admin password

`PUT /project/{project}/service/{service_name}/opensearch/security/admin`

## Path parameters

- `project` string, required
- `service_name` string, required

## Request body

- ServiceOpenSearchSecurityResetRequestBody — ServiceOpenSearchSecurityResetRequestBody
  - `admin_password` string, required — Current os-sec-admin password
  - `new_password` string, required — New os-sec-admin password

## Response `200`

Response

- ServiceOpenSearchSecurityResetResponse — ServiceOpenSearchSecurityResetResponse
  - `errors` object[] — List of errors occurred during request processing
    - `message` string, required — Printable error message
    - `more_info` string — URL to the documentation of the error
    - `status` integer, required — HTTP error status code
  - `message` string — Printable result of the request
  - `security_plugin_admin_enabled` boolean, required — security plugin admin defined
  - `security_plugin_available` boolean, required — Opensearch security available for the service
  - `security_plugin_enabled` boolean — Opensearch security enabled for the service

---

[API](https://skmtc.dev/aiven/apis/aiven-api-documentation.md) · [All operations](https://skmtc.dev/aiven/apis/aiven-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aiven/aiven-api-documentation/revisions/6577fedfd4a2/schema)
