Dissociate account from contact

Dissociate account from contact

Hello,

When I make the call through the API to "Dissociate account from contact"

using, 
/api/v1/contacts/**integer**/accounts/**integer**/dissociate

I get this response back,
422Unprocessable Entity (WebDAV) (RFC 4918)
{
    "errorCode": "INVALID_DATA",
    "message": "The data is invalid due to validation restrictions",
    "errors": [
        {
            "fieldName": "/accountId",
            "errorType": "invalid",
            "errorMessage": "The primary account cannot be dissociated because there are other secondary accounts mapped to this contact."
        }
    ]
}

But the contact only has one associated account (the primary)



This is the last part of some deluge code I have written in CRM to remove the Account in DESK when our business development managers remove the account in the CRM, i need to go and remove the associated account in DESK also, most of the time the contacts will only be associated with 1 account and it will likely change to null or blank if the contact leaves the industry or does not immediately find another job.

I am passing in an empty object as the body {} because it didn't work without it,

The question is, am I using the right API call, can i not remove a primary account without replacing it? is it possible to use the API to have a contact have no associated accounts?

    Access your files securely from anywhere

        Zoho FSM Video Tutorials


              All-in-one knowledge management and training platform for your employees and customers.






                                    Zoho Developer Community




                                                          • Desk Community Learning Series


                                                          • Digest


                                                          • Functions


                                                          • Meetups


                                                          • Kbase


                                                          • Resources


                                                          • Glossary


                                                          • Desk Marketplace


                                                          • MVP Corner


                                                          • Word of the Day


                                                          • Ask the Experts





                                                                    Manage your brands on social media



                                                                          Zoho TeamInbox Resources



                                                                              Zoho CRM Plus Resources

                                                                                Zoho Books Resources


                                                                                  Zoho Billing Resources

                                                                                    Zoho Projects Resources


                                                                                      Zoho Sprints Resources


                                                                                        Qntrl Resources


                                                                                          Zoho Creator Resources



                                                                                              Zoho CRM Resources

                                                                                              • CRM Community Learning Series

                                                                                                CRM Community Learning Series


                                                                                              • Kaizen

                                                                                                Kaizen

                                                                                              • Functions

                                                                                                Functions

                                                                                              • Meetups

                                                                                                Meetups

                                                                                              • Kbase

                                                                                                Kbase

                                                                                              • Resources

                                                                                                Resources

                                                                                              • Digest

                                                                                                Digest

                                                                                              • CRM Marketplace

                                                                                                CRM Marketplace

                                                                                              • MVP Corner

                                                                                                MVP Corner









                                                                                                  Design. Discuss. Deliver.

                                                                                                  Create visually engaging stories with Zoho Show.

                                                                                                  Get Started Now


                                                                                                    Zoho Show Resources

                                                                                                      Zoho Writer

                                                                                                      Get Started. Write Away!

                                                                                                      Writer is a powerful online word processor, designed for collaborative work.

                                                                                                        Zoho CRM コンテンツ




                                                                                                          Nederlandse Hulpbronnen


                                                                                                              ご検討中の方