Hi
I created a customer using REST API
POST /rest/servicedeskapi/customer
I now want to delete the customer (I am testing my methods)
I cannot see it under people or customers in my service desk but I get this error whenI use same email etc
This request is invalid. Check that the request contains all the required parameters and that the parameters are valid. (email : An account already exists for this email)
How do I delete customers? Preferably via API but if not from backend login?
Thanks
Hi Jason,
Thank you for reaching out to Atlassian Community!
Just to make sure that we are on the same page, you are using the endpoint below, is that correct?
DELETE /rest/servicedeskapi/servicedesk/{serviceDeskId}/customer
You mentioned that the customer is not showing on the project, can you please go to Administration > Jira Service Desk and check if the customer account is there?
On this screen, you can also delete the customer account.
Regards,
Angélica
Hi where do you put the account id or email or whatever it takes in this call?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, I forgot to link the documentation that contains the curl example:
curl --request DELETE \
--url 'https://your-domain.atlassian.net/rest/servicedeskapi/servicedesk/{serviceDeskId}/customer' \
--header 'Content-Type: application/json' \
--data '{
"accountIds": [
"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3a01db05e2a66fa80bd",
"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae",
"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b"
],
"usernames": [
"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3a01db05e2a66fa80bd",
"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d69abfa3980ce712caae",
"qm:a713c8ea-1075-4e30-9d96-891a7d181739:5ad6d3581db05e2a66fa80b"
]
}'
Please, give it a try and let us know how it goes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.