dev.cartridge.claims.setupAdmin

Bootstrap the claims admin space or add a member to it. Creates the admin space on first call; subsequent calls can add new admin DIDs.

Repository @cartridge.dev did:plc:4mrwcmxk266itsdn33leqljq namespace authority
Details · procedure
Kindprocedure
Authorityclaims.cartridge.dev
Indexed

Procedure

procedure · POST

Input

application/json

adminDid

string · did

DID to add as admin. Omit on first call to just create the space.

Output

application/json

created

boolean

True if the admin space was created by this call

True if adminDid was added as a member

spaceUri

requiredstring · at-uri

Similar lexicons

semantic match

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

  • 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

  • Grant admin access to a DID. Requires admin authorization.

  • Add a member to a space. Caller must be the space owner.