AlphaCreateAnnotationInput
Alpha: this API can change or be removed at any time, without notice.
Pin a new annotation to a project, environment, component, instance, deployment, or link. Only you can see it.
input AlphaCreateAnnotationInput {
inputs: Map
kind: AlphaAnnotationKind!
surfaces: [String!]!
template: String
}
Fields
AlphaCreateAnnotationInput.inputs ● Map scalar {#inputs}
A JSON object that maps each input of the widget to a stash entry. Use the input names from alphaWidgetCatalog, and set every required input. Required for WIDGET annotations and empty for NOTE annotations. Each value has source (always stash), scope (one of project, environment, component, instance, or deployment, set to an ID in the annotation's project), key, and an optional path (a list of keys into a JSON entry's data).
AlphaCreateAnnotationInput.kind ● AlphaAnnotationKind! non-null enum {#kind}
NOTE shows a Liquid template that the Massdriver UI renders. WIDGET shows one widget from alphaWidgetCatalog and connects its inputs to stash entries. The kind cannot be changed later.
AlphaCreateAnnotationInput.surfaces ● [String!]! non-null scalar {#surfaces}
Where the Massdriver UI shows the annotation, from 1 to 8 surfaces. Each one is lowercase words joined by dots, up to 64 characters, and starts with the kind of entity the annotation is on, such as instance.canvas_node. An annotation on a component can also use instance surfaces. A WIDGET annotation has exactly one surface: the name of a widget, such as instance.usage_bar.
AlphaCreateAnnotationInput.template ● String scalar {#template}
The Liquid template to show, up to 4096 bytes. Required for NOTE annotations and empty for WIDGET annotations. Massdriver stores it as written and does not evaluate it.
Member Of
alphaCreateAnnotation mutation