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

# Update Integration

> Update the Linear integration configuration.

Updates settings for an existing Linear integration. Supports partial updates - only provided fields are changed. Requires org admin role.

**Required scope:** `integrations:write`

> [!NOTE]
>
> Requires organization context via the `X-Organization-Id` header.

**X-Organization-Id** `string` *required*

The organization owning the integration.

**default\_github\_repo** `string`

Default GitHub repo for agent sessions (`owner/repo`). Set to `""` to clear.

**default\_template** `string`

Default sandbox template. Set to `""` to clear.

**default\_agent** `string`

Default coding agent (e.g. `"claude-code"`, `"codex"`).

**rate\_limit\_per\_hour** `integer`

Maximum agent launches per hour. Range: 1–100.

**project\_repo\_map** `object`

Mapping of Linear project IDs to GitHub repos.

**connected** `boolean` *required*

Always `true` for a successful update.

**workspace\_name** `string`

Linear workspace name.

**default\_github\_repo** `string`

Updated default repo.

**default\_agent** `string` *required*

Updated default agent.

**rate\_limit\_per\_hour** `integer` *required*

Updated rate limit.

```bash cURL theme={null}
curl -X POST "https://app.runtm.com/api/v1/linear/integration" \
  -H "Authorization: Bearer runtm_xxx" \
  -H "X-Organization-Id: org_abc123" \
  -H "Content-Type: application/json" \
  -d '{
    "default_github_repo": "acme-corp/backend",
    "rate_limit_per_hour": 20,
    "project_repo_map": {
      "proj_123": "acme-corp/frontend"
    }
  }'
```

```python Python theme={null}
import requests

resp = requests.post(
    "https://app.runtm.com/api/v1/linear/integration",
    headers={
        "Authorization": "Bearer runtm_xxx",
        "X-Organization-Id": "org_abc123",
        "Content-Type": "application/json",
    },
    json={
        "default_github_repo": "acme-corp/backend",
        "rate_limit_per_hour": 20,
        "project_repo_map": {"proj_123": "acme-corp/frontend"},
    },
)
print(resp.json())
```

```javascript JavaScript theme={null}
const resp = await fetch(
  "https://app.runtm.com/api/v1/linear/integration",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer runtm_xxx",
      "X-Organization-Id": "org_abc123",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      default_github_repo: "acme-corp/backend",
      rate_limit_per_hour: 20,
      project_repo_map: { proj_123: "acme-corp/frontend" },
    }),
  }
);
const data = await resp.json();
```

```json 200 theme={null}
{
  "connected": true,
  "workspace_name": "Acme Engineering",
  "actor_name": "Runtime Bot",
  "service_user_id": "usr_xyz",
  "default_github_repo": "acme-corp/backend",
  "default_template": null,
  "default_agent": "claude-code",
  "rate_limit_per_hour": 20,
  "enabled": true,
  "webhook_active": true,
  "bot_linear_user_id": "lin_usr_abc",
  "project_repo_map": { "proj_123": "acme-corp/frontend" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.