createUploadFileAction()

API Stability Long-Term

The createUploadFileAction() GraphQL mutation field is used to create an upload file action.

Syntax

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

graphql
createUploadFileAction(
       input: CreateUploadFileAction!
    ): UploadFileAction!

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

Show:
graphql
mutation {
  createUploadFileAction(input:
       { name: "my-search-link", 
         viewName: "humio",
         fileName: "somefile.csv"
      } )
  { id }
}
Example Responses
Show:
json
{
  "data": {
    "createUploadFileAction": {
      "id": "B352ihOlsFo2WU5VqItzPUjVVPH9bmZE"
    }
  }
}

Given Datatypes

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

Table: CreateUploadFileAction

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
fileNamestringyes  The file name to use for the uploaded file.
namestringyes  The name of the action.
viewNamestringyes  The name of the view of the action.

Returned Datatypes

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

Table: UploadFileAction

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: Mar 27, 2025
allowedActions[AssetAction]yes PreviewA list of allowed asset actions. See AssetAction. This is a preview and subject to change.
displayNamestringyes Long-TermThe display name of the action.
fileNamestringyes Long-TermThe name of the uploaded file.
idstringyes Long-TermThe unique identifier of the action.
isAllowedToRunbooleanyes Long-TermFalse if disabled because of a security policy.
namestringyes Long-TermThe name of the action.
packagePackageInstallationyes Long-TermThe package, if any, of which the action is part. See PackageInstallation.
packageIdVersionedPackageSpecifier  Long-TermThe unique identifier of the package. VersionedPackageSpecifier is a scalar.
requiresOrganizationOwnedQueriesPermissionToEditbooleanyes Long-TermTrue if this action is used by triggers, where the query is run by the organization. If true, the OrganizationOwnedQueries permission is required to edit.
resourcestringyes Short-TermThe resource identifier for this action.
yamlTemplateyamlyes Long-TermA template that can be used to recreate the action.