How to update graphgql api automaticaly from file

I have a graphql file which is regulary updated. In postman I went to API -> create new -> create from file to upload my graphql API. But API in postman won’t update if I change my graphql file, so every time I need to create new API and choose file again. Are there any ways to make it faster? Maybe some bash script for updating existing API?

Hey @birukov.aleksandr48 and welcome here! :smile:

You will soon be able to sync your API schema with a file on a github repository, see our roadmap for reference:

In the meantime, you can use the Postman cloud API to trigger an update of your API as soon as your file is updated, see our api docs here:
https://docs.api.getpostman.com/?version=latest#853d9f97-c9fa-418c-924a-4bc739a55038

1 Like