Reset the project 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
-
The ID of the project
Format should match the following pattern:
^[a-z0-9]{32}$
.
POST /api/v1/serverless/projects/observability/{id}/_reset-credentials
curl \
-X POST https://api.elastic-cloud.com/api/v1/serverless/projects/observability/{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"
}
]
}
Response examples (409)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}