Update a source swap policy

View as Markdown
Update a source swap policy. **Beta**: Updating a **Connection** source swap policy is in private beta and must be enabled for your organization. This documentation is subject to the [Beta features](/docs/sigma-product-releases#beta-features) disclaimer. ### Usage notes - Retrieve the **policyId** by calling the [/v2/sourceSwapPolicies](https://help.sigmacomputing.com/reference/list-source-swap-policies) endpoint. - 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>.

Path parameters

policyIdstringRequired
Id of the source swap policy.

Request

The request body.
objectRequired
Connection swap policy
OR
objectRequired
Deployment swap policy

Response

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