createCustomLinkInteraction()

API Stability Long-Term

The createCustomLinkInteraction() GraphQL mutation field is used to create a custom link interaction. This is a preview, though, and subject to change.

Syntax

Below is the syntax for the createCustomLinkInteraction() mutation field:

graphql
createCustomLinkInteraction(
       input: CreateCustomLinkInteractionInput!
    ): InteractionId!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  createCustomLinkInteraction(input:
     { path: "humio",
       customLinkInteractionInput:{name: "my-interaction", openInNewTab: true,
                                   urlTemplate: "https://company.com?q={{ fields.myField }}"},
     } )
  { id }
}
Example Responses
Show:
json
{
  "data": {
    "createCustomLinkInteraction": {
      "id": "ZLP9jEExnGyi6IXWZp2PBG9EMdtQSYTV"
    }
  }
}

Given Datatypes

For CreateCustomLinkInteractionInput, there are a few parameters. Below is a list of them:

Table: CreateCustomLinkInteractionInput

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 17, 2024
customLinkInteractionInputCustomLinkInteractionInputyes  The custom link for interactions. See CustomLinkInteractionInput.
pathstringyes  The path for the link.

Returned Datatypes

As indicated by the syntax above, this mutation will return data using the datatype, InteractionId. Below is the parameter of that datatype:

Table: InteractionId

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Sep 25, 2024
idstringyes Long-TermThe unique identifier for the interaction.