> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/infrastructure-as-code-management/iacm-api-reference/migration/trigger-workspace-connector-migration.md).

# Trigger workspace connector migration

Triggers an async one-off migration that moves connector data from workspaces into the provider\_connectors table.

```json
{"openapi":"3.0.3","info":{"title":"Infrastructure as Code Management","version":"0.1.0"},"tags":[{"name":"migration","description":"Migration Service handles one-off connector and template migrations."}],"servers":[{"url":"http://localhost:80"}],"paths":{"/api/migrate/workspace-connectors":{"post":{"tags":["migration"],"summary":"Trigger workspace connector migration","description":"Triggers an async one-off migration that moves connector data from workspaces into the provider_connectors table.","operationId":"migration#migrate-workspace-connectors","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateWorkspaceConnectorsRequest"}}}},"responses":{"202":{"description":"Accepted response.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MigrateWorkspaceConnectorsResponse"}}}},"500":{"description":"internal_error: Internal server error","content":{"application/vnd.goa.error":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"MigrateWorkspaceConnectorsRequest":{"type":"object","properties":{"dry_run":{"type":"boolean","description":"If true, simulate the migration without modifying data."}},"required":["dry_run"]},"MigrateWorkspaceConnectorsResponse":{"type":"object","properties":{"message":{"type":"string","description":"Confirmation message"}},"required":["message"]},"Error":{"type":"object","properties":{"fault":{"type":"boolean","description":"Is the error a server-side fault?"},"id":{"type":"string","description":"ID is a unique identifier for this particular occurrence of the problem."},"message":{"type":"string","description":"Message is a human-readable explanation specific to this occurrence of the problem."},"name":{"type":"string","description":"Name is the name of this class of errors."},"temporary":{"type":"boolean","description":"Is the error temporary?"},"timeout":{"type":"boolean","description":"Is the error a timeout?"}},"required":["name","id","message","temporary","timeout","fault"]}}}}
```
