activecollab-feather-sdk icon indicating copy to clipboard operation
activecollab-feather-sdk copied to clipboard

Attachments are not working

Open cgcullen opened this issue 7 years ago • 0 comments

Attachments are not working for me. I may be doing something wrong, but I'm getting validation errors as if I'm not sending any data.

I'm using the following:

	    $response = $this->client->post(
	    	'projects/'.$project.'/tasks',
		    [
			    'name' => $task,
			    'body' => '<a href="'. env('APP_URL').'/ticket/'.$id .'" target="_blank">'.env('APP_URL').'/ticket/'.$id .'</a><br><br>'.$body,
			    'assignee_id' => $person
		    ],
		    $attachments
	    );

It works fine if I leave off the attachments, but when I get the validation errors: Task summary is required Value of task_list_id field is required Please select a project

Am I doing something wrong?

cgcullen avatar Jan 18 '19 00:01 cgcullen