# pub.chive.claiming.approveCoauthor

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

## Definitions

### `pub.chive.claiming.approveCoauthor`

**Type**: `procedure`

Approve a pending co-author request. Only the eprint owner can approve.

#### Output

**Encoding**: `application/json`

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

#### Errors

- **AuthenticationRequired**: Authentication is required to approve co-author requests
- **Forbidden**: Only the eprint owner can approve co-author requests
- **RequestNotFound**: The specified co-author request does not exist

## Raw Schema

```json
{
  "id": "pub.chive.claiming.approveCoauthor",
  "defs": {
    "main": {
      "type": "procedure",
      "errors": [
        {
          "name": "AuthenticationRequired",
          "description": "Authentication is required to approve co-author requests"
        },
        {
          "name": "Forbidden",
          "description": "Only the eprint owner can approve co-author requests"
        },
        {
          "name": "RequestNotFound",
          "description": "The specified co-author request does not exist"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "success"
          ],
          "properties": {
            "success": {
              "type": "boolean",
              "description": "Whether the approval was successful"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "requestId"
        ],
        "properties": {
          "requestId": {
            "type": "integer",
            "minimum": 1,
            "description": "ID of the co-author request to approve"
          }
        }
      },
      "description": "Approve a pending co-author request. Only the eprint owner can approve."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1,
  "revision": 1
}
```
