---
title: "Update an integration"
method: PUT
path: "/projects/{project_id}/integrations/{id}"
tags: ["Integrations"]
---

# Update an integration

`PUT /projects/{project_id}/integrations/{id}`

## Request

- Base URL: `https://sg.deployhq.com`
- URL: `https://sg.deployhq.com/projects/{project_id}/integrations/{id}`
- Auth: HTTP basic

Updates an existing integration's settings. The hook_type cannot be changed via the API.

## Path parameters

- `project_id` string, required
- `id` string, required

## Request body

- IntegrationObject2
  - `integration` object, required
    - `send_on_completion` boolean
    - `send_on_failure` boolean
    - `send_on_check_failed` boolean
    - `send_on_start` boolean
    - `name` string
    - `properties` unknown
    - `all_servers` boolean
    - `server_identifiers` string[]

## Response `200`

Success

- Integration
  - `identifier` string
  - `hook_type` string
  - `name` string
  - `send_on_start` boolean
  - `send_on_completion` boolean
  - `send_on_failure` boolean
  - `send_on_check_failed` boolean
  - `created_at` string
  - `updated_at` string

## Other responses

- `401`: You are not authorized to access this resource. You need to authenticate yourself first.
- `403`: You are not allowed to access this resource. You do not have the necessary permissions.
- `404`: The requested resource could not be found.
- `422`: Unprocessable Entity
- `500`: An unexpected error occurred on the server. The server was unable to process the request.

---

[API](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation.md) · [All operations](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/deployhq/apis/deployhq-api-interactive-documentation/revisions/830264ae58be?raw)
