From 0bc582dba76dd5049f6e0ee1b503e6bca3e1ebf1 Mon Sep 17 00:00:00 2001 From: Christophe Gosiau Date: Thu, 1 Feb 2024 23:52:20 +0100 Subject: [PATCH] Add support for Tag: Administration scope --- README.md | 3 ++- src/Resource/Tag.php | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d733c89..b5aa2aa 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ Additionally you can have a look at the REST interface documentation of Zammad: * [Ticket priorities](https://docs.zammad.org/en/latest/api/ticket-priority.html) * [Ticket states](https://docs.zammad.org/en/latest/api/ticket-state.html) * [Tags](https://docs.zammad.org/en/latest/api/tags.html) +* [Tag list](https://docs.zammad.org/en/latest/api/ticket/tags.html#administration-scope) #### Fetching a ticket's articles If you already have a ticket object, you can easily fetch its articles: @@ -307,7 +308,7 @@ $client->resource( ResourceType::TICKET ); | ORGANIZATION|✔|✔|✔|✔|✔|–|–|✔| | GROUP|✔|✔|–|✔|✔|–|–|–| | USER|✔|✔|✔|✔|✔|–|–|✔| -| TAG|✔|–|✔|–|–|✔|✔|–| +| TAG|✔|✔|✔|✔|✔|✔|✔|–| ## Publishing diff --git a/src/Resource/Tag.php b/src/Resource/Tag.php index de1d455..d481fc9 100644 --- a/src/Resource/Tag.php +++ b/src/Resource/Tag.php @@ -13,7 +13,11 @@ class Tag extends AbstractResource 'get' => 'tags', 'search' => 'tag_search?term={query}', 'add' => 'tags/add', - 'remove' => 'tags/remove' + 'remove' => 'tags/remove', + 'all' => 'tag_list', + 'create' => 'tag_list', + 'update' => 'tag_list/{object_id}', + 'delete' => 'tag_list/{object_id}', ]; /**