Transfers ownership of the specified settings object. Only the current owner or a user with the settings:objects:admin permission (globally or for the relevant schema) can transfer ownership. The previous owner loses access after the transfer unless they are explicitly listed as an accessor on the object.
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.
| POST | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/v2/settings/objects/{objectId}:transfer-ownership |
| POST | Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/v2/settings/objects/{objectId}:transfer-ownership |
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| objectId | string | The ID of the required settings object. | path | Required |
| adminAccess | boolean | 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 | query | Optional |
| body | Transfer | The JSON body of the request. | body | Optional |
TransferOwnershipRequest objectThe request to change ownership of an object.
| Element | Type | Description | Required |
|---|---|---|---|
| newOwner | Identity | An Identity describing either a user, a group, or the all-users group (applying to all users). | Optional |
Identity objectAn Identity describing either a user, a group, or the all-users group (applying to all users).
| Element | Type | Description | Required |
|---|---|---|---|
| id | string | The user id or user group id if type is 'user' or 'group', missing if type is 'all-users'. | Optional |
| type | string | The type of the identity. The element can hold these values
| Required |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"newOwner": {"id": "string","type": "user"}}
| Code | Type | Description |
|---|---|---|
| 204 | - | Success. Response doesn't have a body. |
| 400 | Error | Failed. The input is invalid. |
| 403 | Error | Failed. Forbidden. |
| 404 | Error | No object available for the given objectId. |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
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,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}