
# Update Integration

```
PUT /api/v1/integrations/:id
```

Changes the name, or replaces `config` as a whole. The type can't change.

CLI: [`fob-mdm integrations edit`](/docs/cli/integrations#integrations-edit)

## Path Parameters

| Parameter | Type | Description |
|---|---|---|
| `id` | number | Integration id |

## Request Body

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | string | No | Display name |
| `config` | object | No | Replaces the whole config |

## Example Request

```bash
curl -X PUT "https://mdm.finopsbricks.com/api/v1/integrations/5" \
  -H "api-key: $MDM_API_KEY" \
  -H "api-secret: $MDM_API_SECRET" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Payments (live)"
  }'
```

## Response

`200 OK`

```json
{
  "data": {
    "id": 5,
    "name": "Payments (live)",
    "type": "razorpayx",
    "config": {
      "object": "vendor",
      "sample_records": [
        {
          "tp_id": "cont_8f2k",
          "name": "ACME SUPPLIES",
          "gstin": "29ABCDE1234F1Z5",
          "bank_ifsc": "HDFC0009999"
        }
      ]
    },
    "created_at": "2026-11-26T07:20:08.000Z",
    "updated_at": "2026-11-26T07:20:08.000Z"
  }
}
```

## Errors

| Status | Code | When |
|---|---|---|
| 400 | `VALIDATION_ERROR` | Empty `name`, or `config` isn't an object |
| 401 | `UNAUTHORIZED` | Missing, wrong or expired API credentials |
| 403 | `FORBIDDEN` | The key lacks `integrations:edit` permission |
| 404 | `NOT_FOUND` | No such integration in your organization |
| 409 | `CONFLICT` | The name is taken |

See [Errors](/docs/api/errors) for the envelope.
