# io.atcr.hold.requestCrew

> Request crew membership for the hold. Authorization depends on the captain record: if allowAllCrew is true, any authenticated user can join; otherwise, only the owner can join.

- Kind: procedure
- Authority: hold.atcr.io
- Lexicon: 1
- Published by [did:web:lexicon.atcr.io](https://lexicon.garden/identity/did:web:lexicon.atcr.io), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.hold.requestCrew)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.hold.requestCrew/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.hold.requestCrew/analytics)

## Procedure (`io.atcr.hold.requestCrew`)

Type: procedure · POST

### Input (application/json)

- `permissions` (array): Requested permissions (default: ['blob:read', 'blob:write'])
  - `items` (string)
    - Constraints: maxLength: 64
- `role` (string): Requested role (default: 'member')
  - Constraints: maxLength: 32, default: "member"

### Output (application/json)

- `cid` (string · cid): CID of the crew record
- `message` (string): Human-readable status message
  - Constraints: maxLength: 256
- `status` (string, required): Result status
  - Constraints: maxLength: 32, knownValues: created | already_member
- `uri` (string · at-uri): AT-URI of the crew record (if created or already exists)

### Errors

- `AuthRequired`: No description in schema.
- `RegistrationDisabled`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Request crew membership for the hold. Authorization depends on the captain record: if allowAllCrew is true, any authenticated user can join; otherwise, only the owner can join.",
      "errors": [
        {
          "name": "AuthRequired"
        },
        {
          "name": "RegistrationDisabled"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "permissions": {
              "description": "Requested permissions (default: ['blob:read', 'blob:write'])",
              "items": {
                "maxLength": 64,
                "type": "string"
              },
              "type": "array"
            },
            "role": {
              "default": "member",
              "description": "Requested role (default: 'member')",
              "maxLength": 32,
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cid": {
              "description": "CID of the crew record",
              "format": "cid",
              "type": "string"
            },
            "message": {
              "description": "Human-readable status message",
              "maxLength": 256,
              "type": "string"
            },
            "status": {
              "description": "Result status",
              "knownValues": [
                "created",
                "already_member"
              ],
              "maxLength": 32,
              "type": "string"
            },
            "uri": {
              "description": "AT-URI of the crew record (if created or already exists)",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "io.atcr.hold.requestCrew",
  "lexicon": 1
}
```
