# Resetting old version of a schema to 'latest'

**URL:** <https://forum.confluent.io/t/resetting-old-version-of-a-schema-to-latest/2958>\
**Category:** Schema Registry\
**Created:** [1 October 2021 09:43 UTC](https://forum.confluent.io/t/resetting-old-version-of-a-schema-to-latest/2958 "2021-10-01T09:43:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmizzi](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@rmizzi](https://forum.confluent.io/u/rmizzi)\
**Post date:** [1 October 2021 09:43 UTC](https://forum.confluent.io/t/resetting-old-version-of-a-schema-to-latest/2958/1 "2021-10-01T09:43:35Z")

</div>

We have come across a situation where we had a schema definition that got updated over time so we had versions [1, 2]. After some time it was decided to revert to the original schema definition.

When I repost the new schema definition (using the api) it does not create a new version which is acceptable since this is identical to version[1]. Yet, getting the latest version of the schema using the api call https://{{avro\_uri}}/subjects/\<subject\_name\>/versions/latest does not return the expected definition but is returning version[2]

Using the api is there any way of specifying that the latest is now [1] ?

---

<div class="post-metadata">

**Author:** ![gklijs](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/gklijs/32/223_2.png) [@gklijs](https://forum.confluent.io/u/gklijs)\
**Post date:** [1 October 2021 13:11 UTC](https://forum.confluent.io/t/resetting-old-version-of-a-schema-to-latest/2958/2 "2021-10-01T13:11:03Z")

</div>

I think the only work around is to remove the first one, than it will be added as `3` after. Another option would be to do an arbitrary change to the schema, I think you should also get a new version in that case, but I’m not sure. For example add some space or documentation.

---

<div class="post-metadata">

**Author:** ![rmizzi](https://avatars.discourse-cdn.com/v4/letter/r/977dab/32.png) [@rmizzi](https://forum.confluent.io/u/rmizzi)\
**Post date:** [4 October 2021 06:24 UTC](https://forum.confluent.io/t/resetting-old-version-of-a-schema-to-latest/2958/3 "2021-10-04T06:24:05Z")

</div>

Thank you for your reply – we can adopt the approach of doing an arbitary change to the schame as you suggest by adding a “doc” attribute with updated comments in the schema definition .
