Attribute Management
Add Attribute to Schema
Use this API to add an attribute to a specific schema.
🗒 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-attributes
Query parameters
schemaNamestring required
Name of the schema where the attribute will be created
Request body
Example request
{
"fieldName": "nameOfRecord",
"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",
"responseType": "Text",
"optionType": "None",
"options": [
{
"option": "Example Option",
"optionKey": "example_option",
"optionSelectionValue": "value1",
"colorCode": "#FFFFFF"
}
],
"referenceCategoryIds": [
"550e8400-e29b-41d4-a716-446655440000"
],
"formula": "Default:Field4 + Default:Field3 + 100",
"source": "system",
"responseSubType": "STANDARD",
"associatedAttributeRequest": {
"associatedAttributes": [
{
"options": [
{
"option": "Example Option",
"optionKey": "example_option",
"optionSelectionValue": "value1",
"colorCode": "#FFFFFF"
}
]
}
]
},
"maxMultiSelectAllowedOptionValues": 10,
"validationRuleId": "email",
"abacBasicAssignmentInfo": [
{
"assignmentId": "550e8400-e29b-41d4-a716-446655440000",
"assignmentName": "Assignment1",
"policyStatus": "ACTIVE"
}
]
}Response
Created
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"
}