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
| Kind | procedure |
|---|---|
| Authority | knotless.dev |
| Commit rev | 3n2mx2cp5f4by |
| Indexed |
Procedure
procedure · POSTInput
application/jsondescription
stringWhat the gist says it is from now: an empty string drops it, and it stays as it is when absent.
maxLength: 3000maxGraphemes: 300
files
arrayThe 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
The gist's dev.knotless.repo record.
Output
application/jsonFalse when the files are as they were, and nothing was pushed.
description
stringWhat the gist says it is now.
sha
stringThe 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
objectA file of a gist to put or delete: exactly one of content or delete.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
dev.knotless.createGist
procedureCreates a gist in the account logged in to this appview's pages.
-
dev.knotless.updateRepo
procedureChanges what a repository says it is, the links its pages show, what it is about and the branch its HEAD names.
-
dev.knotless.editItem
procedureChanges what a pull, an issue or a comment says, as its author, logged in to this appview's pages.