Hello!
I am currently working on setting up an integration against the API, and I would like to be able to clear the notification list on a ticket but am not able to do so.
From what I can tell, according to the API reference for updating a ticket (
https://api-doc.assembla.com/content/ref/tickets_update.html) and definition for a ticket object (
https://api-doc.assembla.com/content/ref/ticket_fields.html) I should be able to clear the list by passing an empty string to the API in the put request.
PUT /v1/spaces/[SPACENAME]/tickets/[TICKETNUMBER] HTTP/1.1
X-Api-Key: [KEY]
X-Api-Secret: [SECRETKEY]
Content-Type: application/json
{"ticket":{"notification_list":""}}
It seems like what I am doing is correct but I am not seeing any change at all in Assembla.
I have also tried changing the notification list to only contain one email addres using the following request
PUT /v1/spaces/[SPACENAME]/tickets/[TICKETNUMBER] HTTP/1.1
X-Api-Key: [KEY]
X-Api-Secret: [SECRETKEY]
Content-Type: application/json
This only adds a new follower to the notification list however. Contradicting the statement made in the API reference regarding the field "notification_list":
"A list of user IDs and emails separated by a comma, be careful when updating this field, any update operation will totally rewrite the field, you have to programmatically get the existing list, append your data to it and update the field with the full list."
Any help would be appreciated.