# Multi Company Profiles

## Duplicate Flow

> Duplicates a flow version from one company to another.

```json
{"openapi":"3.0.0","info":{"title":"Patchworks Core API","version":"1.0.0"},"tags":[{"name":"Multi-Company Profiles"}],"servers":[{"url":"https://core.wearepatchworks.com"}],"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"API key passed in the Authorization header. Format: `<api-key>`"},"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"OAuth 2 Bearer token obtained from POST /fabric/api/login"}},"schemas":{"ErrorResponse":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"PatchworksDuplicateFlowDuplicateFlowRequest":{"type":"object","properties":{"flow_version_id":{"type":"string"},"from_company_id":{"type":"string"},"to_company_id":{"type":"string"}},"required":["flow_version_id","from_company_id","to_company_id"]}}},"paths":{"/api/v1/patchworks/duplicate-flow":{"post":{"summary":"Duplicate Flow","description":"Duplicates a flow version from one company to another.","responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object"}}}},"401":{"description":"Unauthenticated"},"403":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchworksDuplicateFlowDuplicateFlowRequest"}}}},"tags":["Multi-Company Profiles"],"parameters":[]}}}}
```
