dev.knotless.createGist

Writes a dev.knotless.repo record whose kind is gist, named by a new TID, in the account logged in to this appview's web pages, and commits the files given to its main branch in one commit, as `knotless gist create` does. Requires the session cookie the pages' login sets: the appview writes with the session it keeps for that account. Clients holding their own session write the record and push themselves.

Details · procedure
Kindprocedure
Authorityknotless.dev
Commit rev3n2mx2cots5by
Indexed

Procedure

procedure · POST

Input

application/json

What the gist is, shown above its files.

  • maxLength: 3000
  • maxGraphemes: 300

files

requiredarray

Its files, at the root of its main branch, each named once.

  • minLength: 1
  • maxLength: 20
itemsref
Reference

Output

application/json

Errors

InvalidRequest

No files, a file with no name or a name with a /, or two files of one name.

AuthenticationRequired

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

#file

object

A text file of a gist.

Properties

content

requiredstring

Its text, written as UTF-8.

  • maxLength: 1000000

name

requiredstring

Its name at the gist's root, with no /.

  • maxLength: 255

Similar lexicons

semantic match

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

  • Changes a gist of the account logged in to this appview's pages.

  • Creates a repository in the account logged in to this appview's pages.

  • Comments on a pull, an issue or a gist, or on lines of a pull's diff, or answers a comment, or reviews a pull, as the account logged in to this appview's pages.

  • Opens an issue on a repository, as the account logged in to this appview's pages.

  • Forks a repository into the account logged in to this appview's pages.