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.

Repository @happyproto.at did:plc:mo7vq4jbioxwafy5zkcc3eux namespace authority
Details · procedure
Kindprocedure
Authorityadmin.happyproto.at
Indexed

Procedure

procedure · POST

Input

application/json

did

requiredstring · did

Output

application/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.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Stop 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.

  • Create 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