Object

FileBasedApiDefinitionInput

The file that contains the API definition.

Fields

filename(): String!
The filename of the file where the API definitions are listed.
contents(): String
The API definition file contents. Required to add a file. Omit to keep the file the site has, for example to change only its environment.
environment_filename(): String
The filename of the Postman environment. Give it without an environment to keep the environment the site has, for example to replace only the collection. Omit both for no environment.
environment(): String
The Postman environment to send the collection's requests with, as Postman exports it. Its values win over the variables the collection declares, as in Postman. Only for a Postman collection. It is never returned, as it usually holds credentials.
api_url(): String
Where the API is hosted, as an absolute http or https URL: a GraphQL schema's endpoint, which a schema needs, the base that an OpenAPI definition's relative servers resolve against (or its server when it declares none), or the host for a WSDL port whose address is unusable. A URL the definition itself declares wins. Ignored for Postman collections, saved Burp items and HAR files. Omit for none: an update without it removes the site's API URL.
authentications(): [ApiAuthenticationInput!]!
A list of the API authentication schemes (for example: Basic, Bearer Token, API Key).
enabled_endpoints(): [ApiEndpointInput!]!
A list of the API endpoints.