Validate a new Extension 2.0 in Dynatrace with the Extensions API and check it for errors without saving any changes.
| POST | SaaS | https://{your-environment-id}.apps.dynatrace.com/platform/extensions/v2/extensions:validate |
You validate a new Extension 2.0 with the request body. The operation performs the same checks as upload, but it does not persist changes and returns 204 with no body.
To execute this request, you need a platform token or OAuth access token with extensions:definitions:write scope. To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| body | string | Extension 2.0 zip file to upload. | body | Required |
RequestBody object| Code | Type | Description |
|---|---|---|
| 204 | - | Success. Response doesn't have a body. |
| 4XX | Error | Client error. |
| 5XX | Error | Server error. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code. |
| details | Error | The error details. |
| message | string | The error message. |
ErrorDetails objectThe error details.
| Element | Type | Description |
|---|---|---|
| constraintViolations | Constraint | A list of constraint violations. |
ConstraintViolation objectA list of constraint violations.
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"error": {"code": 1,"details": {"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}]},"message": "string"}}