# Classic Environment API with Platform Token

**URL:** <https://community.dynatrace.com/t/classic-environment-api-with-platform-token/55231>\
**Category:** Dynatrace Tips\
**Tags:** settings, dynatrace-api, tokens\
**Created:** [March 10, 2026, 10:14pm UTC](https://community.dynatrace.com/t/classic-environment-api-with-platform-token/55231 "2026-03-10T22:14:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [March 10, 2026, 10:14pm UTC](https://community.dynatrace.com/t/classic-environment-api-with-platform-token/55231/1 "2026-03-10T22:14:26Z")

</div>

You can also use Dynatrace platform tokens[1] against classic endpoints such as Settings Objects[2].

Give your platform token the permission to access the specific account and environment and at least following scopes:

- settings:objects:read

- settings:objects:write

And call the API like this e.g.:

```javascript
curl -X POST "https://{environmentid}.apps.dynatrace.com/platform/classic/environment-api/v2/settings/objects" \                                                                                                                
-H "Authorization: Bearer dt0s16.L4ULG7YU.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \                                                                                                                   
-H "Content-Type: application/json" \                                                                                                                                                                                             
-d '[                                                                                                                                                                                                                           
    {                                                                                                                                                                                                                               
    "schemaId": "builtin:alerting.maintenance-window",
    "scope": "environment",
    "value": {
        "enabled": false,
        "generalProperties": {
        "name": "Scheduled maintenance window",
        "description": "Created via API",
        "maintenanceType": "PLANNED",
        "suppression": "DETECT_PROBLEMS_DONT_ALERT",
        "disableSyntheticMonitorExecution": false
        },
        "schedule": {
        "scheduleType": "ONCE",
        "onceRecurrence": {
            "startTime": "2026-03-10T12:00:00",
            "endTime": "2026-03-10T13:00:00",
            "timeZone": "UTC"
        }
        }
    }
    }
]'

```

[[1]https://docs.dynatrace.com/docs/shortlink/platform-tokens](https://docs.dynatrace.com/docs/shortlink/platform-tokens)[[2]https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings/objects/post-object](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/settings/objects/post-object)
