external help file: TeamViewerPS-help.xml Module Name: TeamViewerPS online version: https://github.com/teamviewer/TeamViewerPS/blob/main/Docs/Help/Set-TeamViewerDeviceCustomFieldConfiguration.md schema: 2.0.0
Updates a device custom field definition.
Set-TeamViewerDeviceCustomFieldConfiguration [-APIToken] <SecureString> [-Id] <Guid> [-FieldKey] <String> [[-Description] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]Updates an existing company-level device custom field definition.
The TeamViewer API access token.
Type: SecureString
Parameter Sets: (All)
Aliases: None
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe unique identifier of the custom field definition. Alias: FieldKeyId.
Type: Guid
Parameter Sets: (All)
Aliases: FieldKeyId
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe name of the custom field.
Type: String
Parameter Sets: (All)
Aliases: None
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseAn optional description of the custom field.
Type: String
Parameter Sets: (All)
Aliases: None
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseSet-TeamViewerDeviceCustomFieldConfiguration -APIToken $apiToken -Id $fieldId -FieldKey 'AssetTag'Updates the custom field identified by $fieldId and sets its key to AssetTag.
Set-TeamViewerDeviceCustomFieldConfiguration -Id 'c0cb303a-8a85-4e54-b657-a4757c791aef' -FieldKey 'AssetTag' -Description 'Inventory asset tag number'Updates the custom field key and sets a description in a single call.
Set-TeamViewerDeviceCustomFieldConfiguration -FieldKeyId 'c0cb303a-8a85-4e54-b657-a4757c791aef' -FieldKey 'Location' -Description ''Uses the FieldKeyId alias to rename the field to Location and clears its description.
Returns the updated device custom field definition.