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.
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.
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 !
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.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now