await client.updateFile({
id: 'YOUR_FILE_ID',
accessPolicies: ['integrations'], // This value will replace the existing access policies of the file.
tags: {
// This acts as a "patch" or partial update, so only the tags specified here will be updated, the rest will remain unchanged. If you need to delete an existing tag, you can set it to a `null` value.
category: 'Support', // This tag will be updated.
knowledgeBaseName: null, // This tag will be deleted.
subcategory: 'Technical', // This tag will be added.
// Any other tags not specified here will remain unchanged.
},
})