mautic / mautic/api-library

Segment API not working

Open
#219 0 comments 0 reactions 0 assignees View on GitHub

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
  1. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.