---
title: "updateOrgConnectionRequestAuthorization"
---

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

# updateOrgConnectionRequestAuthorization

Path: Forge API › connections

`GET /oauth/callback`

## Query parameters

- `state` (`updateOrgConnectionRequestAuthorization.query.state`; string, required)
  - minLength: `1`
- `code` (`updateOrgConnectionRequestAuthorization.query.code`; string, optional)
- `iss` (`updateOrgConnectionRequestAuthorization.query.iss`; string, optional)
- `error` (`updateOrgConnectionRequestAuthorization.query.error`; string, optional)
- `error_description` (`updateOrgConnectionRequestAuthorization.query.error_description`; string, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/oauth/callback?state=string'
```

### TypeScript

```typescript
const url = '<base-url>/oauth/callback?state=string';
const options = {method: 'GET'};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/oauth/callback?state=string"

response = requests.get(url)

print(response.text)
```

## Responses

### 302

<No Content>

### 400

InvalidRequest

#### Example

```json
{
  "_tag": "InvalidRequest",
  "part": "path",
  "issues": [
    {
      "path": [
        "string"
      ],
      "message": "string"
    }
  ]
}
```

- `_tag` (`updateOrgConnectionRequestAuthorization.response.400._tag`; string, required)
  - one of `"InvalidRequest"`
- `part` (`updateOrgConnectionRequestAuthorization.response.400.part`; string, required)
  - one of `"path"`, `"query"`, `"headers"`, `"body"`
- `issues` (`updateOrgConnectionRequestAuthorization.response.400.issues`; array of object, required)
  - `path` (`updateOrgConnectionRequestAuthorization.response.400.issues.path`; array\<any of\>, required)
    - any of the following: `string`, `integer`
  - `message` (`updateOrgConnectionRequestAuthorization.response.400.issues.message`; string, required)

### 401

InvalidCredentials

#### Example

```json
{
  "_tag": "InvalidCredentials"
}
```

- `_tag` (`updateOrgConnectionRequestAuthorization.response.401._tag`; string, required)
  - one of `"InvalidCredentials"`

### 403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired

#### Example

```json
{
  "_tag": "Forbidden",
  "message": "string"
}
```

Any of the following:

- `ForbiddenEncoded`
  - `_tag` (`ForbiddenEncoded._tag`; string, required)
    - one of `"Forbidden"`
  - `message` (`ForbiddenEncoded.message`; string, required)
- `ForbiddenOriginEncoded`
  - `_tag` (`ForbiddenOriginEncoded._tag`; string, required)
    - one of `"ForbiddenOrigin"`
- `RequiresPersonalSessionEncoded`
  - `_tag` (`RequiresPersonalSessionEncoded._tag`; string, required)
    - one of `"RequiresPersonalSession"`
- `RunBranchRequiredEncoded`
  - `_tag` (`RunBranchRequiredEncoded._tag`; string, required)
    - one of `"RunBranchRequired"`
  - `branch` (`RunBranchRequiredEncoded.branch`; string, required)
    - minLength: `1`
  - `message` (`RunBranchRequiredEncoded.message`; string, required)

### 404

OrgNotFound

#### Example

```json
{
  "_tag": "OrgNotFound"
}
```

- `_tag` (`updateOrgConnectionRequestAuthorization.response.404._tag`; string, required)
  - one of `"OrgNotFound"`

### 409

OAuthSignInFailed

#### Example

```json
{
  "_tag": "OAuthSignInFailed",
  "request_id": "string",
  "reason": "string"
}
```

- `_tag` (`updateOrgConnectionRequestAuthorization.response.409._tag`; string, required)
  - one of `"OAuthSignInFailed"`
- `request_id` (`updateOrgConnectionRequestAuthorization.response.409.request_id`; any of, required)
  - any of the following: `ConnectionRequestId`, `null`
- `reason` (`updateOrgConnectionRequestAuthorization.response.409.reason`; string, required)

### 429

RateLimited

#### Example

```json
{
  "_tag": "RateLimited"
}
```

- `_tag` (`updateOrgConnectionRequestAuthorization.response.429._tag`; string, required)
  - one of `"RateLimited"`

### 500

OrgFailure

#### Example

```json
{
  "_tag": "OrgFailure",
  "reason": "string"
}
```

- `_tag` (`updateOrgConnectionRequestAuthorization.response.500._tag`; string, required)
  - one of `"OrgFailure"`
- `reason` (`updateOrgConnectionRequestAuthorization.response.500.reason`; string, required)

### 503

SessionUnavailable | RateLimitUnavailable

#### Example

```json
{
  "_tag": "SessionUnavailable"
}
```

Any of the following:

- `SessionUnavailableEncoded`
  - `_tag` (`SessionUnavailableEncoded._tag`; string, required)
    - one of `"SessionUnavailable"`
- `RateLimitUnavailableEncoded`
  - `_tag` (`RateLimitUnavailableEncoded._tag`; string, required)
    - one of `"RateLimitUnavailable"`


Source: https://buildrforge.com/docs/api/update-org-connection-request-authorization/index.md
