# CategorySetTNW

Allows you to adjust category terms and weights.

You must specify the category modify by setting Category, and set Terms and Weights to the list of terms and their weights.

To remove all term weighting values that you have previously set, use `CategorySetTNW`, but omit the Terms and Weights parameters.

NOTE: This is an administrative action that can be sent only by users that belong to an authorization role that allows the `Admin` standard role, or which enables the action explicitly. See Authorization Roles Configuration Parameters.

## Example

    http://12.3.4.56:9020/action=CategorySetTNW&Category=32349987602210557106&Terms=tax,money,budget&Weights=2353,1223,1023

This action sets the weight of the term tax to `2353`, the weight of the term money to `1223`, and the weight of the term budget to `1023`.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
Category | The ID of the category to set terms and weights for.
Terms | The terms to set weights for. You can omit this parameter only if you want to remove all term weighting values that you have previously set.
Weights | The weights to set for the specified Terms. You can omit this parameter only if you want to remove all term weighting values that you have previously set.

## Optional Parameters

This action accepts the following optional parameters.

Parameter | Description
--- | ---
BuildNow | Whether to build the category immediately.
Encoding | The encoding of the specified terms.
UserName | The name of the user that sends the action.

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
EncryptResponse | Encrypt the output.
FileName | The file to write output to.
ForceTemplateRefresh | Forces the server to load the template from disk.
Output | Writes output to a file.
ResponseFormat | The format of the action output.
Template | The template to use for the action output.
TemplateParamCSVs | A list of variables to use for the specified template.

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm