# io.atcr.hold.updateCrewTier

> Update a crew member's tier. Only accepts requests from the trusted appview.

- 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.updateCrewTier)
- [Schema JSON](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.hold.updateCrewTier/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:web:lexicon.atcr.io/io.atcr.hold.updateCrewTier/analytics)

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

Type: procedure · POST

### Input (application/json)

- `tierRank` (integer, required): Tier rank index (0-based, maps to hold tier list by position).
  - Constraints: minimum: 0
- `userDid` (string · did, required): DID of the crew member whose tier is being updated.

### Output (application/json)

- `tierName` (string, required): Resolved tier name on this hold.
  - Constraints: maxLength: 64

### Errors

- `AuthRequired`: Valid appview token required.
- `UserNotFound`: User is not a crew member on this hold.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Update a crew member's tier. Only accepts requests from the trusted appview.",
      "errors": [
        {
          "description": "Valid appview token required.",
          "name": "AuthRequired"
        },
        {
          "description": "User is not a crew member on this hold.",
          "name": "UserNotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "tierRank": {
              "description": "Tier rank index (0-based, maps to hold tier list by position).",
              "minimum": 0,
              "type": "integer"
            },
            "userDid": {
              "description": "DID of the crew member whose tier is being updated.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "userDid",
            "tierRank"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "tierName": {
              "description": "Resolved tier name on this hold.",
              "maxLength": 64,
              "type": "string"
            }
          },
          "required": [
            "tierName"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "io.atcr.hold.updateCrewTier",
  "lexicon": 1
}
```
