
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2024 04:30 PM
Hi !
I'm trying to use the "editAsset" function using Lansweeper API.
With Postman I make a POST on https://api.lansweeper.com/api/v2/graphql/ , providing my token on the Header.
I copied pasted the EXAMPLE REQUEST on this page https://api.lansweeper.com/api/v2/graphql/ as GraphSQL Query and gives as variables my site id and an asset kay.
Solved! Go to Solution.
- Labels:
-
API & Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2024 11:31 AM
hi @mmazoyer
The asset key can be obtained with the asset.assetKey field, you can use the query in https://docs.lansweeper.com/docs/api/getting-data#get-asset-details to get the asset details, including the key.
~~~~~~~ (〃 ̄︶ ̄)人( ̄︶ ̄〃) ~~~~~~~
Sweep that LAN, sweep it!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2024 04:40 PM
hi @David_GF
Thanks for this answer.
It seems that the asset.assetKey field does not exist on the API...
But, I finally resoled the problem using the resourceGroup.assetKey field.
Thanks !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2024 11:31 AM
hi @mmazoyer
The asset key can be obtained with the asset.assetKey field, you can use the query in https://docs.lansweeper.com/docs/api/getting-data#get-asset-details to get the asset details, including the key.
~~~~~~~ (〃 ̄︶ ̄)人( ̄︶ ̄〃) ~~~~~~~
Sweep that LAN, sweep it!
