# Update Integration Meta API

API for managing integration metadata updates

**Version:** 1.0.0

## Overview

### Base URLs

- **Production server**: `https://sv.api.repzo.me`

- **Staging server**: `https://staging.sv.api.repzo.me`

### API Categories

- **Update Integration Meta**: Operations related to updating integration metadata

## Authentication

This API uses the following authentication methods:

- **ApiKeyAuth**

## Endpoints

### `/update-integration-meta`

#### GET /update-integration-meta

**Summary:** Get all integration meta update records

**Description:** Retrieve a list of all integration metadata update records with optional filtering and pagination

**Tags:** Update Integration Meta

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `limit` | query | integer | No | Maximum number of records to return |

| `offset` | query | integer | No | Number of records to skip for pagination |

| `sort` | query | string | No | Field to sort by |

| `order` | query | string | No | Sort order (asc or desc) |

| `filter` | query | string | No | Filter conditions in JSON format |

| `search` | query | string | No | Search term for text fields |

##### Responses

**200** - List of integration meta update records retrieved successfully

Content-Type: `application/json`

**400** - Bad request

**401** - Unauthorized

**500** - Internal server error

---

#### POST /update-integration-meta

**Summary:** Create a new integration meta update

**Description:** Create a new integration metadata update with the provided data

**Tags:** Update Integration Meta

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**201** - Integration meta update created successfully

Content-Type: `application/json`

**400** - Bad request

**401** - Unauthorized

**500** - Internal server error

---

### `/update-integration-meta/{id}`

#### GET /update-integration-meta/{id}

**Summary:** Get integration meta update by ID

**Description:** Retrieve a specific integration metadata update by its ID

**Tags:** Update Integration Meta

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | Integration meta update ID |

##### Responses

**200** - Integration meta update retrieved successfully

Content-Type: `application/json`

**404** - Integration meta update not found

**401** - Unauthorized

**500** - Internal server error

---

#### PUT /update-integration-meta/{id}

**Summary:** Update integration meta update

**Description:** Update an existing integration metadata update with new data

**Tags:** Update Integration Meta

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | Integration meta update ID |

##### Request Body

**Content Types:**

- `application/json`

##### Responses

**200** - Integration meta update updated successfully

Content-Type: `application/json`

**400** - Bad request

**404** - Integration meta update not found

**401** - Unauthorized

**500** - Internal server error

---

#### DELETE /update-integration-meta/{id}

**Summary:** Delete integration meta update

**Description:** Delete an existing integration metadata update

**Tags:** Update Integration Meta

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | Integration meta update ID |

##### Responses

**200** - Integration meta update deleted successfully

Content-Type: `application/json`

**404** - Integration meta update not found

**401** - Unauthorized

**500** - Internal server error

---

### `/update-integration-meta/apply/{id}`

#### POST /update-integration-meta/apply/{id}

**Summary:** Apply integration meta update

**Description:** Apply a specific integration metadata update

**Tags:** Update Integration Meta

##### Parameters

| Name | Location | Type | Required | Description |
| ---- | -------- | ---- | -------- | ----------- |

| `id` | path | string | Yes | Integration meta update ID |

##### Responses

**200** - Integration meta update applied successfully

Content-Type: `application/json`

**404** - Integration meta update not found

**401** - Unauthorized

**500** - Internal server error

---

## Data Models

### UpdateIntegrationMeta

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `_id` | string | No | Unique identifier for the integration meta update |

| `name` | string | Yes | Name of the meta update |

| `description` | string | No | Description of the meta update |

| `targetIntegrations` | array | No | List of integration IDs to update |

| `metaUpdates` | object | Yes | Metadata fields to update |

| `conditions` | object | No | Conditions for applying the update |

| `status` | string | No | Status of the meta update |

| `appliedAt` | string | No | When the update was applied |

| `appliedBy` | string | No | User who applied the update |

| `affectedCount` | integer | No | Number of integrations affected |

| `rollbackData` | object | No | Data needed for rollback |

| `metadata` | object | No | Additional metadata |

| `createdAt` | string | No | Record creation timestamp |

| `updatedAt` | string | No | Record last update timestamp |

### UpdateIntegrationMetaInput

| Property | Type | Required | Description |
| -------- | ---- | -------- | ----------- |

| `name` | string | Yes | Name of the meta update |

| `description` | string | No | Description of the meta update |

| `targetIntegrations` | array | No | List of integration IDs to update |

| `metaUpdates` | object | Yes | Metadata fields to update |

| `conditions` | object | No | Conditions for applying the update |

| `status` | string | No | Status of the meta update |

| `metadata` | object | No | Additional metadata |

## TypeScript Usage

See [update-integration-meta-examples.md](./update-integration-meta-examples.md) for detailed TypeScript usage examples.
