# pub.chive.claiming.startClaim

> 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.startClaim)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.claiming.startClaim/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.claiming.startClaim/examples)

## Definitions

### `pub.chive.claiming.startClaim`

**Type**: `procedure`

Initiate a claim request for an imported eprint

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `importId` | `integer` | Yes | ID of the imported eprint to claim |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `claim` | `ref` → `#claimRequest` | Yes |  |

#### Errors

- **AuthenticationRequired**
- **NotFound**
- **InvalidRequest**

### `pub.chive.claiming.startClaim#claimRequest`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `integer` | Yes | Claim request ID |
| `status` | `string` | Yes | Claim status |
| `importId` | `integer` | Yes | ID of the imported eprint |
| `createdAt` | `string` (datetime) | Yes | When the claim was created |
| `expiresAt` | `string` (datetime) | No | When the claim expires |
| `reviewedAt` | `string` (datetime) | No | When the claim was reviewed |
| `reviewedBy` | `string` (did) | No | DID of the admin who reviewed |
| `claimantDid` | `string` (did) | Yes | DID of the claimant |
| `canonicalUri` | `string` (at-uri) | No | AT-URI of the canonical record in user PDS |
| `rejectionReason` | `string` | No | Reason for rejection if rejected |

## Raw Schema

```json
{
  "id": "pub.chive.claiming.startClaim",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "importId"
          ],
          "properties": {
            "importId": {
              "type": "integer",
              "description": "ID of the imported eprint to claim"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "NotFound"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "claim"
          ],
          "properties": {
            "claim": {
              "ref": "#claimRequest",
              "type": "ref"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Initiate a claim request for an imported eprint"
    },
    "claimRequest": {
      "type": "object",
      "required": [
        "id",
        "importId",
        "claimantDid",
        "status",
        "createdAt"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Claim request ID"
        },
        "status": {
          "type": "string",
          "description": "Claim status",
          "knownValues": [
            "pending",
            "approved",
            "rejected",
            "expired"
          ]
        },
        "importId": {
          "type": "integer",
          "description": "ID of the imported eprint"
        },
        "createdAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim was created"
        },
        "expiresAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim expires"
        },
        "reviewedAt": {
          "type": "string",
          "format": "datetime",
          "description": "When the claim was reviewed"
        },
        "reviewedBy": {
          "type": "string",
          "format": "did",
          "description": "DID of the admin who reviewed"
        },
        "claimantDid": {
          "type": "string",
          "format": "did",
          "description": "DID of the claimant"
        },
        "canonicalUri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT-URI of the canonical record in user PDS"
        },
        "rejectionReason": {
          "type": "string",
          "description": "Reason for rejection if rejected"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
