dev.knotless.addAgent

Names the account among the agents of the repository's dev.knotless.repo record, as `knotless agent add` does: accounts, such as a coding agent, whose pulls its runners check as they move, as code no one vouches for. Its owner can, logged in to this appview's web pages: the appview writes with the session it keeps for that account, which the pages' session cookie names. For an organization's repository, so can an admin who joined it, logged in to the pages or with a service token from their own PDS for this method: the appview's gateway, which the organization delegated its writes to, writes as the organization. Answers with the agents it names after.

Details · procedure
Kindprocedure
Authorityknotless.dev
Indexed

Procedure

procedure · POST

Input

application/json

agent

requiredstring · at-identifier

The account, by handle or DID.

repo

requiredstring · at-uri

The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.

Output

application/json

agents

requiredarray

The accounts the repository names as agents now.

itemsref

Errors

NotFound

No such repository, or no such account.

AuthenticationRequired

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

Forbidden

The account asking is neither the owner nor an admin who joined the organization that owns it.

Similar lexicons

semantic match

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