io.atcr.hold.updateCrewTier

seamark.cr View official

Documentation

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

main procedure

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

Input

Encodingapplication/json
tierRank integer Required

Tier rank index (0-based, maps to hold tier list by position).

minimum: 0
userDid stringdid Required

DID of the crew member whose tier is being updated.

Output

Encodingapplication/json
tierName string Required

Resolved tier name on this hold.

Errors

AuthRequired Valid appview token required.
UserNotFound User is not a crew member on this hold.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "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"
}

Lexicon Garden

@