API Stability |
Long-Term
|
The updateUploadFileAction() GraphQL mutation may be used to update an upload file action.
Syntax
Below is the syntax for the updateUploadFileAction() mutation field:
graphql
updateUploadFileAction(
input: UpdateUploadFileAction!
): UploadFileAction!
Below is an example of how this mutation field might be used:
graphql
mutation {
updateUploadFileAction( input:
{ viewName: "humio",
id: "abc123",
name: "file-act",
fileName: "my-file.csv"
} )
{ fileName }
}
json
{
"data": {
"updateUploadFileAction": {
"fileName": "my-file.csv"
}
}
}
Given Datatypes
For UpdateUploadFileAction, there are a few parameters that may be given. Below is a list of them along with a description of each:
Table: UpdateUploadFileAction
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: Feb 26, 2025 | |||||
fileName | string | yes | The file name for the uploaded file. | ||
id | string | yes | The unique identifier of the action. | ||
name | string | yes | The name of the action. | ||
viewName | string | yes | The name of the view of the action. |
Returned Datatypes
The returned datatype UploadFileAction has several parameters. Below is a list of them along with a description of each:
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. |