> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rogeriq.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update status, display name, sidebar, settings, action permissions (requires write scope)

` PATCH /projects/{projectId}/integrations/{provider}/lifecycle `

Update status, display name, sidebar, settings, action permissions (requires write scope)

## Servers

- ` https://api.rogeriq.com/api/v1 `

## Authentication

The operation accepts these alternatives. Schemes within one alternative are required together.

### Alternative 1

- ` apiKey `: ` apiKey `

  - Credential: ` X-API-Key ` in ` header `

  - API key with `riq_` prefix

## Parameters

### ` projectId ` (path, required)

- ` value `: type ` string `

### ` provider ` (path, required)

- ` value `: type ` string `

## Request body (optional)

Content type: ` application/json `

- ` value `: type ` object `

  - ` status `: type ` string `

    - enum: ` ["active","paused","disconnected"] `

  - ` display_name `: type ` string `

  - ` sidebar_enabled `: type ` boolean `

  - ` settings `: type ` object `

  - ` action_permissions `: type ` object `

## Responses

### ` 200 ` — Updated

Content type: ` application/json `

- ` value `: type ` object `

  - ` data `: type ` object ` — An installed third-party integration

    - ` id `: type ` string `

    - ` provider `: type ` string ` — e.g. slack, github, shopify, stripe, linear, discord

    - ` status `: type ` string `

      - enum: ` ["active","paused","disconnected","error"] `

    - ` display_name `: type ` string `; nullable

    - ` setup_type `: type ` string `

    - ` health_status `: type ` string `

    - ` sidebar_enabled `: type ` boolean `

    - ` last_synced_at `: type ` string `; nullable; format ` date-time `

    - ` error_message `: type ` string `; nullable

    - ` created_at `: type ` string `; format ` date-time `

    - ` updated_at `: type ` string `; format ` date-time `

## Request examples

### cURL

```curl
curl -X PATCH 'https://api.rogeriq.com/api/v1/projects/string/integrations/string/lifecycle' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "status": "active",
  "display_name": "string",
  "sidebar_enabled": true,
  "settings": {},
  "action_permissions": {}
}'
```

### JavaScript

```javascript
const response = await fetch('https://api.rogeriq.com/api/v1/projects/string/integrations/string/lifecycle', {
  method: 'PATCH',
  headers: {
      "Authorization": "Bearer YOUR_API_TOKEN",
      "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "status": "active",
    "display_name": "string",
    "sidebar_enabled": true,
    "settings": {},
    "action_permissions": {}
  })
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

headers = {
    'Authorization': 'Bearer YOUR_API_TOKEN'
}

response = requests.patch('https://api.rogeriq.com/api/v1/projects/string/integrations/string/lifecycle', headers=headers, json={
  "status": "active",
  "display_name": "string",
  "sidebar_enabled": true,
  "settings": {},
  "action_permissions": {}
})
print(response.json())
```