API3
martkuper at May 6th, 2015 09:10 — #1
I'm working on implementing the OnePageCRM API with our application and I need to assign and unassign tags to/from contacts. Assigning tags works fine by issuing the following request:
PUT https://app.onepagecrm.com/api/v3/contacts/{id}/assign_tag/Client.json
When i subsequently want to unassign this tag I issue the following request:
PUT https://app.onepagecrm.com/api/v3/contacts/{id}/unassign_tag/Client.json
The request for unassigning the tag however returns an HTTP error 500: Internal Server Error. According to the API documentation assigning and unassigning tags can be done by either tag_id or tag_name. I tried removing tags by tag_id, but I can't find where the tag_id's are located.
Any ideas will be appreciated.
johnmag at May 7th, 2015 03:23 — #2
Hi,
I'm investigating this now and I will get back to you shortly
.
Thanks,
John
johnmag at May 7th, 2015 10:32 — #3
Hi there,
I've had a look at this issue and there was a bug in our API that was preventing a user from unassigning tags in OnePageCRM. I've fixed and tested this and it's working now.
You should be able to unassign tags now in the way you've stated above:
PUT https://app.onepagecrm.com/api/v3/contacts/{id}/unassign_tag/Client.json
Thank you for bringing this to our attention.
Please let me know how this works for you.
Kind regards,
John
martkuper at May 13th, 2015 08:20 — #4
I have tested it and it works again. Thank you for your quick response!
Regards,
Mart
Powered by Discourse, best viewed with JavaScript enabled