Skip to main content

alphaCreateAnnotation

form schema

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.

You need project:view on the project. Service accounts cannot have annotations. You can have up to 200 annotations in each project unless your installation sets another limit.

mutation {
alphaCreateAnnotation(
organizationId: "my-org"
projectId: "ecomm"
entity: { instance: "ecomm-prod-database" }
input: {
kind: NOTE
surfaces: ["instance.canvas_node"]
template: "Schema version: {{ instance.stash[\"schema.version\"] }}"
}
) {
successful
result { id kind surfaces }
messages { field message }
}
}
alphaCreateAnnotation(
organizationId: ID!
projectId: ID!
entity: AlphaAnnotationEntityInput
input: AlphaCreateAnnotationInput!
): AlphaAnnotationPayload

Form Schema​

This mutation supports dynamic form generation using JSON Schema.

Loading schema...

Arguments​

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

Your organization's unique identifier.

alphaCreateAnnotation.projectId ● ID! non-null scalar {#project-id}​

The project's ID, for example ecomm.

alphaCreateAnnotation.entity ● AlphaAnnotationEntityInput input {#entity}​

The entity in the project to pin the annotation to. Leave it out for the project itself.

alphaCreateAnnotation.input ● AlphaCreateAnnotationInput! non-null input {#input}​

Pin a new annotation to a project, environment, component, instance, deployment, or link. Only you can see it.

Type​

AlphaAnnotationPayload object​

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

The result of a mutation on AlphaAnnotation.