at.happyproto.admin.addCustomer

happyproto.at

Documentation

Make an account a customer: add it to the customers space with read access. Adding an existing member succeeds and changes nothing. Staff only.

main procedure

Make an account a customer: add it to the customers space with read access. Adding an existing member succeeds and changes nothing. Staff only.

Input

Encodingapplication/json
did stringdid Required

A decentralized identifier (DID).

Output

Encodingapplication/json

Errors

AuthRequired This endpoint requires an authenticated caller.
Forbidden The caller is not HappyProto staff, or may not change the customers space's members: only its creator or a HappyView super user may.
InvalidRequest did is not a DID.
Upstream The customers space is not configured, or could not be changed.
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": "Make an account a customer: add it to the customers space with read access. Adding an existing member succeeds and changes nothing. Staff only.",
  "errors": [
    {
      "description": "This endpoint requires an authenticated caller.",
      "name": "AuthRequired"
    },
    {
      "description": "The caller is not HappyProto staff, or may not change the customers space's members: only its creator or a HappyView super user may.",
      "name": "Forbidden"
    },
    {
      "description": "did is not a DID.",
      "name": "InvalidRequest"
    },
    {
      "description": "The customers space is not configured, or could not be changed.",
      "name": "Upstream"
    }
  ],
  "input": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "did": {
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    }
  },
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {},
      "type": "object"
    }
  },
  "type": "procedure"
}

Lexicon Garden

@