Attribute that shall be assigned to sentences in the Authoring Memory must be defined first.
The endpoint to define attributes, i.e. to make them known and usable within the Authoring Memory is : <host>/Congree/Congree/api/AuthoringMemory/v1/Attributes
The attribute to be defined is passed as a JSON object in the body.
{ "Type": "Undefined", "Name": "string", "Values": [ "string" ] }
Property | Description |
---|---|
Type | The type of the attribute. Possible values are Undefined, Text or Pickllist |
Name | The name of the attribute |
Values | An array of possible values |
Let's assume we want to add an attribute allowing us to store the ID of a module coming from a CMS. To be able to do so we define an attribute Module-ID.