put http://<host>:9100/api/versioned/v1/projects//attributeConfigurations/
Replace (overwrite) an attribute configuration
This endpoint allows updating of machine learning details for a unified attribute. For example, the PUT
body:
{
"similarityFunction": "COSINE",
"enabledForMl": true,
"tokenizer": "DEFAULT",
"attributeName": "My Unified Attribute"
}
updates the configuration for My Unified Attribute
. Note that the id
, relativeId
, and relativeAttributeId
returned in the response can be optionally included in the PUT
body if desired.
There are other requirements for the PUT
body.
similarityFunction
must be specified. Available functions areCOSINE
,JACQUARD
,ABSOLUTE_DIFF
, andRELATIVE_DIFF
. The default isABSOLUTE_DIFF
.numericFieldResolution
ortokenizer
must be specified, but not both. Options for the tokenizer are 'DEFAULT',STEMMING_EN
,BIGRAM
,TRIGRAM
,BI-WORD
, andREGEX
.- If
attributeRole
is empty, it can be omitted. If it is specified, the options areSUM_ATTRIBUTE
for spend andCLUSTER_NAME_ATTRIBUTE
for supplier, as applicable to each project type. enabledForMl
will default tofalse
if left blank.
Response Fields
Returns an attribute configuration object describing the attribute configuration that has been updated.