Try it free

Settings API - PUT accessor permission

  • Reference
  • Published Jul 09, 2026

Updates the permissions for the specified accessor on the specified settings object. Any user with read/write permissions on the object can update permissions. The accessor ID must be a user or group UUID; use the User management API or Group management API to look up these identifiers.

This endpoint applies only to objects on schemas with owner-based access control enabled (ownerBasedAccessControl: true). To identify such schemas, include ownerBasedAccessControl in the add-fields parameter when calling List schemas.

The request consumes and produces an application/json payload.

PUTManagedDynatrace for Governmenthttps://{your-domain}/e/{your-environment-id}/v2/settings/objects/{objectId}/permissions/{accessorType}/{accessorId}
PUTEnvironment ActiveGatehttps://{your-activegate-domain}/e/{your-environment-id}/v2/settings/objects/{objectId}/permissions/{accessorType}/{accessorId}

Parameters

ParameterTypeDescriptionInRequired
objectIdstring

The ID of the required settings object.

pathRequired
accessorTypestring

The type of the accessor.

The element can hold these values
  • group
  • user
pathRequired
accessorIdstring

The user uuid or group uuid of the accessor, depending on the type.

pathRequired
adminAccessboolean

If set to true and user has settings:objects:admin permission, the endpoint will act as if the user is the owner of all objects

queryOptional
bodyUpdatePermissionsRequest

The JSON body of the request.

bodyOptional

Request body objects

The UpdatePermissionsRequest object

The request to update the permissions of a specific accessor.

ElementTypeDescriptionRequired
permissionsstring[]

r = read, w = write

The element can hold these values
  • r
  • w
Required

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.

{
"permissions": [
"r"
]
}

Response

Response codes

CodeTypeDescription
200-

Success

400ErrorEnvelope

If permission list is empty, contains unsupported entries or unsupported combinations of entries.

404ErrorEnvelope

No object available for the given objectId or the accessor doesn't have any permissions on this object.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}