IDOL Server 12.13

# 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:9000/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 2022 Micro Focus or one of its affiliates
Version 12.13 | Last updated October 2022

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Server 12.13

Topic Title: CategorySetTNW