API set labels

Hey,

The api has an option to set custom fields but not labels. Is it posible to set a label through the api?
https://developers.trengo.com/docs/set-ticket-data

Please add this function. I would like to add a label for every site I've got. (+20)

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Jesse Bakker You can use Attach a label https://developers.trengo.com/reference/apply-a-label

    Like
    • Daniela Backman How does that work in this case? something like this?

       

      window.Trengo = window.Trengo || {};
      window.Trengo.contact_data = {
        email: 'info@trengo.com',
        name: 'John Doe',
        custom_fields: [{
           field_id: 82736,
           value: 'Contact value A'
        }],
        labels??: [{
           label_id: 82736
        }]
      };
      Like
Like Follow
  • Status Answered
  • 5 mths agoLast active
  • 2Replies
  • 17Views
  • 2 Following