3 weeks ago
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.
3 weeks ago
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.
3 weeks ago
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 !
3 weeks ago
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