The ADD_ASPECT action adds an aspect to a file or folder in Alfresco Content Services (ACS).
Aspects are content-model extensions that add additional metadata, behavior, and functionality to repository content. Use this action to apply standard or custom aspects to files and folders, enabling additional capabilities such as reviews, classifications, governance controls, or business-specific metadata. The action can also assign metadata values associated with the aspect being added.
During the operation the connector identifies the target file or folder. ACS validates the specified aspect and adds it to the content. Any supplied metadata values are also applied. The content gains the functionality and properties associated with the aspect.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| aspect | String | Optional | Aspect to add to the file or folder. For example: rv:reviewable. |
| file | Array<json>, JSON | Optional | ACS file to update. If multiple files are provided, only the first file is processed. |
| folder | Array<json>, JSON | Optional | ACS folder to update. If multiple folder references are provided, only the first folder is used. |
| nodeId | String | Optional | Node ID of the file or folder. For example: a6a977a6-c728-4038-8dbc-d914c4d8cfb3. |
| noteMetadata | JSON | Optional | Metadata values to assign to the node. The JSON object contains property names and values, for example {"cm:title":"Introduction to AWS"}. |
| path | String | Optional | Location or relative path of the file or folder to update. |
| underscoreMetadata | Boolean | Optional | Indicates whether metadata property names use underscores (_) instead of colons (:) between the namespace prefix and property name. For example, cm_title instead of cm:title. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| response | Array<json> | Optional | Response returned by ACS for the aspect assignment request. |