Segment API not working
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 205
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
Bug Description
The more details the better...
| Q | A |
|---|---|
| Mautic version | 2.16.2 |
| PHP version | 7.3 |
| Browser | Chrome |
Steps to reproduce
- Making a post to https://example.com/api/segments/1/contacts/add using this data as content
{"ids":[[11658,11657]]}return 200 and this response
{
"success": 1,
"details": []
}
But the contacts didnt really get added to the segment.
2. I tested it on Mautic 3.x and it works fine
Log errors
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the POST request to /api/segments/1/contacts/add on Mautic 2.16.2 with {"ids":[[11658,11657]]}, then compare its behavior with Mautic 3.x. Trace the endpoint handling and verify that a successful response is followed by the contacts actually being added to segment 1.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100