# Define Authorization type from auto generated collection from openapi

**URL:** <https://community.postman.com/t/define-authorization-type-from-auto-generated-collection-from-openapi/16135>\
**Category:** Help Hub\
**Created:** [September 22, 2020, 7:30pm UTC](https://community.postman.com/t/define-authorization-type-from-auto-generated-collection-from-openapi/16135 "2020-09-22T19:30:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![syn-aphamx](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@syn-aphamx](https://community.postman.com/u/syn-aphamx)\
**Post date:** [September 22, 2020, 7:30pm UTC](https://community.postman.com/t/define-authorization-type-from-auto-generated-collection-from-openapi/16135/1 "2020-09-22T19:30:41Z")

</div>

Hello everyone,

I have an openapi file that autogenerates my collection. However the authorization defaults to “Inherit auth from parent” which it says it’s taken from my collection docs.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/a/0/a0f105402436758b6f1c1e8e292d33016b013fa1.png)

However, this is a problem because this x-api-key with value true supercedes my x-api-key in my docs.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/4/5467b5cd6eb770e5fd1dffa0d28f07149231f78d.png)

So my question is,

Is there a way to set in openapi so that the authorization is **No Auth** or **Api Key** like the following image.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/2/a/2ac27ee83fb05fa52ec4645bb1ada0914328095f.png)

Thank you in advance!
