createTask( )


Creates a new task.

All fields in the task object are optional. If you don't pass any fields in the task object, the function returns a task with the following core properties:

  • _id
  • _createdDate
  • _updatedDate
  • status
  • source
  • revision
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Tasks
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
taskTaskRequired

Task to create.

Returns
Return Type:Promise<Task>
Errors
400Invalid Argument

There is 1 error with this status code:

See the entire list and learn more about Wix errors.

Did this help?