---
title: "Update Integration"
method: PATCH
path: "/integrations"
tags: ["Integrations"]
---

# Update Integration

`PATCH /integrations`

Update an instance of an integration in Hustle.

## Request body

- object
  - `integrationId` string, required — Id of the integration to be updated
  - `operation` union, required
    - PDIPatchIntegration
      - `type` 'updatePDICredentials', required — This operation will update the credentials associated with an integration provided the credentials are valid.
      - `credentials` object, required
        - `username` string, required — Username or email used to authenticate to the integration.
        - `password` string, required — Password used to authenticate to the integration.
        - `apiKey` string, required — apiKey used to authenticate to PDI.
    - VanPatchIntegration
      - `type` 'updateVANCredentials', required — This operation will update the credentials associated with an integration provided the credentials are valid.
      - `credentials` object, required
        - `applicationName` string, required — application name used to authenticate.
        - `apiKey` string, required — apiKey used to authenticate.
    - VanMyVotersPatchIntegration
      - `type` 'updateVANMyVotersCredentials', required — This operation will update the credentials associated with an integration provided the credentials are valid.
      - `credentials` object, required
        - `applicationName` string, required — application name used to authenticate.
        - `apiKey` string, required — apiKey used to authenticate.

## Response `201`

Returns the integration that was updated.

- Integration — An integration represents a connection between Hustle data and an external service (such as Salesforce, VAN, or PDI).
  - `id` string, required — The ID of the integration.
  - `type` 'integration', required — The type of object the attached ID corresponds to.
  - `name` string, required — The name of the integration.
  - `integrationType` 'bbluminate' | 'evertrue' | 'msdynamics' | 'pdi' | 'salesforce_managed_package' | 'van' | 'van_myvoters' | 'webhook', required — The type of integration.
  - `organizationId` string, required — The ID of the organization the integration belongs to.
  - `createdAt` string, required — An ISO-8601 string representing the date the integration was created.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/hustle/apis/hustle-public-api.md) · [All operations](https://skmtc.net/hustle/apis/hustle-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hustle/hustle-public-api/revisions/e920ac8ed225/schema)
