at.happyproto.admin.addCustomer
Make an account a customer: add it to the customers space with read access. Adding an existing member succeeds and changes nothing. Staff only.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | admin.happyproto.at |
| Indexed |
Procedure
procedure · POSTInput
application/jsonOutput
application/jsonErrors
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.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
at.happyproto.admin.removeCustomer
procedureStop an account being a customer: remove it from the customers space. Removing a non-member succeeds. Staff only.
-
The members of the customers space: everyone the customer endpoints admit. Staff only.
-
at.happyproto.admin.createSpaces
procedureCreate HappyProto's admin and customers spaces, member-only, keeping either that already exists, and add each of staff to the admin space with write access, skipping existing members. Each space is looked up at the uri its script variable (HAPPYPROTO_ADMIN_SPACE, HAPPYPROTO_CUSTOMERS_SPACE) names, or, unset, under HAPPYPROTO_DID. A space created here has a DID of its own, and the uri answered is the one to set its variable to. Idempotent once the variables are set: a second call creates nothing