Mutation
mutation RequestFileDownload($input: RequestFileDownloadInput!) {
requestFileDownload(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
fileDownload {
expiresAt
url
}
}
}Variables
{
"input": {
"fileId": "value"
}
}Response
{
"data": {
"requestFileDownload": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"fileDownload": {
"expiresAt": "value",
"url": "string"
}
}
}
}Mutations
requestFileDownload
Returns a signed link that downloads one file under its own name, valid for two hours. Expected failures come back in the payload’s errors list, not as top-level GraphQL errors, each with a code naming the failure: NotFoundError when the tenant has no file with that id, or the file is marked broken.
MUTATION
requestFileDownload(input: RequestFileDownloadInput!): RequestFileDownloadPayload!Arguments
input
required
Returns
errors
fileDownload
Mutation
mutation RequestFileDownload($input: RequestFileDownloadInput!) {
requestFileDownload(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
fileDownload {
expiresAt
url
}
}
}Variables
{
"input": {
"fileId": "value"
}
}Response
{
"data": {
"requestFileDownload": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"fileDownload": {
"expiresAt": "value",
"url": "string"
}
}
}
}Was this page helpful?