Try it free

Create a settings object

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Create a settings object in Dynatrace with the App Settings API, validating or saving schemaId, value, and insertAfter data.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/v2/objects

Overview

You create a new settings object by sending the schemaId, value, and optional insertAfter fields in the request body. If you set validate-only to true, Dynatrace runs validation only and returns success when no validation errors occur.

Authentication

To execute this request, you need a platform token or OAuth access token with app-settings:objects:write scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
validate-onlyboolean

If true, the request runs only validation of the submitted settings objects, without saving them.

queryOptional
bodyAppSettingsObjectCreate

The JSON body of the request. Contains the settings object.

bodyRequired

Request body objects

The AppSettingsObjectCreate object

Configuration of a new settings object.

ElementTypeDescriptionRequired
schemaIdstring

The schema on which the object is based.

Required
valueAppSettingsValue

The value of the setting.

It defines the actual values of settings' parameters.

The actual content depends on the object's schema.

Required
insertAfterstring

The position of the new object. The new object will be added after the specified one.

If null, the new object will be placed in the last position.

If set to empty string, the new object will be placed in the first position.

Only applicable for objects based on schemas with ordered objects (schema's ordered parameter is set to true).

Optional

The AppSettingsValue object

The value of the setting.

It defines the actual values of settings' parameters.

The actual content depends on the object's schema.

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"schemaId": "jira-connection",
"value": {
"autoMonitoring": true
},
"insertAfter": "Y2ktaGdyb3VwLTEyMythZjhjOThlOS0wN2I0LTMyMGEtOTQzNi02NTEyMmVlNWY4NGQ="
}

Response

Response codes

CodeTypeDescription
200-

Success. No validation errors.

201AppSettingsObjectResponse

Created

400ErrorResponse

Failed. The input is invalid.

403ErrorResponse

Failed. Forbidden.

404ErrorResponse

Failed. The requested resource doesn't exist.

409--
429--
503--
4XX--
5XX--

Response body objects

The ErrorResponse object

ElementTypeDescription
errorError

Standard error response

The Error object

Standard error response

ElementTypeDescription
codenumber

The error code (HTTP response)

messagestring

The error message

retryAfterSecondsnumber

Number of seconds a request can be retried after a 'too many requests' error response.

detailsErrorDetails

Optional details of the error

The ErrorDetails object

Optional details of the error

ElementTypeDescription
errorRefstring

reference to the error occurrence in the internal self-monitoring, logging, etc.

constraintViolationsConstraintViolation[]

A list of constraint violations of input parameters (path, query, request body)

missingScopesstring[]

In case of a 403 - Forbidden response, a list of missing scopes necessary to successfully execute the request

The ConstraintViolation object

Contains information about a constraint violation caused by invalid input.

ElementTypeDescription
pathstring

The path of the parameter that caused the constraint violation

messagestring

The constraint violation description message

parameterLocationstring

Describes the general location of the violating parameter

The element can hold these values
  • PATH
  • QUERY
  • HEADER
  • PAYLOAD_BODY

Response body JSON models

{
"error": {
"code": 1,
"message": "string",
"retryAfterSeconds": 1,
"details": {
"errorRef": "string",
"constraintViolations": [
{
"path": "string",
"message": "string",
"parameterLocation": "PATH"
}
],
"missingScopes": [
"string"
]
}
}
}
Related tags
Platform APIDynatrace Platform