Reset the project credentials

POST /api/v1/serverless/projects/elasticsearch/{id}/_reset-credentials

Retrieve new project credentials, invalidating the previous ones.

Headers

  • If-Match string

    ETag value fetched in a previous GET project request. Used to prevent simultaneous updates

Path parameters

  • id string Required

    The ID of the project

    Format should match the following pattern: ^[a-z0-9]{32}$.

Responses

  • 200 application/json

    The new project credentials.

    Hide headers attribute Show headers attribute
    Hide response attributes Show response attributes object

    Basic auth credentials to access the Elasticsearch API.

    • username string Required

      Basic auth username that can be used to access the Elasticsearch API.

    • password string Required

      Basic auth password that can be used to access the Elasticsearch API.

  • 404 application/json

    Not Found

    Hide response attribute Show response attribute object

    A non-empty list of errors.

    • errors array[object] Required
      Hide errors attributes Show errors attributes object

      An error response returned by the API.

      • message string Required

        A human-readable message of the error.

      • code string Required

        An identifier for this type of error.

POST /api/v1/serverless/projects/elasticsearch/{id}/_reset-credentials
curl \
 -X POST https://api.elastic-cloud.com/api/v1/serverless/projects/elasticsearch/{id}/_reset-credentials \
 -H "If-Match: string"
Response examples (200)
# Headers
ETag: string

# Payload
{
  "username": "admin",
  "password": "*****"
}
Response examples (404)
{
  "errors": [
    {
      "message": "Explicative error message",
      "code": "code.error"
    }
  ]
}