---
updatedAt: 2026-05-27T12:53:04.000Z
agentTools:
  projectIndex: https://developer.onetrust.com/onetrust/llms.txt
---

# Get Attribute Schema

Use this API to retrieve the attribute schema for the specified attribute type.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Tech Risk & Compliance - Issues Management",
    "version": "1.0",
    "contact": {
      "name": "OneTrust Support",
      "url": "https://my.onetrust.com/s/contactsupport"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0"
    },
    "description": "The Issues Management APIs are used to integrate external systems and streamline the flow of data with Issues Management in the OneTrust platform."
  },
  "servers": [
    {
      "url": "https://{hostname}/api/issue-management",
      "variables": {
        "hostname": {
          "default": "hostname",
          "description": "The OneTrust hostname such as app.onetrust.com, app-eu.onetrust.com, app-de.onetrust.com, app-uk.onetrust.com, app-apac.onetrust.com, trial.onetrust.com, or uat.onetrust.com."
        }
      }
    }
  ],
  "tags": [
    {
      "name": "Issues",
      "description": "The Issues APIs are used to manage issues, issue tasks, and issue relationships.",
      "externalDocs": {
        "description": "OpenAPI 3.1.0 - Download Definition",
        "url": "https://developer.onetrust.com/onetrust/openapi/tech-risk-compliance-issues-management.json"
      }
    }
  ],
  "x-onetrust": {
    "spec-label": "OpenAPI 3.1.0",
    "links": [
      "{'Issues Management Knowledge Base': 'https://my.onetrust.com/s/topic/0TO3q000000sjDAGAY/issues-management'}"
    ]
  },
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "metrics-enabled": false
  },
  "paths": {
    "/v1/attributes": {
      "get": {
        "operationId": "getAttributesBySchemaNameUsingGET",
        "summary": "Get Attribute Schema",
        "description": "Use this API to retrieve the attribute schema for the specified attribute type.",
        "tags": [
          "Issues"
        ],
        "x-onetrust": {
          "spec-label": "https://developer.onetrust.com/onetrust/openapi/tech-risk-compliance-issues-management.json"
        },
        "parameters": [
          {
            "name": "schemaName",
            "in": "query",
            "description": "The name of the attribute schema.",
            "required": true,
            "schema": {
              "type": "string",
              "example": "Issue",
              "enum": [
                "Issue"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AttributeInformation"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden"
          },
          "429": {
            "description": "Too Many Requests. \nFor more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).",
            "headers": {
              "Retry-After": {
                "schema": {
                  "description": "The number of seconds after which requests will be allowed again.",
                  "format": "int32"
                }
              },
              "ot-period": {
                "schema": {
                  "description": "The unit of time for which the rate limit applies",
                  "enum": [
                    "HOUR",
                    "MINUTE"
                  ]
                }
              },
              "ot-ratelimit-event-id": {
                "schema": {
                  "description": "The unique identifier for the rate-limiting event.",
                  "format": "uuid"
                }
              },
              "ot-request-made": {
                "schema": {
                  "description": "The number of requests made within the specified period.",
                  "format": "int32"
                }
              },
              "ot-requests-allowed": {
                "schema": {
                  "description": "The number of requests allowed within the specified period.",
                  "format": "int32"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "security": [
          {
            "OAUTH2": [
              "ISSUE",
              "ISSUE_READ"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "AbacBasicAssignmentInfo": {
        "type": "object",
        "properties": {
          "assignmentId": {
            "description": "The unique identifier of the linked assignment.",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "assignmentName": {
            "description": "The name of the linked assignment.",
            "type": "string",
            "example": "Assignment1"
          }
        }
      },
      "AssociatedAttributeInformation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the attribute.",
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "description": "The name of the attribute.",
            "type": "string",
            "example": "Count of members"
          },
          "nameKey": {
            "description": "The fallback name of the attribute that is used if a translation is not provided for a language.",
            "type": "string",
            "example": "IM.CountOfMembersName"
          },
          "description": {
            "description": "The description of the attribute.",
            "type": "string",
            "example": "Provide details about count associated with this attribute"
          },
          "descriptionKey": {
            "description": "The fallback description of the attribute that is used if a translation is not provided for a language.",
            "type": "string",
            "example": "IM.CountOfMembersDesc"
          },
          "schemaId": {
            "description": "The unique identifier of the attribute schema.",
            "type": "string",
            "format": "uuid"
          },
          "schemaName": {
            "description": "The name of the attribute schema.",
            "type": "string",
            "example": "risk"
          },
          "fieldName": {
            "description": "The fieldName parameter value of the attribute.",
            "type": "string",
            "example": "countOfMembers"
          },
          "mappedFieldName": {
            "description": "The fieldName parameter value of the attribute.",
            "type": "string",
            "example": "count"
          },
          "enabled": {
            "description": "This flag indicates if the attribute is enabled.",
            "type": "boolean"
          },
          "responseType": {
            "description": "The type of response associated with the attribute.",
            "type": "string",
            "enum": [
              "Text",
              "SingleSelect",
              "MultiSelect",
              "Date",
              "DateTime",
              "NumericalText",
              "NumericalSingleSelect",
              "RadioButton",
              "TextArea",
              "Formula",
              "Level",
              "Range",
              "Score",
              "System"
            ]
          },
          "responseSubType": {
            "description": "The type of scoring method associated with the attribute.",
            "type": "string",
            "enum": [
              "Standard",
              "Formula",
              "Matrix",
              "RollUp"
            ]
          },
          "formula": {
            "description": "The mathematical formula containing functions and other numerical attributes that is used to calculate the attribute value.",
            "type": "string",
            "example": "sum(1, 3)"
          },
          "options": {
            "description": "The options for the attribute.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttributeOptionInformation"
            }
          },
          "optionsByDomain": {
            "description": "The attribute options that are overridden by domain.",
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AttributeDomainOptionOverrideInformation"
              }
            }
          }
        },
        "required": [
          "enabled",
          "fieldName",
          "id",
          "name",
          "responseType"
        ]
      },
      "AttributeDomainOptionOverrideInformation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "Override Option GUID",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "attributeDomainOptionId": {
            "description": "Domain Option GUID",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440001"
          },
          "targetAttributeId": {
            "description": "Target Attribute GUID",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440002"
          },
          "targetOptionId": {
            "description": "Target Option GUID",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440003"
          },
          "option": {
            "description": "Option name",
            "type": "string",
            "example": "TypeA"
          },
          "optionKey": {
            "description": "Option name key",
            "type": "string",
            "example": "TypeB"
          },
          "optionSelectionValue": {
            "description": "Option selection value",
            "type": "string",
            "example": 10
          },
          "colorCode": {
            "description": "Color code for the option",
            "type": "string",
            "example": "#FF5733",
            "maxLength": 7
          },
          "sequence": {
            "description": "Option sequence for ordering",
            "type": "integer",
            "format": "int32",
            "example": 1,
            "maximum": 32767,
            "minimum": 1
          },
          "enabled": {
            "description": "Indicates if the option is enabled or disabled",
            "type": "boolean",
            "example": true,
            "default": "true"
          },
          "optionSelectionValueAsDouble": {
            "type": "number",
            "format": "double"
          }
        }
      },
      "AttributeInformation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the attribute.",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "name": {
            "description": "The name of the attribute.",
            "type": "string",
            "example": "Type of the Record",
            "maxLength": 255,
            "minLength": 1
          },
          "nameKey": {
            "description": "The fallback name of the attribute that is used if a translation is not provided for a language.",
            "type": "string",
            "example": "IM.Name",
            "maxLength": 255
          },
          "description": {
            "description": "The description of the attribute.",
            "type": "string",
            "example": "Gather Type for the record - provide some value related to nature of record",
            "maxLength": 1000
          },
          "descriptionKey": {
            "description": "The fallback description of the attribute that is used if a translation is not provided for a language.",
            "type": "string",
            "example": "IM.Name.Description",
            "maxLength": 255
          },
          "fieldName": {
            "description": "The fieldName parameter value of the attribute.",
            "type": "string",
            "example": "nameOfRecord",
            "maxLength": 100,
            "minLength": 1
          },
          "mappedFieldName": {
            "description": "The fieldName parameter value of the attribute.",
            "type": "string",
            "example": "name",
            "maxLength": 100
          },
          "enabled": {
            "description": "This flag indicates whether the attribute is enabled.",
            "type": "boolean",
            "example": true,
            "default": "true"
          },
          "required": {
            "description": "This flag indicates whether the attribute is required.",
            "type": "boolean",
            "example": false,
            "default": "false"
          },
          "readOnly": {
            "description": "This flag indicates whether the attribute is read-only.",
            "type": "boolean",
            "example": false,
            "default": "false"
          },
          "encrypted": {
            "description": "This flag indicates whether the attribute is encrypted.",
            "type": "boolean",
            "example": false,
            "default": "false"
          },
          "allowOther": {
            "description": "This flag indicates whether Other can be selected as an option for the attribute value.",
            "type": "boolean",
            "example": false,
            "default": "false"
          },
          "baseAttribute": {
            "description": "This flag indicates whether the attribute is a system attribute.",
            "type": "boolean",
            "example": false,
            "default": "false"
          },
          "responseType": {
            "description": "The type of response associated with the attribute value.",
            "type": "string",
            "example": "Text",
            "enum": [
              "Text",
              "SingleSelect",
              "MultiSelect",
              "Date",
              "Formula",
              "Score",
              "Level",
              "Range"
            ]
          },
          "formula": {
            "description": "The mathematical formula containing functions and other numerical attributes that is used to calculate the attribute value.",
            "type": "string",
            "example": "Default:Field4 + Default:Field3 + 100 + avg(CrossSchema:Field4 + Default:Field3)",
            "maxLength": 4000
          },
          "optionType": {
            "description": "The type of system list used to source the attribute option.",
            "type": "string",
            "example": "None",
            "enum": [
              "None",
              "Static",
              "Dynamic"
            ]
          },
          "optionAllowed": {
            "description": "This flag indicates whether options were configured for the attribute.",
            "type": "boolean",
            "example": false,
            "default": "false"
          },
          "schemaId": {
            "description": "The unique identifier of the attribute schema.",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "schemaName": {
            "description": "The name of the attribute schema. ",
            "type": "string",
            "example": "vendors",
            "maxLength": 100
          },
          "options": {
            "description": "The details of the attribute options.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AttributeOptionInformation"
            }
          },
          "referenceCategories": {
            "description": "The category details of the attribute.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CategoryInformation"
            }
          },
          "responseMaxLength": {
            "description": "The maximum number of characters that can be entered for the attribute value.",
            "type": "integer",
            "format": "int32",
            "example": 4000,
            "default": "4000",
            "maximum": 4000,
            "minimum": 1
          },
          "responseSubType": {
            "description": "The type of scoring method associated with the attribute value.",
            "type": "string",
            "example": "STANDARD",
            "enum": [
              "STANDARD",
              "FORMULA",
              "MATRIX"
            ]
          },
          "associatedAttributeInformation": {
            "description": "The details of the attribute.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AssociatedAttributeInformation"
            }
          },
          "multiSelectMaxOptionValues": {
            "description": "The maximum number of options that can be selected for the attribute.",
            "type": "integer",
            "format": "int32",
            "example": 10,
            "maximum": 100,
            "minimum": 1
          },
          "hidden": {
            "description": "This flag indicates whether the attribute is hidden.",
            "type": "boolean",
            "example": false,
            "default": "false"
          },
          "optionUrl": {
            "description": "The API URL path used to source the attribute option.",
            "type": "string",
            "example": "/api/risk-v2/risk-categories",
            "maxLength": 255
          },
          "intakeQuestion": {
            "description": "The details of the assessment question for which the issue was flagged.",
            "$ref": "#/components/schemas/IntakeQuestion"
          },
          "deleteMarker": {
            "description": "The status of the attribute marked for deletion.",
            "type": "string",
            "example": "MARKED_FOR_DELETE",
            "enum": [
              "MARKED_FOR_DELETE",
              "DELETING",
              "DELETED"
            ]
          },
          "optionMetadata": {
            "description": "The metadata of the attribute option.",
            "$ref": "#/components/schemas/AttributeOptionMetadataInformation"
          },
          "validationRuleId": {
            "description": "The validation rule configured for the attribute.",
            "type": "string",
            "example": "email"
          },
          "abacBasicAssignmentInfo": {
            "description": "The details of the attribute-based access control (ABAC) assignments linked to the attribute.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbacBasicAssignmentInfo"
            }
          },
          "optionsByDomain": {
            "description": "The attribute options that are overridden by domain.",
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/AttributeDomainOptionOverrideInformation"
              }
            }
          },
          "formulaByDomain": {
            "description": "The formula for the attribute, specified by domain.",
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "associatedAttributeFieldName": {
            "description": "The fieldName parameter value of the attribute.",
            "type": "string"
          }
        },
        "required": [
          "enabled",
          "fieldName",
          "name"
        ]
      },
      "AttributeOptionInformation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the attribute option.",
            "type": "string",
            "format": "uuid",
            "example": "550e8400-e29b-41d4-a716-446655440000"
          },
          "option": {
            "description": "The name of the attribute option.",
            "type": "string",
            "example": "TypeA",
            "maxLength": 255,
            "minLength": 1
          },
          "optionKey": {
            "description": "The fallback name of the attribute option that is used if a translation is not provided for a language.",
            "type": "string",
            "example": "IM.TypeA",
            "maxLength": 255
          },
          "colorCode": {
            "description": "The color code associated with the attribute option.",
            "type": "string",
            "example": "#FF5733",
            "maxLength": 7
          },
          "sequence": {
            "description": "The sequential order in which the attribute options display.",
            "type": "integer",
            "format": "int32",
            "example": 1,
            "maximum": 32767,
            "minimum": 1
          },
          "enabled": {
            "description": "This flag indicates whether the attribute option is enabled.",
            "type": "boolean",
            "example": true,
            "default": "true"
          },
          "metadata": {
            "description": "The metadata of the attribute option.",
            "$ref": "#/components/schemas/AttributeOptionMetadata"
          }
        },
        "required": [
          "option"
        ]
      },
      "AttributeOptionMetadata": {
        "type": "object",
        "properties": {
          "hint": {
            "description": "The hint of the attribute option.",
            "type": "string"
          },
          "hintKey": {
            "description": "The fallback hint of the attribute option that is used if a translation is not provided for a language.",
            "type": "string"
          }
        }
      },
      "AttributeOptionMetadataInformation": {
        "type": "object",
        "properties": {
          "entityTypeName": {
            "description": "The type of system list used to source the attribute option.",
            "type": "string",
            "example": "Location"
          },
          "basicServiceContextPath": {
            "description": "The base path of the API URL used to source the attribute option.",
            "type": "string",
            "example": "/api/location"
          },
          "optionUrl": {
            "description": "The API URL path used to source the attribute option.",
            "type": "string",
            "example": "/api/ontology/ui/v1/entity-types/names/purpose/entities/basic-details/pages"
          },
          "optionListUrl": {
            "description": "The API URL to retrieve the complete list of entities for the dropdown.",
            "type": "string",
            "example": "/api/ontology/ui/v1/entity-types/names/purpose/entities/basic-details"
          },
          "viewType": {
            "description": "The display format of the attribute option.",
            "type": "string"
          },
          "optionType": {
            "description": "The type of option.",
            "type": "string",
            "example": "BusinessLocations"
          },
          "permissions": {
            "description": "The permissions required to access the attribute options.",
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": "[features.core-constructs.view]"
          },
          "applicationUrl": {
            "description": "The URL of the application where the attribute options are managed.",
            "type": "string",
            "example": "/settings/location-management/location/Location"
          }
        }
      },
      "CategoryInformation": {
        "type": "object",
        "properties": {
          "id": {
            "description": "The unique identifier of the category.",
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "description": "The name of the category.",
            "type": "string",
            "example": "Financial Category"
          },
          "nameKey": {
            "description": "The fallback name of the category that is used if a translation is not provided for a language.",
            "type": "string",
            "example": "IM.FinancialCategoryName"
          }
        }
      },
      "IntakeQuestion": {
        "type": "object",
        "properties": {
          "nameKey": {
            "description": "The fallback name of the question that is used if a translation is not provided for a language.",
            "type": "string"
          },
          "name": {
            "description": "The name of the question.",
            "type": "string"
          },
          "descriptionKey": {
            "description": "The fallback description of the question that is used if a translation is not provided for a language.",
            "type": "string"
          },
          "description": {
            "description": "The description of the question.",
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "OAUTH2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://{hostname}/api/access/v1/oauth/token",
            "scopes": {
              "ISSUE": "Grants full access to Issues related APIs.",
              "ISSUE_READ": "Grants read access to Issues related APIs"
            }
          }
        }
      }
    }
  }
}
```

# Sibling pages

* [Create Issue Relationship](https://developer.onetrust.com/onetrust/reference/createissuerelationshiplinksusingpost.md)
* [Get Issue Relationships](https://developer.onetrust.com/onetrust/reference/getissuelinksusingget.md)
* [Create Issue](https://developer.onetrust.com/onetrust/reference/createissueusingpost.md)
* [Get List of Issues](https://developer.onetrust.com/onetrust/reference/findallissuesbyfilterusingpost.md)
* [Get Issue](https://developer.onetrust.com/onetrust/reference/getissueusingget.md)
* [Update Issue](https://developer.onetrust.com/onetrust/reference/updateissueusingput.md)
* [Get Issue Tasks](https://developer.onetrust.com/onetrust/reference/getissuerelatedtasksusingget.md)
* [Modify Issue](https://developer.onetrust.com/onetrust/reference/updateissueusingpatch.md)