Versions

Saves changes to some files as a new version

Files that are not named stay as they are, so a small change does not send every file again. The changes are applied in this order: remove takes files out, files adds files or replaces those of the same name, and edits replaces text within files - each find has to occur exactly once in its file, or nothing is saved. What results has to be a valid lambda, as for any save.

post/lambdas/{privateKey}/versions/changes

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/lambdas/{privateKey}/versions/changes
  • Auth: none declared

Path parameters

privateKeystring required

The editor key of the lambda. Holding it is what allows the call.

Query parameters

deployboolean

Whether to put the new version online as well. The version is saved either way; whether it went online is in deployment.

Request body

Removestring[] nullable

Names of files to remove. Each has to exist.

Specificationstring nullable

What the user wants from this change and why. Optional, and cut past 4000 characters.

Changestring nullable

What this change does, in one line for the owner. Optional, and cut past 500 characters.

Response

The version was saved. If it was to be deployed as well, deployment says whether that worked.

Versioninteger

Its number

Createdstring date-time

When it was saved

Specificationstring nullable

What the user wanted and why, as it was kept

Changestring nullable

What it changes, as it was kept

Originstring nullable

How it was saved

Changes

No recorded changes to this operation across all 1 revision of this API.