# How to add a property to existing class definition with default value?

**URL:** <https://forum.weaviate.io/t/how-to-add-a-property-to-existing-class-definition-with-default-value/535>\
**Category:** General\
**Created:** [August 14, 2023, 12:55pm UTC](https://forum.weaviate.io/t/how-to-add-a-property-to-existing-class-definition-with-default-value/535 "2023-08-14T12:55:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![junbetterway](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/junbetterway/32/174_2.png) [@junbetterway](https://forum.weaviate.io/u/junbetterway)\
**Post date:** [August 14, 2023, 12:55pm UTC](https://forum.weaviate.io/t/how-to-add-a-property-to-existing-class-definition-with-default-value/535/1 "2023-08-14T12:55:51Z")

</div>

The documentation on how to update an existing class to **add a new property** is clear in Weaviate documentation: [REST - /v1/schema | Weaviate - vector database](https://weaviate.io/developers/weaviate/api/rest/schema#add-a-property)

However, what if I wanted to **add a property** with a default value and make this skipped for vectorization. We will just use this property for extra filtering purposes. For example, I wanted to add a new property “status” with default value of “PUBLIC” - is this possible?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [August 16, 2023, 7:28pm UTC](https://forum.weaviate.io/t/how-to-add-a-property-to-existing-class-definition-with-default-value/535/2 "2023-08-16T19:28:06Z")

</div>

Hi!

Short answer is no ☹ Or better, not **yet** 🙃

While you can use the [skip parameter](https://weaviate.io/developers/weaviate/api/rest/schema#parameters-2) to avoid vectorization, there is no option to add a default value for this new property as of now.

Please, feel free to open a [Github issue](https://github.com/weaviate/weaviate/issues/new) regarding this and/or join us at [our slack](https://weaviate.io/slack) so we can discuss it further.

Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![kokogrr](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/kokogrr/32/435_2.png) [@kokogrr](https://forum.weaviate.io/u/kokogrr)\
**Post date:** [October 13, 2023, 11:32am UTC](https://forum.weaviate.io/t/how-to-add-a-property-to-existing-class-definition-with-default-value/535/3 "2023-10-13T11:32:31Z")

</div>

As a workaround can I add property to the schema (with skip vectorisation) and then update all records of the class with the default value or is there any better solution?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [October 13, 2023, 12:45pm UTC](https://forum.weaviate.io/t/how-to-add-a-property-to-existing-class-definition-with-default-value/535/4 "2023-10-13T12:45:57Z")

</div>

Hi @kokogrr I believe that’s the best solution. In order to read all objects, you can leverage the [Cursor API](https://github.com/RocketChat/Rocket.Chat.Artwork)
