huddledigital / zendesk-laravel

Laravel wrapper for zendesk/zendesk_api_client_php package.
MIT License
104 stars 71 forks source link

Add tags #20

Open polarikus opened 3 years ago

polarikus commented 3 years ago

Hello! How i can add tags to ticket?

Zendesk::tickets()->update($id,[
            'priority' => $priority,
            'comment'  => [
                'body' => $text,
                'public' => false,
            ],
            'tags' => ['support_bot_update_priority']
        ]);

This delete all tags, and set one tag "support_bot_update_priority" I try use

Zendesk::tickets()->update($id,[
            'priority' => $priority,
            'comment'  => [
                'body' => $text,
                'public' => false,
            ],
            '**additional_tags**' => ['support_bot_update_priority']
        ]);

it's not work((