Create a source swap policy (Beta)

View as MarkdownOpen in Claude
Create a source swap policy. **Beta**: Creating a **Connection** source swap policy is in private beta and must be enabled for your organization. Creating a **Deployment** source swap policy is in public beta. This documentation is subject to the [Beta features](/docs/sigma-product-releases#beta-features) disclaimer. ### Usage notes - Retrieve the **connectionId** to use as the **fromConnectionId** by calling the [/v2/connections](https://help.sigmacomputing.com/reference/list-connections) endpoint. - Retrieve the **userAttributeId** to use in the **swaps** object by calling the [/v2/user-attributes](https://help.sigmacomputing.com/reference/list-user-attributes) endpoint.

Authentication

AuthorizationBearer

OAuth authentication of the form <token>.

Request

The request body.
Connection swapobjectRequired
OR
Deployment swapobjectRequired

Response

The response body.
policyIdstring
Unique identifier of the source swap policy.