We’re currently experiencing a high volume of support requests, which may result in longer response times — thank you for your patience and understanding.
Community FAQ
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
howardchan
Engaged Sweeper

I wanted to use API to edit the custom field value. Here is my code.

mutation Site {
    site(id: <site id>) {
        editAsset(
            key: <asset key>,
            fields: { assetCustom: { fields: {
                                        fieldKey: <custom field key>,
                                        value: "API edit testing"
            } } }
        )
    }
}
 
But I got the below error. Anyone could help? thanks.

"message": "Field 'editAsset' of type 'EditAssetResponse' must have a selection of subfields. Did you mean 'editAsset { ... }'?"
1 REPLY 1
Obi_1_Cinobi
Lansweeper Tech Support
Lansweeper Tech Support

Hello there!

We would recommend reaching out to our technical support team if you need further technical assistance, please raise a support case here: https://www.lansweeper.com/contact/contact-support/

If you need technical support and have issues with accessing the Support Portal, please use this URL instead: https://www.lansweeper.com/contact/contact-support-case/

General Discussions

Find answers to technical questions about Lansweeper.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now