• Home
  • Dynatrace API
  • Environment
  • Hub items
  • POST update an extension 2.0

Hub capabilities API - POST update an extension 2.0

Updates an extension 2.0 to the specified version. If no version is specified, the recommended version is used.

The request produces an application/json payload.

POSTManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/api/v2/hub/extensions2/{extensionName}/actions/update
SaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/hub/extensions2/{extensionName}/actions/update
Environment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/api/v2/hub/extensions2/{extensionName}/actions/update

Authentication

To execute this request, you need an access token with hub.write scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
extensionNamestring

Fully qualified name of the extension

pathrequired
extensionVersionstring

Version of the extension. Fallback to the evaluated recommended version when the version is not provided

queryoptional

Response

Response codes

CodeTypeDescription
200RegisteredExtensionResultDto

OK

400ErrorEnvelope

Bad request

404ErrorEnvelope

Not found

503ErrorEnvelope

Unavailable

Response body objects

The RegisteredExtensionResultDto object

ElementTypeDescription
extensionVersionstring

Version number of the extension.

extensionNamestring

FQN of the extension registered in the tenant.

Response body JSON model

json
{ "extensionVersion": "string", "extensionName": "string" }