From 88346f1d5c897fd087f379cbb1b2080c4bcfba44 Mon Sep 17 00:00:00 2001 From: Marnick Date: Wed, 30 Mar 2022 16:00:39 +0200 Subject: [PATCH] add getAssetAssignments endpoint --- src/Endpoints/Asset.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Endpoints/Asset.php b/src/Endpoints/Asset.php index 2236fce..eee3b33 100644 --- a/src/Endpoints/Asset.php +++ b/src/Endpoints/Asset.php @@ -33,4 +33,14 @@ public function getAssetById($id) { return $this->request('GET', "api/assetmgmt/assets/${id}"); } + + /** + * @see https://developers.topdesk.com/explorer/?page=assets#/assignments/getAssignments + * @param $id + * @return + */ + public function getAssetAssignments($id) + { + return $this->request('GET', "api/assetmgmt/assets/${id}/assignments"); + } }