Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requested URL not found - Add Contact to a Stage #95

Closed
sillassoares opened this issue Mar 7, 2017 · 4 comments
Closed

Requested URL not found - Add Contact to a Stage #95

sillassoares opened this issue Mar 7, 2017 · 4 comments

Comments

@sillassoares
Copy link

I'm trying to add a contact to a stage, but it keeps returning 404 error.

Array
(
    [error] => Array
        (
            [message] => Requested URL not found: /automacao/api/stages/1/contact/9/add
            [code] => 404
        )

)

The documentation says that the url should be

/stages/SEGMENT_ID/contact/add/CONTACT_ID

But i get the same error when i try to set the url on this way.
The version i'm using is 2.6.

@escopecz
Copy link
Sponsor Member

escopecz commented Mar 8, 2017

The /automacao/ part shouldn't be there.

@sillassoares
Copy link
Author

/automacao/ is part of my base url.

The odd thing is that all requests is working, except this one.

For example, i'm using

$stageApi->get($id);

before

$stageApi->addContact($contact, $stage);

@williamespindola
Copy link

@sillassoares @escopecz I have the same problem here, stageId and contactId params is inverted I fix this with mautic/developer-documentation#90

@escopecz
Copy link
Sponsor Member

escopecz commented Jan 8, 2018

@williamespindola thanks! That's correct

@escopecz escopecz closed this as completed Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants