'The document is invalid' for Postman Collection Export - API Service

Hi Everyone,

I was trying to export a collection from postman and use that as input under service in a UiPath Library:

It tells me that the document is invalid. I understand that we can use the API Key, but I really wanted to try importing the swagger instead of this because its much more convinient for my organization.

Is there a way to get a compatible export from postman?
Thanks in advance!

Kind Regards,
Ashwin A.K

@ashwin.ashok

postman collection export is not same as swagger…

you can convert your postman collection to swagger and use if you want to try that

cheers

Hi @ashwin.ashok

Try replacing the top section of your .json-file with the snippet below.
I have experienced that the Service Editor is unable to load certain layouts, if the provider is someone else than Swagger.

"swagger": "2.0",
  "info": {
    "description": "Api Documentation",
    "version": "release",
    "title": "Api Documentation",
    "termsOfService": "urn:tos",
    "contact": {},
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0"
    }
  }

Regards
Soren