# dev.gitosphere.repository.recordPullRequestIssueCloseFailure

> Published by [gitosphere-lex.bsky.social](https://lexicon.garden/identity/did:plc:iz47txlteeb2ojtp5ygiqet6)

✓ This is the authoritative definition for this NSID.

## Description

Manages preparation for, and failure records of, closing an Issue by the original merge actor.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:iz47txlteeb2ojtp5ygiqet6/dev.gitosphere.repository.recordPullRequestIssueCloseFailure)
- [Documentation](https://lexicon.garden/lexicon/did:plc:iz47txlteeb2ojtp5ygiqet6/dev.gitosphere.repository.recordPullRequestIssueCloseFailure/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:iz47txlteeb2ojtp5ygiqet6/dev.gitosphere.repository.recordPullRequestIssueCloseFailure/examples)

## Definitions

### `dev.gitosphere.repository.recordPullRequestIssueCloseFailure`

**Type**: `procedure`

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `errorCode` | `string` | Yes |  |
| `idempotencyKey` | `ref` → `dev.gitosphere.defs#idempotencyKey` | Yes |  |
| `issueNumber` | `integer` | Yes |  |
| `number` | `integer` | Yes |  |
| `realmId` | `ref` → `dev.gitosphere.defs#realmId` | Yes |  |
| `repositoryId` | `ref` → `dev.gitosphere.defs#repositoryId` | Yes |  |
| `requestId` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `result` | `ref` → `dev.gitosphere.defs#pullRequestIssueCloseResult` | Yes |  |

#### Errors

- **InvalidRequest**
- **ValidationFailed**
- **AuthenticationRequired**
- **AccessDenied**
- **RepositoryMismatch**
- **RecordNotFound**
- **Conflict**
- **IdempotencyConflict**
- **DependencyUnavailable**
- **InvitationRequired**: An invitation is required to use this service.
- **AccountSuspended**: Service access for this DID is suspended.
- **ServicePaused**: An administrator has paused new requests for this target.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "ValidationFailed"
        },
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "AccessDenied"
        },
        {
          "name": "RepositoryMismatch"
        },
        {
          "name": "RecordNotFound"
        },
        {
          "name": "Conflict"
        },
        {
          "name": "IdempotencyConflict"
        },
        {
          "name": "DependencyUnavailable"
        },
        {
          "description": "An invitation is required to use this service.",
          "name": "InvitationRequired"
        },
        {
          "description": "Service access for this DID is suspended.",
          "name": "AccountSuspended"
        },
        {
          "description": "An administrator has paused new requests for this target.",
          "name": "ServicePaused"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "errorCode": {
              "maxLength": 64,
              "type": "string"
            },
            "idempotencyKey": {
              "ref": "dev.gitosphere.defs#idempotencyKey",
              "type": "ref"
            },
            "issueNumber": {
              "minimum": 1,
              "type": "integer"
            },
            "number": {
              "minimum": 1,
              "type": "integer"
            },
            "realmId": {
              "ref": "dev.gitosphere.defs#realmId",
              "type": "ref"
            },
            "repositoryId": {
              "ref": "dev.gitosphere.defs#repositoryId",
              "type": "ref"
            },
            "requestId": {
              "maxLength": 128,
              "type": "string"
            }
          },
          "required": [
            "realmId",
            "repositoryId",
            "number",
            "issueNumber",
            "idempotencyKey",
            "errorCode"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "result": {
              "ref": "dev.gitosphere.defs#pullRequestIssueCloseResult",
              "type": "ref"
            }
          },
          "required": [
            "result"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Manages preparation for, and failure records of, closing an Issue by the original merge actor.",
  "id": "dev.gitosphere.repository.recordPullRequestIssueCloseFailure",
  "lexicon": 1
}
```
