Mutation
mutation CreateSourceImportTask($input: CreateSourceImportTaskInput!) {
createSourceImportTask(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": {
"filename": "string",
"format": "EXCEL",
"sourceId": "id"
}
}Response
{
"data": {
"createSourceImportTask": {
"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
createSourceImportTask
Creates a task that imports a CSV or Excel file into a source. Nothing is uploaded or written yet: upload the file to the link from createQueuedTaskUploadUrl, analyze it with analyzeSourceImportTask, then start the import with confirmQueuedTask.
MUTATION
createSourceImportTask(input: CreateSourceImportTaskInput!): CreateSourceImportTaskPayload!Arguments
input
required
Returns
errors
queuedTask
Mutation
mutation CreateSourceImportTask($input: CreateSourceImportTaskInput!) {
createSourceImportTask(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": {
"filename": "string",
"format": "EXCEL",
"sourceId": "id"
}
}Response
{
"data": {
"createSourceImportTask": {
"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?