Qodex.ai
Qodex.ai
Introduction
Copy Collections and Environments from Another Workspace
Get collections and environments from parent workspaceGet next environmentCopy EnvironmentFork next collection
Delete All Collections in a Workspace
Get All Collections for WorkspaceDelete Next Collection in List
Postman API
Collections
All CollectionsSingle Collection Create CollectionUpdate CollectionDelete CollectionCreate a ForkMerge a Fork
Environments
All EnvironmentsSingle EnvironmentCreate EnvironmentUpdate EnvironmentDelete Environment
Mocks
All MocksSingle MockCreate MockUpdate MockDelete MockPublish MockUnpublish MockMock call logs
Monitors
All MonitorsSingle MonitorCreate MonitorUpdate MonitorDelete MonitorRun a Monitor
Workspaces
All workspacesSingle workspaceCreate WorkspaceUpdate WorkspaceDelete Workspace
User
API Key Owner
Import
Import external API specificationImport exported data
API-API Version
Create API VersionUpdate an API VersionDelete an API VersionGet an API VersionGet All API Versions
API-Schema
Create SchemaUpdate SchemaGet SchemaCreate collection from schema
API-Relations
Get linked relationsGet documentation relationsGet environment relationsGet test suite relationsGet contract test relationsGet integration test relationsGet monitor relationsCreate relationsSync relations with schema
API
Create APIUpdate an APIDelete an APIGet all APIsSingle API
Webhooks
Create Webhook
SCIM 2.0 - Identity-User Provisioning
Fetch User ResourceFetch All User ResourceCreate UserUpdate User InformationUpdate User Information
SCIM 2.0 - Identity
Service Provider ConfigGet ResourceTypes
API Security
Schema Security Validation
Introduction
Copy Collections and Environments from Another Workspace
Get collections and environments from parent workspaceGet next environmentCopy EnvironmentFork next collection
Delete All Collections in a Workspace
Get All Collections for WorkspaceDelete Next Collection in List
Postman API
Collections
All CollectionsSingle Collection Create CollectionUpdate CollectionDelete CollectionCreate a ForkMerge a Fork
Environments
All EnvironmentsSingle EnvironmentCreate EnvironmentUpdate EnvironmentDelete Environment
Mocks
All MocksSingle MockCreate MockUpdate MockDelete MockPublish MockUnpublish MockMock call logs
Monitors
All MonitorsSingle MonitorCreate MonitorUpdate MonitorDelete MonitorRun a Monitor
Workspaces
All workspacesSingle workspaceCreate WorkspaceUpdate WorkspaceDelete Workspace
User
API Key Owner
Import
Import external API specificationImport exported data
API-API Version
Create API VersionUpdate an API VersionDelete an API VersionGet an API VersionGet All API Versions
API-Schema
Create SchemaUpdate SchemaGet SchemaCreate collection from schema
API-Relations
Get linked relationsGet documentation relationsGet environment relationsGet test suite relationsGet contract test relationsGet integration test relationsGet monitor relationsCreate relationsSync relations with schema
API
Create APIUpdate an APIDelete an APIGet all APIsSingle API
Webhooks
Create Webhook
SCIM 2.0 - Identity-User Provisioning
Fetch User ResourceFetch All User ResourceCreate UserUpdate User InformationUpdate User Information
SCIM 2.0 - Identity
Service Provider ConfigGet ResourceTypes
API Security
Schema Security Validation
HomeCopy Collections and Environments from Another Workspace

Copy Collections and Environments from Another Workspace

Number of APIs: 4

Use this collection to copy all the collections and environments from one workspace to another.

Try it out:

[Run in Qodex]

  1. Get collections and environments from parent workspace GET https://api.getpostman.com/workspaces/{{parent_workspace}}

  2. Get next environment GET https://api.getpostman.com/environments/{{next_environment_uid}}

  3. Copy Environment POST https://api.getpostman.com/environments?workspace={{destination_workspace_id}}

  4. Fork next collection POST https://api.getpostman.com/collections/fork/{{next_collection_uid}}?workspace={{destination_workspace_id}}

Previous
Introduction
Next
Get collections and environments from parent workspace