docs: Document HTTP 409 response when deleting fields in use by Segments#295
docs: Document HTTP 409 response when deleting fields in use by Segments#295promptless-for-oss wants to merge 2 commits intomautic:5.xfrom
Conversation
Signed-off-by: promptless-for-oss <promptless-for-oss@users.noreply.github.com>
|
|
||
| ``DELETE /fields/contact/ID/delete`` or ``DELETE /fields/company/ID/delete`` | ||
|
|
||
| .. note:: |
There was a problem hiding this comment.
Citation: Based on PR #15882 which adds HTTP 409 (Conflict) response to the API when trying to delete custom fields that are in use by segments. The key changes are in app/bundles/ApiBundle/Controller/CommonApiController.php which now catches DeleteEntityDependencyException and returns 409, and app/bundles/LeadBundle/Field/EventListener/LeadFieldSubscriber.php which checks for segment dependencies.
View source
|
This PR will need to be rebased onto the 7.1 branch once it's created. |
Signed-off-by: promptless-for-oss <promptless-for-oss@users.noreply.github.com>
|
I've processed your request, but no documentation changes were needed. |
|
Promptless escalated the following message to you. If you respond, please remember to tag Promptless: I reviewed PR #295 and found that RCheesley's feedback has already been addressed:
No further changes are needed at this time. I'll handle the rebase when the 7.1 branch is created. |
Open this suggestion in Promptless to view citations and reasoning process
Adds documentation to the Fields API delete endpoint explaining that attempting to delete a field that's in use by a Segment returns an HTTP 409 (Conflict) response. This behavior was added to make the API consistent with the Mautic UI, which already prevents deletion of fields in use by Segments.
Trigger Events
mautic/mautic PR #15882: Prevent deletion of custom fields if they are in use by segments via API
Promptless Research (1 GitHub PR)
Agent Response
Tip: Attach PDFs in Slack messages to Promptless—it can even extract images from them 📎