Update an Elasticsearch project
Only the fields included in the body of the request will be updated.
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}$
.
Body
Required
The Elasticsearch project patch body
-
name
string Descriptive name for a project.
Minimum length is
1
, maximum length is255
. -
alias
string A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
Minimum length is
1
, maximum length is50
. Format should match the following pattern:^[a-zA-Z]{1}(?:[a-zA-Z0-9-]*[a-zA-Z0-9]{1})?$
. -
search_lake
object | null Configuration for entire set of capabilities that make the data searchable in Elasticsearch. It can be passed as
null
to reset configuration to the default values.Additional properties are allowed.
curl \
--request PATCH 'https://api.elastic-cloud.com/api/v1/serverless/projects/elasticsearch/{id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--header "If-Match: string" \
--data '{"name":"Example project"}'
{
"name": "Example project"
}
# Headers
ETag: string
# Payload
{
"id": "string",
"name": "my project",
"alias": "my-project-alias",
"region_id": "aws-us-east-1",
"metadata": {
"created_at": "2025-05-04T09:42:00Z",
"created_by": "1014289666002276",
"organization_id": "198583657190",
"suspended_at": "2025-05-04T09:42:00Z",
"suspended_reason": "trial expired"
},
"cloud_id": "my_project:LmF3cy5lbGFzdG",
"type": "elasticsearch",
"optimized_for": "general_purpose",
"search_lake": {
"search_power": 100,
"boost_window": 100
},
"endpoints": {
"elasticsearch": "https://my-project-alias-df6c6d.es.us-east-1.aws.elastic.cloud",
"kibana": "https://my-project-alias-df6c6d.kb.us-east-1.aws.elastic.cloud"
}
}
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}