# pub.chive.claiming.rejectClaim

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.claiming.rejectClaim)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.claiming.rejectClaim/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.claiming.rejectClaim/examples)

## Definitions

### `pub.chive.claiming.rejectClaim`

**Type**: `procedure`

Reject a pending claim with a reason. Admin only.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `reason` | `string` | Yes | Rejection reason |
| `claimId` | `integer` | Yes | ID of the claim request to reject |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `success` | `boolean` | Yes | Whether the rejection was successful |

#### Errors

- **AuthenticationRequired**
- **Forbidden**
- **NotFound**

## Raw Schema

```json
{
  "id": "pub.chive.claiming.rejectClaim",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "claimId",
            "reason"
          ],
          "properties": {
            "reason": {
              "type": "string",
              "maxLength": 500,
              "minLength": 1,
              "description": "Rejection reason"
            },
            "claimId": {
              "type": "integer",
              "description": "ID of the claim request to reject"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "Forbidden"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "success"
          ],
          "properties": {
            "success": {
              "type": "boolean",
              "description": "Whether the rejection was successful"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Reject a pending claim with a reason. Admin only."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
