Skip to content

Commit

Permalink
add getAssetAssignments endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
marnickmenting committed Mar 30, 2022
1 parent f3c2984 commit 88346f1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Endpoints/Asset.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

0 comments on commit 88346f1

Please sign in to comment.