# Alerting Profile POST: "No scope generator registered" error

**URL:** <https://community.dynatrace.com/t/alerting-profile-post-no-scope-generator-registered-error/38188>\
**Category:** Alerting\
**Tags:** problems-classic, dynatrace-api\
**Created:** [January 29, 2023, 1:33pm UTC](https://community.dynatrace.com/t/alerting-profile-post-no-scope-generator-registered-error/38188 "2023-01-29T13:33:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorry](https://avatars.discourse-cdn.com/v4/letter/l/ac8455/32.png) [@lorry](https://community.dynatrace.com/u/lorry)\
**Post date:** [January 29, 2023, 1:33pm UTC](https://community.dynatrace.com/t/alerting-profile-post-no-scope-generator-registered-error/38188/1 "2023-01-29T13:33:53Z")

</div>

While creating an Alerting profile, getting the below error:

```auto
No scope generator registered

```

Document Followed: [Settings API - POST an object — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/settings/objects/post-object)

Request:

```markup
curl -X POST "https://REDACTED/api/v2/settings/objects?validateOnly=false" -H "accept: application/json; charset=utf-8" -H "Authorization: Api-Token xxxxx" -H "Content-Type: application/json; charset=utf-8" -d "[{\"schemaId\":\"builtin:alerting.profile\",\"value\":{\"name\":\"De\",\"severityRules\":[{\"severityLevel\":\"AVAILABILITY\",\"delayInMinutes\":0,\"tagFilterIncludeMode\":\"NONE\"},{\"severityLevel\":\"ERRORS\",\"delayInMinutes\":0,\"tagFilterIncludeMode\":\"NONE\"},{\"severityLevel\":\"MONITORING_UNAVAILABLE\",\"delayInMinutes\":0,\"tagFilterIncludeMode\":\"NONE\"}],\"eventFilters\":[]}}]"

```

Response:

```markup
"error": {
      "code": 404,
      "message": "No scope generator registered for schema builtin:alerting.profile"
    }

```

Not sure what is missed, Need someone attention

---

<div class="post-metadata">

**Author:** ![Fin\_Ubels](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/fin_ubels/32/18008_2.png) [@Fin\_Ubels](https://community.dynatrace.com/u/Fin_Ubels)\
**Post date:** [January 29, 2023, 8:45pm UTC](https://community.dynatrace.com/t/alerting-profile-post-no-scope-generator-registered-error/38188/2 "2023-01-29T20:45:03Z")

</div>

Hey lorry,  
Unfortunately the documentation on this doesn’t explain very well but for environment wide settings it should still require a scope. It would be “scope”:“environment”.  
Heres another forum post with a similar problem&nbsp;[Solved: Trying to create Metric Event via APIv2 but get “No scope generator registered” - Dynatrace Community](https://community.dynatrace.com/topic/198233)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Ana.Kuzmenchuk](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@Ana.Kuzmenchuk](https://community.dynatrace.com/u/Ana.Kuzmenchuk)\
**Post date:** [February 8, 2023, 12:36pm UTC](https://community.dynatrace.com/t/alerting-profile-post-no-scope-generator-registered-error/38188/3 "2023-02-08T12:36:34Z")

</div>

Hey&nbsp;[@lorry](https://community.dynatrace.com/user/59087), were you able to solve your problem? Was the comment above helpful?
