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:
graphql
mutation {
createUploadFileAction(input:
{ name: "my-search-link",
viewName: "humio",
fileName: "somefile.csv"
} )
{ id }
}
json
{
"data": {
"createUploadFileAction": {
"id": "B352ihOlsFo2WU5VqItzPUjVVPH9bmZE"
}
}
}
Given Datatypes
For
CreateUploadFileAction
,
there are a few parameters. Below is a list of them:
Table: CreateUploadFileAction
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | |||||
fileName | string | yes | The file name to use for the uploaded file. | ||
name | string | yes | The name of the action. | ||
viewName | string | yes | 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
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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 | Preview | A list of allowed asset actions. See AssetAction . This is a preview and subject to change. | |
displayName | string | yes | Long-Term | The display name of the action. | |
fileName | string | yes | Long-Term | The name of the uploaded file. | |
id | string | yes | Long-Term | The unique identifier of the action. | |
isAllowedToRun | boolean | yes | Long-Term | False if disabled because of a security policy. | |
name | string | yes | Long-Term | The name of the action. | |
package | PackageInstallation | yes | Long-Term | The package, if any, of which the action is part. See PackageInstallation . | |
packageId | VersionedPackageSpecifier | Long-Term | The unique identifier of the package. VersionedPackageSpecifier is a scalar. | ||
requiresOrganizationOwnedQueriesPermissionToEdit | boolean | yes | Long-Term | True if this action is used by triggers, where the query is run by the organization. If true, the OrganizationOwnedQueries permission is required to edit. | |
resource | string | yes | Short-Term | The resource identifier for this action. | |
yamlTemplate | yaml | yes | Long-Term | A template that can be used to recreate the action. |