Update an Observability 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 Observability 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})?$
.
PATCH
/api/v1/serverless/projects/observability/{id}
curl \
-X PATCH https://api.elastic-cloud.com/api/v1/serverless/projects/observability/{id} \
-H "Content-Type: application/json" \
-H "If-Match: string" \
-d '{"name":"Example project"}'
Request example
{
"name": "Example project"
}
Response examples (200)
# 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": "observability",
"endpoints": {
"elasticsearch": "string",
"kibana": "string",
"apm": "string",
"ingest": "string"
}
}
Response examples (404)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}
Response examples (409)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}
Response examples (412)
{
"errors": [
{
"message": "Explicative error message",
"code": "code.error"
}
]
}