-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Labels
needs infoNeeds more information.Needs more information.
Description
Whenever I create a new resource/entity I am supposed to get the created resource/entity id in the response but instead I am getting empty({}) response. The response is showing 200 status. Also I checked, the record is indeed getting created in the autotask.
This is the code I am using
public function createContact()
{
$contact = new ContactEntity(
[
'id' => 0, // Autotask requires that new entities have an ID of 0
'companyID' => 0,
'firstName' => 'New',
'lastName' => 'User',
'isActive' => 1,
]
);
try {
$response = $this->autoTaskClient->contacts()->create($contact);
return response()->json($response);
} catch (\Exception $exception) {
return $exception->getMessage();
}
}
It returned {} only.
Metadata
Metadata
Assignees
Labels
needs infoNeeds more information.Needs more information.