createPostmanClient
createPostmanClient(
opts):object
Defined in: clients/postman-client/dist/index.d.mts:161
Creates a Postman client with collections, environments, import, me, specs and workspaces groups sharing one REST client.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”object
collections
Section titled “collections”collections:
object
collections.create
Section titled “collections.create”create: (
workspaceId,collection) =>Promise<PostmanCollectionResponse>
Parameters
Section titled “Parameters”workspaceId
Section titled “workspaceId”string
collection
Section titled “collection”unknown
Returns
Section titled “Returns”Promise<PostmanCollectionResponse>
collections.delete
Section titled “collections.delete”delete: (
uid) =>Promise<void>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<void>
collections.list
Section titled “collections.list”list: (
workspaceId) =>Promise<PostmanCollectionsResponse>
Parameters
Section titled “Parameters”workspaceId
Section titled “workspaceId”string
Returns
Section titled “Returns”Promise<PostmanCollectionsResponse>
collections.update
Section titled “collections.update”update: (
uid,collection) =>Promise<PostmanCollectionResponse>
Parameters
Section titled “Parameters”string
collection
Section titled “collection”unknown
Returns
Section titled “Returns”Promise<PostmanCollectionResponse>
environments
Section titled “environments”environments:
object
environments.create
Section titled “environments.create”create: (
workspaceId,environment) =>Promise<PostmanEnvironmentResponse>
Parameters
Section titled “Parameters”workspaceId
Section titled “workspaceId”string
environment
Section titled “environment”unknown
Returns
Section titled “Returns”Promise<PostmanEnvironmentResponse>
environments.get
Section titled “environments.get”get: (
uid) =>Promise<PostmanEnvironmentResponse>
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<PostmanEnvironmentResponse>
environments.list
Section titled “environments.list”list: (
workspaceId) =>Promise<PostmanEnvironmentsResponse>
Parameters
Section titled “Parameters”workspaceId
Section titled “workspaceId”string
Returns
Section titled “Returns”Promise<PostmanEnvironmentsResponse>
environments.update
Section titled “environments.update”update: (
uid,environment) =>Promise<PostmanEnvironmentResponse>
Parameters
Section titled “Parameters”string
environment
Section titled “environment”unknown
Returns
Section titled “Returns”Promise<PostmanEnvironmentResponse>
import
Section titled “import”import:
object
import.openapi
Section titled “import.openapi”openapi: (
workspaceId,spec) =>Promise<PostmanImportOpenApiResponse>
Parameters
Section titled “Parameters”workspaceId
Section titled “workspaceId”string
unknown
Returns
Section titled “Returns”Promise<PostmanImportOpenApiResponse>
me:
object
me.get
Section titled “me.get”get: () =>
Promise<PostmanMeResponse>
Returns
Section titled “Returns”Promise<PostmanMeResponse>
specs:
object
specs.create
Section titled “specs.create”create: (
workspaceId,input) =>Promise<PostmanSpec>
Parameters
Section titled “Parameters”workspaceId
Section titled “workspaceId”string
PostmanCreateSpecInput
Returns
Section titled “Returns”Promise<PostmanSpec>
specs.list
Section titled “specs.list”list: (
workspaceId) =>Promise<PostmanSpecsResponse>
Parameters
Section titled “Parameters”workspaceId
Section titled “workspaceId”string
Returns
Section titled “Returns”Promise<PostmanSpecsResponse>
specs.updateFile
Section titled “specs.updateFile”updateFile: (
specId,filePath,content) =>Promise<void>
Parameters
Section titled “Parameters”specId
Section titled “specId”string
filePath
Section titled “filePath”string
content
Section titled “content”string
Returns
Section titled “Returns”Promise<void>
workspaces
Section titled “workspaces”workspaces:
object
workspaces.create
Section titled “workspaces.create”create: (
input) =>Promise<PostmanWorkspaceResponse>
Parameters
Section titled “Parameters”PostmanCreateWorkspaceInput
Returns
Section titled “Returns”Promise<PostmanWorkspaceResponse>
workspaces.list
Section titled “workspaces.list”list: () =>
Promise<PostmanWorkspacesResponse>
Returns
Section titled “Returns”Promise<PostmanWorkspacesResponse>