Attribute Management
Add Options to Attribute
Use this API to add options to an attribute.
🗒 Things to Know
- This API only supports AI Governance entities (Models, Datasets, AI Systems, and AI Agents).
- AI Governance APIs will become available over the course of the Spring as customer tenants are upgraded to enhanced AI Governance services. No customer action is required and more detailed information will be published in upcoming release notes and product documentation.
post/api/ai-governance/v1/schema-attribute-options
Query parameters
attributeIdstring uuid required
Unique identifier of the attribute to which options will be added
Request body
Example request
[
{
"option": "Example Option",
"optionKey": "example_option",
"optionSelectionValue": "value1",
"colorCode": "#FFFFFF"
}
]Response
OK
Example response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Type of the Record",
"nameKey": "IM.Name",
"description": "Gather Type for the record - provide some value related to nature of record",
"descriptionKey": "IM.Name.Description",
"fieldName": "nameOfRecord",
"mappedFieldName": "name",
"enabled": true,
"responseType": "Text",
"formula": "Default:Field4 + Default:Field3 + 100 + avg(CrossSchema:Field4 + Default:Field3)",
"optionType": "None",
"schemaId": "550e8400-e29b-41d4-a716-446655440000",
"schemaName": "vendors",
"options": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"option": "TypeA",
"optionKey": "IM.TypeA",
"colorCode": "#FF5733",
"sequence": 1,
"enabled": true
}
],
"referenceCategories": [
{
"name": "Financial Category",
"nameKey": "IM.FinancialCategoryName"
}
],
"responseMaxLength": 4000,
"responseSubType": "STANDARD",
"associatedAttributeInformation": [
{
"name": "Count of members",
"nameKey": "IM.CountOfMembersName",
"description": "Provide details about count associated with this attribute",
"descriptionKey": "IM.CountOfMembersDesc",
"schemaName": "risk",
"fieldName": "countOfMembers",
"mappedFieldName": "count",
"formula": "sum(1, 3)",
"options": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"option": "TypeA",
"optionKey": "IM.TypeA",
"colorCode": "#FF5733",
"sequence": 1,
"enabled": true
}
]
}
],
"multiSelectMaxOptionValues": 10,
"optionUrl": "/api/risk-v2/risk-categories",
"deleteMarker": "MARKED_FOR_DELETE",
"optionMetadata": {
"entityTypeName": "Location",
"basicServiceContextPath": "/api/location",
"optionUrl": "/api/ontology/ui/v1/entity-types/names/purpose/entities/basic-details/pages",
"optionListUrl": "/api/ontology/ui/v1/entity-types/names/purpose/entities/basic-details",
"optionType": "BusinessLocations",
"applicationUrl": "/settings/location-management/location/Location"
},
"validationRuleId": "email",
"abacBasicAssignmentInfo": [
{
"assignmentId": "550e8400-e29b-41d4-a716-446655440000",
"assignmentName": "Assignment1",
"policyStatus": "ACTIVE"
}
],
"displayResponseType": "SingleSelect"
}