---
title: "Enable Opensearch Security Admin by setting the password"
method: POST
path: "/project/{project}/service/{service_name}/opensearch/security/admin"
tags: ["Service:_OpenSearch"]
---

# Enable Opensearch Security Admin by setting the password

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

## Path parameters

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

## Request body

- ServiceOpenSearchSecuritySetRequestBody — ServiceOpenSearchSecuritySetRequestBody
  - `admin_password` string, required — os-sec-admin password

## Response `200`

Response

- ServiceOpenSearchSecuritySetResponse — ServiceOpenSearchSecuritySetResponse
  - `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)
