-
Notifications
You must be signed in to change notification settings - Fork 20
Added API endpoint to delete and unlink custom items #363
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
base: staging
Are you sure you want to change the base?
Added API endpoint to delete and unlink custom items #363
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! |
Description:
Added following endpoints,
Endpoint: Unlink Contact from Custom Item
Request Type:
DELETE
URL:
/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
Basic
authorization with your encoded credentials.Example Request:
Response:
Success:
200 OK
Errors:
item-id
orcontact-id
does not exist.Example Response:
Endpoint: Delete Custom Item
Request Type:
DELETE
URL:
/api/custom/item/{item-id}/delete
Description:
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
Basic
authorization with your encoded credentials.Example Request:
Response:
Success:
200 OK
Errors:
item-id
does not exist.Example Response:
Steps to test this PR: