Update a Security 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
-
The ID of the project
Format should match the following pattern:
^[a-z0-9]{32}$
.
Body Required
The patched Security project
-
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})?$
. -
admin_features_package string | null
admin features package (BYOK, BYOIDP, CCS, CCR). It can be passed as
null
to reset the admin features package to the default value.Values are
standard
orenterprise
. -
product_types array[object] | null
At least
1
but not more than3
elements. -
search_lake object | null
Configuration for the entire set of capabilities that make the data searchable in Security.
Additional properties are allowed.
curl \
-X PATCH https://api.elastic-cloud.com/api/v1/serverless/projects/security/{id} \
-H "Content-Type: application/json" \
-H "If-Match: string" \
-d '{"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": "2024-05-04T09:42:00+00:00",
"created_by": "1014289666002276",
"organization_id": "198583657190",
"suspended_at": "2024-05-04T09:42:00+00:00",
"suspended_reason": "trial expired"
},
"cloud_id": "my_project:LmF3cy5lbGFzdG",
"type": "security",
"endpoints": {
"elasticsearch": "string",
"kibana": "string"
},
"search_lake": {
"data_retention": {
"max_retention_days": 42,
"default_retention_days": 42
}
},
"admin_features_package": "standard",
"product_types": [
{
"product_line": "security",
"product_tier": "complete"
}
]
}
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}