dev.knotless.editGist

Puts and deletes files of a gist in one commit to its default branch, "Edit gist", then sets its description, if given, as `knotless gist edit` does. Only the gist's owner may, logged in to this appview's web pages: requires the session cookie the pages' login sets, and the appview writes with the session it keeps for that account.

Details · procedure
Kindprocedure
Authorityknotless.dev
Commit rev3n2mx2cp5f4by
Indexed

Procedure

procedure · POST

Input

application/json

What the gist says it is from now: an empty string drops it, and it stays as it is when absent.

  • maxLength: 3000
  • maxGraphemes: 300

files

array

The files to put or delete, each named once. A rename is a delete of the old name and a put of the new.

  • maxLength: 40
itemsref
Reference

gist

requiredstring · at-uri

The gist's dev.knotless.repo record.

Output

application/json

changed

requiredboolean

False when the files are as they were, and nothing was pushed.

What the gist says it is now.

sha

string

The commit made, when files were put or deleted.

  • maxLength: 64

Errors

InvalidRequest

No change, a file with no name or a name with a /, a file given both content and delete, or neither, or a name changed twice.

NotFound

No such repository, or it is not a gist.

AuthenticationRequired

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

Forbidden

The account logged in is not the gist's owner.

#change

object

A file of a gist to put or delete: exactly one of content or delete.

Properties

content

string

Its text from now, written as UTF-8.

  • maxLength: 1000000

delete

boolean

Deletes the file.

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.

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

  • Changes what a repository says it is, the links its pages show, what it is about and the branch its HEAD names.

  • Changes what a pull, an issue or a comment says, as its author, logged in to this appview's pages.