Added API endpoint to delete and unlink custom items#363
Added API endpoint to delete and unlink custom items#363shinde-rahul wants to merge 3 commits intoacquia:stagingfrom
Conversation
|
@gunnrryy please take a look from the product perspective |
|
@escopecz I think this is helpful addition to the product. |
|
Thanks Yash@ @shinde-rahul please check the failing test. It needs an update of a GH action to a newer version. Please do so in this PR if you want to get this into the M4 version. Also, write a documentation for these endpoints to the PR description so we could copy-paste it to https://github.com/acquia/mc-cs-plugin-custom-objects/wiki/API |
|
@escopecz, Please help me with howtos for WIKI updates. I don't have permission to do that. What exactly needs to be updated regarding the failing tests? I closed and reopened the PR, which is now awaiting approval. |
|
@shinde-rahul you'll have to bump the version of the failing action: I will copy-paste the docs from this PR description to the existing API docs in wiki once this gets merged. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please remove the |
|
Hello @escopecz, I have updated tests.yml as suggested. |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please remove the |
|
Do you have any updates on this? We'd love to see it move forward! |
|
@shinde-rahul do you want to get this merged into the M4 branch (staging) or the M5 branch (5.x)? |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please remove the |
|
@escopecz, sorry for the super late reply. This is needed for M4. |
Description:
Added following endpoints,
Endpoint: Unlink Contact from Custom Item
Request Type:
DELETEURL:
/api/custom/item/{item-id}/unlink/{contact-id}Description:
This endpoint removes the association between a custom item and a contact in Mautic.
Parameters:
item-id (path parameter):
The unique identifier for the custom item from which the contact will be unlinked.
contact-id (path parameter):
The unique identifier for the contact to be unlinked from the custom item.
Headers:
Authorization:
Required for authentication. Use
Basicauthorization with your encoded credentials.Example Request:
Response:
Success:
200 OKErrors:
item-idorcontact-iddoes not exist.Example Response:
{ "success": true }Endpoint: Delete Custom Item
Request Type:
DELETEURL:
/api/custom/item/{item-id}/deleteDescription:
This endpoint permanently deletes a custom item from Mautic.
Parameters:
The unique identifier of the custom item to be deleted.
Headers:
Authorization:
Required for authentication. Use
Basicauthorization with your encoded credentials.Example Request:
Response:
Success:
200 OKErrors:
item-iddoes not exist.Example Response:
{ "success": true }Steps to test this PR: