# Is it possible to create model through the API?

**URL:** <https://discourse.getcockpit.com/t/is-it-possible-to-create-model-through-the-api/3152>\
**Category:** Support\
**Created:** [March 7, 2025, 7:35pm UTC](https://discourse.getcockpit.com/t/is-it-possible-to-create-model-through-the-api/3152 "2025-03-07T19:35:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjoerd222888](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/sjoerd222888/32/1371_2.png) [@sjoerd222888](https://discourse.getcockpit.com/u/sjoerd222888)\
**Post date:** [March 7, 2025, 7:35pm UTC](https://discourse.getcockpit.com/t/is-it-possible-to-create-model-through-the-api/3152/1 "2025-03-07T19:35:02Z")

</div>

I found old posts that state it would be possible to create models?  
Here: [Create new collection over API](https://discourse.getcockpit.com/t/create-new-collection-over-api/2037)

But I could not get it working. The docs don’t state anything about an API to create models.

---

<div class="post-metadata">

**Author:** ![sjoerd222888](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/sjoerd222888/32/1371_2.png) [@sjoerd222888](https://discourse.getcockpit.com/u/sjoerd222888)\
**Post date:** [March 7, 2025, 7:39pm UTC](https://discourse.getcockpit.com/t/is-it-possible-to-create-model-through-the-api/3152/2 "2025-03-07T19:39:36Z")

</div>

The request will return status 200.  
But seems you can send any random request like /api/collections/asdsadasd would return status 200.
