Mutation
mutation CreateCardsImportTask($input: CreateCardsImportTaskInput!) {
createCardsImportTask(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
queuedTask {
artifacts {
available
completedAt
createdAt
filename
kind
sizeBytes
}
awaitingConfirmation
configuration {
__typename
... on CardsImportConfiguration {
__typename
}
}
createdAt
createdBy
details {
__typename
... on CardsImportDetails {
__typename
}
}
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"createCardsImportTask": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"queuedTask": {
"artifacts": [
{
"available": true,
"completedAt": "value",
"createdAt": "value",
"filename": "string",
"kind": "INPUT",
"sizeBytes": "value"
}
],
"awaitingConfirmation": true,
"configuration": {
"__typename": "CardsImportConfiguration"
},
"createdAt": "value",
"createdBy": "value",
"details": {
"__typename": "CardsImportDetails"
}
}
}
}
}Mutations
createCardsImportTask
Creates a cards import task before any file is uploaded. Upload the file to the link from createQueuedTaskUploadUrl, check it with analyzeCardsImportTask, then start the import with confirmQueuedTask. Set the fields directly; the nested input is the older form of the same fields.
MUTATION
createCardsImportTask(input: CreateCardsImportTaskInput!): CreateCardsImportTaskPayload!Arguments
input
required
Returns
errors
queuedTask
Mutation
mutation CreateCardsImportTask($input: CreateCardsImportTaskInput!) {
createCardsImportTask(input: $input) {
errors {
__typename
... on GraphQlError {
code
details {
__typename
}
message
}
}
queuedTask {
artifacts {
available
completedAt
createdAt
filename
kind
sizeBytes
}
awaitingConfirmation
configuration {
__typename
... on CardsImportConfiguration {
__typename
}
}
createdAt
createdBy
details {
__typename
... on CardsImportDetails {
__typename
}
}
}
}
}Variables
{
"input": {}
}Response
{
"data": {
"createCardsImportTask": {
"errors": [
{
"__typename": "GraphQlError",
"code": "string",
"details": [
{
"__typename": "KeyValuePairOfStringAndString"
}
],
"message": "string"
}
],
"queuedTask": {
"artifacts": [
{
"available": true,
"completedAt": "value",
"createdAt": "value",
"filename": "string",
"kind": "INPUT",
"sizeBytes": "value"
}
],
"awaitingConfirmation": true,
"configuration": {
"__typename": "CardsImportConfiguration"
},
"createdAt": "value",
"createdBy": "value",
"details": {
"__typename": "CardsImportDetails"
}
}
}
}
}Was this page helpful?