# Create Collection on API level

**URL:** <https://community.postman.com/t/create-collection-on-api-level/43400>\
**Category:** Help Hub\
**Created:** [January 31, 2023, 12:20pm UTC](https://community.postman.com/t/create-collection-on-api-level/43400 "2023-01-31T12:20:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilde-it-partenfelde](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/wilde-it-partenfelde/32/14637_2.png) [@wilde-it-partenfelde](https://community.postman.com/u/wilde-it-partenfelde)\
**Post date:** [January 31, 2023, 12:20pm UTC](https://community.postman.com/t/create-collection-on-api-level/43400/1 "2023-01-31T12:20:10Z")

</div>

I am able to create a collection with the postman public API using the following endpoint:

```auto
POST https://api.getpostman.com/collections

```

In the Postman UI, there is the possibility to create a new collection for an API:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/d/5d58ed60b6e9bb069747df69a6ad9fcbb7f0f0fd.png)  
How can I accomplish this using the Postman API?  
I would imagine that there is supposed to be an endpoint like

```auto
POST https://api.getpostman.com/api/{{apiId}}/collections

```

Thanks

Max

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [January 31, 2023, 5:18pm UTC](https://community.postman.com/t/create-collection-on-api-level/43400/2 "2023-01-31T17:18:46Z")

</div>

Hey @wilde-it-partenfelde 👋

I mentioned this in the SO post you created but I think this is what you’re looking for:

[https://www.postman.com/postman/workspace/postman-public-workspace/request/12959542-aab6039a-c565-4c18-b94c-b80381e303ca](https://www.postman.com/postman/workspace/postman-public-workspace/request/12959542-aab6039a-c565-4c18-b94c-b80381e303ca)

---

<div class="post-metadata">

**Author:** ![wilde-it-partenfelde](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/wilde-it-partenfelde/32/14637_2.png) [@wilde-it-partenfelde](https://community.postman.com/u/wilde-it-partenfelde)\
**Post date:** [January 31, 2023, 5:29pm UTC](https://community.postman.com/t/create-collection-on-api-level/43400/3 "2023-01-31T17:29:38Z")

</div>

Hi @danny-dainton,  
Thanks for your reply!  
Unfortunately, the request is labeled as “deprecated”…  
How would I attach a collection to an API? Is that handled with `/relations` ?  
Thanks
