dev.knotless.addEmail

Adds the address's hash to the dev.knotless.emails record of the account logged in to this appview's web pages, as `knotless email add` does, so commits authored with it show as the account's on repositories it owns or pushes to. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Showing version bafyreigjdg76jekuko2tilg2dvqkljyziuwgxbbzisjmi6p6yz3lfjr3ui. Show the latest

Procedure

procedure · POST

Input

application/json
Reference

Output

application/json
Reference

Errors

InvalidRequest

No email address.

AuthenticationRequired

No account is logged in to the pages, or its session has ended.

#email

object

An address, as git authors commits with it.

Properties

email

requiredstring

The address. Case and spaces around it do not count.

  • maxLength: 320

#emailState

object

What claiming an address, or taking the claim back, did.

Properties

changed

requiredboolean

Whether it changed anything: false for an address claimed already, or, taken back, never claimed.

count

requiredinteger

How many addresses the account claims now.

  • minimum: 0

Similar lexicons

semantic match

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

  • Takes back the claim to an email address of the account logged in to this appview's pages.

  • How many email addresses the asking account claims as its.

  • The email addresses an account's commits are authored as, so pages can show those commits as the account's.