This object is in archive! 
How to change customer tags with the API
Answered
I'm trying to update the tags for a customer using the API. I'm using this as a reference. I'm posting this data:
{ tags : "test1,test2" }and getting a 409 code back, but the tags are not updated. The modified time does change however.
I've also tried to update the fax number for a customer.
{ fax : "54321" }This works as expected, code 409 is returned and the customer's fax number is updated.
Am I using the wrong format for tags or is this a bug?
This sounds like a bug. I have a developer looking into it and will get back to you.
This sounds like a bug. I have a developer looking into it and will get back to you.
try using custtags instead
try using custtags instead
custtags works, but will only add tags. If it's already tagged with "Corporate", and I send:
the tags now read: ["test1","test2","Corporate"]Is there any way to have it set the tags instead of adding to them?
custtags works, but will only add tags. If it's already tagged with "Corporate", and I send:
the tags now read: ["test1","test2","Corporate"]Is there any way to have it set the tags instead of adding to them?
I've added another option:
cleartags: 1
this will cause the custtags to clear before setting.
I've added another option:
cleartags: 1
this will cause the custtags to clear before setting.
I think it did remove the tags, but only once. It seems to have stopped working now.
Since then, I haven't gotten it to work again. Posting:
adds "aaa" to the tags, keeping all previous tags. I've been testing this on customers 2439085 and 2448047 if that helps.I think it did remove the tags, but only once. It seems to have stopped working now.
Since then, I haven't gotten it to work again. Posting:
adds "aaa" to the tags, keeping all previous tags. I've been testing this on customers 2439085 and 2448047 if that helps.You need to be using api2, as api1 doesn't support this flag.
You need to be using api2, as api1 doesn't support this flag.
I just double checked, I think I am using api2.
I just double checked, I think I am using api2.
Okay, this has been fixed (again)! Sorry about the delay on this.
Okay, this has been fixed (again)! Sorry about the delay on this.
Replies have been locked on this page!