Shops > Tasks > tasksCreate
Commerce APIShopsTaskstasksCreate
tasksCreate
POST:tasks.json

Description

Create shop task.

Permission bit: "tasks.create"

Topic: Tasks

Arguments

data: [TaskCreate!]!

Main argument for mutations.


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

lines: Int!

Total amount of lines submitted

Example: 0

Valid when: lines is a positive integer


path: String

Path where the resulting file is stored

Example: "hello/123.txt"

Valid when: path is not empty

Valid when: path's length doesn't exceed 250 characters


result_name: String

Name of the result

Example: "customers"

Valid when: result_name's length doesn't exceed 250 characters


type: TaskType!

Type of the task


Result

[Task!]

Preview (typescript)

Loading module