Parameter Absent

Hi my name is Alessio and I have a issue using the Mautic Api.

here is my code

Code:
$baseUrl='https://myurl.mautic.net'; $contactApi = MauticApi::newApi("contacts", $auth, $baseUrl); $createIfNotFound = true;
$data = array(
    'firstname' => $emailContact,
    'email'     => $emailContact,
    'tags'      => $campaign
);

$contact = $contactApi->edit($idContact, $data, $createIfNotFound);
echo serialize($contact);</div>

the echo retrive this:
Code:
a:1:{s:5:"error";a:2:{s:7:"message";s:16:"parameter_absent";s:4:"code";i:400;}}

I have copy the Authentication procedure from the wiki.
Code:
$settings = array( 'baseUrl' => 'https://myurl.mautic.net', 'version' => 'OAuth1a', 'clientKey' => 'myKey', 'clientSecret' => 'MyKey', 'callback' => '' ); $auth = OAuth::newAuth($settings); if ($auth->validateAccessToken()) { if ($auth->accessTokenUpdated()) { $accessTokenData = $auth->getAccessTokenData(); } }

I don't understand what's wrong with my code. What is the parameter who is absent? Could you help me?

Hi my name is Alessio and I have a issue using the Mautic Api.
here is my code

$baseUrl='https://myurl.mautic.net';
    $contactApi = MauticApi::newApi("contacts", $auth, $baseUrl);
    $createIfNotFound = true;

    $data = array(
        'firstname' => $emailContact,
        'email'     => $emailContact,
        'tags'      => $campaign
    );

    $contact = $contactApi->edit($idContact, $data, $createIfNotFound);
    echo serialize($contact);

the echo retrive this:

a:1:{s:5:"error";a:2:{s:7:"message";s:16:"parameter_absent";s:4:"code";i:400;}}

I have copy the Authentication procedure from the wiki.

$settings = array(
        'baseUrl'      => 'https://myurl.mautic.net',
        'version'      => 'OAuth1a',
        'clientKey'    => 'myKey',
        'clientSecret' => 'MyKey',
        'callback'     => ''
    );
    $auth = OAuth::newAuth($settings);
    if ($auth->validateAccessToken()) {
        if ($auth->accessTokenUpdated()) {
            $accessTokenData = $auth->getAccessTokenData();
        }
    }

I don’t understand what’s wrong with my code. What is the parameter who is absent? Could you help me?

Getting same error.

Stops working without touching the code base.

API not working properly.

If you’re sure your code is right you can put in a bug report here: https://github.com/mautic/mautic