Settings API - DELETE an object
Updates the specified settings object. Deletion cannot be undone!
DELETE | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/settings/objects/{objectId} |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/settings/objects/{objectId} | |
Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/v2/settings/objects/{objectId} |
Authentication
To execute this request, you need an access token with settings.write
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
objectId | string | The ID of the required settings object. | path | required |
updateToken | string | The update token of the object. You can use it to detect simultaneous modifications by different users. It is generated upon retrieval (GET requests). If set on update (PUT request) or deletion, the update/deletion will be allowed only if there wasn't any change between the retrieval and the update. If omitted on update/deletion, the operation overrides the current value or deletes it without any checks. | query | optional |
Response
Response codes
Code | Type | Description |
---|---|---|
204 | Success. Response doesn't have a body. | |
400 | SettingsObjectResponse | Failed. Schema validation failed. |
403 | ErrorEnvelope | Failed. Forbidden. |
404 | SettingsObjectResponse | Failed. The requested resource doesn't exist. |
409 | SettingsObjectResponse | Failed. Conflicting resource. |