User GuidesAPI ReferenceRelease Notes
Doc HomeHelp CenterLog In
API Reference

Update an Attribute Configuration

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.

  1. similarityFunction must be specified. Available functions are COSINE, JACQUARD, ABSOLUTE_DIFF, and RELATIVE_DIFF. The default is ABSOLUTE_DIFF.
  2. numericFieldResolution or tokenizer must be specified, but not both. Options for the tokenizer are 'DEFAULT', STEMMING_EN, BIGRAM, TRIGRAM, BI-WORD, and REGEX.
  3. If attributeRole is empty, it can be omitted. If it is specified, the options are SUM_ATTRIBUTE for spend and CLUSTER_NAME_ATTRIBUTE for supplier, as applicable to each project type.
  4. enabledForMl will default to false if left blank.

Response Fields

Returns an attribute configuration object describing the attribute configuration that has been updated.

Language