# Revisions for key for schema are outdated

**URL:** <https://community.dynatrace.com/t/revisions-for-key-for-schema-are-outdated/47854>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, metric-events, dynatrace-api\
**Created:** [September 20, 2024, 10:07am UTC](https://community.dynatrace.com/t/revisions-for-key-for-schema-are-outdated/47854 "2024-09-20T10:07:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [September 20, 2024, 10:07am UTC](https://community.dynatrace.com/t/revisions-for-key-for-schema-are-outdated/47854/1 "2024-09-20T10:07:00Z")

</div>

Hi,

I am trying to update a metric event through the API, just to enable/disable it.

I initially succeeded to PUT the updated payload and got a 200. But after that, every attempt to modify it results in a 409 Conflict error with the following message:

Revisions: '\n ‘\<some ID\>’ for key ‘\<some other ID\>’ for ‘\<schemaid\>’ are outdated.

The only variable thing in my payload seems to be the update token, which I grabbed from the API tab on the metric event I wanted to modify, and this doesn’t seem to change, looks more like a unique identifier and not a nonce.

Has anyone encountered this in the past?

P.S. I face this on Managed, haven’t checked if it’s the same case on SaaS.

Regards,

George

---

<div class="post-metadata">

**Author:** ![Gosia\_Murawska](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@Gosia\_Murawska](https://community.dynatrace.com/u/Gosia_Murawska)\
**Post date:** [January 2, 2025, 3:33pm UTC](https://community.dynatrace.com/t/revisions-for-key-for-schema-are-outdated/47854/2 "2025-01-02T15:33:41Z")

</div>

Hi, [@g\_kat](https://community.dynatrace.com/user/34133)! Have you managed to find the answer to your question? It would be great if you share it with the Community 🙂

---

<div class="post-metadata">

**Author:** ![g\_kat](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/g_kat/32/34573_2.png) [@g\_kat](https://community.dynatrace.com/u/g_kat)\
**Post date:** [January 2, 2025, 4:21pm UTC](https://community.dynatrace.com/t/revisions-for-key-for-schema-are-outdated/47854/3 "2025-01-02T16:21:46Z")

</div>

Hi&nbsp;[@GosiaMurawska](https://community.dynatrace.com/user/77704)

I ended up automating the procedure with a Python script that invokes the API twice a day to enable/disable the metrics events and I haven’t faced this issue as long as it’s running(\>2 months).

I can only assume that when I did my initial tests I somehow created a corner case condition with my API calls, maybe due to rapid calls on the same schema?.

I never bothered to reproduce it since the script worked.

Thanks,

George
