Features

Changes a feature, or moves its base

Its name, its specification or its change. What the request leaves out stays as it is; a specification or change sent empty is cleared. The files are not touched.

Move the base only once the changes of that version are in the feature's files. Merging replaces the lambda's files with the feature's, and nothing checks that those changes are in.

patch/lambdas/{privateKey}/features/{feature}

Request

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

Path parameters

privateKeystring required

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

featurestring required

The key of the feature, as key in the answer that started it

Request body

Namestring nullable

What it is, in a few words

Specificationstring nullable

What the user wants from it and why; empty clears it

Changestring nullable

What it changes, in one line - what the version it is merged into will say; empty clears it

Baseinteger nullable

The version it is based on from now on. Move it only once the changes of that version are in the feature's files: only a feature based on the newest version can be merged, and nothing checks that the changes really are in.

Response

The feature afterwards

Keystring

What every call about it takes, and what its preview is reached by

Namestring

What it is, in a few words

Branchstring

The branch it is in the lambda's git repository - given when it starts, and kept when it is renamed

Specificationstring nullable

What the user wants from it and why

Changestring nullable

What it changes, in one line

Baseinteger

The version it is based on

Newestinteger nullable

The newest version of the lambda

Mergeableboolean

Whether it can be merged: it is based on the newest version

Originstring nullable

How it was started: api, agent or git

Createdstring date-time

When it was started

Modifiedstring date-time

When it was last saved or changed

Onlineboolean

Whether its preview is online

Currentboolean

Whether its preview is online and serves what the feature holds now, rather than an earlier save

Previewedstring date-time nullable

When its preview was last put online, while it is

PreviewPathstring

Where its preview answers on this site, whether it is online or not: /features/{key}/

Revisioninteger

How many times its files were saved, counting the ones it began with. Passed back with a save, it keeps that save from replacing one made elsewhere.

Changes

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