For assign or remove the task to a project, use the addProjectToTask and removeProjectToTask.
public createTask ( array $data, array $opts = [] ) : string | ||
$data | array | Array of data for the task following the Asana API documentation. Example: array( "workspace" => "1768", "name" => "Hello World!", "notes" => "This is a task for testing the Asana API :)", "assignee" => "176822166183", "followers" => array( "37136", "59083" ) ) |
$opts | array | Array of options to pass (@see https://asana.com/developers/documentation/getting-started/input-output-options) |
return | string | JSON or null |