Path parameters
-
Id of an extension
Body Required
The extension update data.
-
The extension name.
-
description string
The extension description.
-
download_url string
The URL to download the extension archive.
-
The extension type.
Values are
plugin
orbundle
. -
The Elasticsearch version.
Responses
-
Extension updated successfully.
-
Could not download the extension from the specified URL. (code:
extensions.request_execution_failed
) -
- The extension does not belong to you. (code:
extensions.unauthorised
) - Your current session does not have a user id associated with it. (code:
extensions.no_user_id
)
- The extension does not belong to you. (code:
-
The extension you want does not exist. (code:
extensions.not_found
) -
The version you sent does not match the persisted version. (code:
extensions.version_conflict
)
POST
/deployments/extensions/{extension_id}
curl \
-X POST https://api.elastic-cloud.com/api/v1/deployments/extensions/{extension_id} \
-d '{"name":"string","description":"string","download_url":"string","extension_type":"plugin","version":"string"}'
Request examples
{
"name": "string",
"description": "string",
"download_url": "string",
"extension_type": "plugin",
"version": "string"
}
Response examples (200)
# Headers
x-cloud-resource-version: string
x-cloud-resource-created: string
x-cloud-resource-last-modified: string
# Payload
{
"id": "string",
"name": "string",
"description": "string",
"url": "string",
"download_url": "string",
"extension_type": "plugin",
"version": "string",
"deployments": [
"string"
],
"file_metadata": {
"last_modified_date": "2024-05-04T09:42:00+00:00",
"size": 42,
"url": "https://example.com"
}
}
Response examples (400)
# Headers
x-cloud-error-codes: extensions.request_execution_failed
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (401)
# Headers
x-cloud-error-codes: extensions.unauthorised
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: extensions.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (409)
# Headers
x-cloud-error-codes: extensions.version_conflict
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}