Update a source swap policy
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
policyId
Id of the source swap policy.
Request
The request body.
Connection swap policy
OR
Deployment swap policy
Response
The response body.
policyId
Unique identifier of the source swap policy.

