Skip to main content

alphaSetStashEntry

form schema

Alpha: this API can change or be removed at any time, without notice.

Set the value of a key in a stash. Setting a key that has a value replaces the value and every other setting of the entry.

You need stash:write on the stash's entity: the project, environment, component, or instance, or the deployment's instance for a deployment's stash.

A deployment's own credentials can set keys on that deployment and on its instance, environment, component, and project.

The mutation fails when the key has an immutable entry that has not expired, or when the stash already has its maximum number of keys (1000 unless your installation sets another).

Keys that start with md/ are well-known keys that drive the widgets in alphaWidgetCatalog, for example md/v1/health or md/v1/step/src. Each one can be set only on its kind of entity, with its format, and with a value that matches its schema. An md/ key that is not in the catalog is rejected. An md/ entry cannot be sensitive.

mutation {
alphaSetStashEntry(
organizationId: "my-org"
scope: { instance: "ecomm-prod-database" }
key: "schema.version"
input: { value: "42", ttl: 86400 }
) {
successful
result { key value expiresAt }
messages { field message }
}
}
alphaSetStashEntry(
organizationId: ID!
scope: AlphaStashScope!
key: String!
input: AlphaSetStashEntryInput!
): AlphaStashEntryPayload

Form Schema​

This mutation supports dynamic form generation using JSON Schema.

Loading schema...

Arguments​

alphaSetStashEntry.organizationId ● ID! non-null scalar {#organization-id}​

Your organization's unique identifier.

alphaSetStashEntry.scope ● AlphaStashScope! non-null input {#scope}​

The stash to write.

alphaSetStashEntry.key ● String! non-null scalar {#key}​

The key to set. Letters, digits, and the characters _, ., /, and -, up to 255 characters.

alphaSetStashEntry.input ● AlphaSetStashEntryInput! non-null input {#input}​

Set the value of a key in a stash. Setting a key that has a value replaces the value and every other setting of the entry.

Type​

AlphaStashEntryPayload object​

Alpha: this API can change or be removed at any time, without notice.

The result of a mutation on AlphaStashEntry.