Inventory Schema
Get Inventory Schema
Use this API to retrieve the details of a specific schema.
get/api/inventory/v2/schemas/{schemaName}
Request
- Base URLhttps://hostname
- URLhttps://hostname/api/inventory/v2/schemas/{schemaName}
- AuthOAuth 2Client credentialsToken URL: https://{hostname}/api/access/v1/oauth/token scopes: INVENTORY, INVENTORY_READ, INVENTORY_WRITE
Path parameters
schemaName'processing-activities' | 'vendors' | 'assets' | 'entities' required
The name property of the schema. The value can be obtained using the Get Schemas API.
Query parameters
showAll'true' | 'false'
If showAll is included in the query, non-hidden attributes will be returned regardless of their enabled state.
includeHiddenboolean
Determines if hidden attributes are returned or omitted.
includePersonalDataboolean
Determines if personal data for attribute rules will be returned or omitted.
Response
OK
Example response
[
{
"nameKey": "VendorsName",
"description": "Name of the vendor",
"descriptionKey": "VendorsNameDesc",
"required": true,
"status": "enabled",
"attributeType": "none",
"responseType": "single-select",
"seeded": true,
"trackedAtRelatedInventoryType": "vendors",
"source": "System",
"formula": "sum(Assets:customField1044,Entities:customField1001)",
"schemaName": "Vendors",
"intakeQuestionKey": "VendorsIntakeQuestion1",
"intakeQuestion": {
"nameKey": "VendorsIntakeQuestionName",
"name": "What is your preferred vendor category?",
"descriptionKey": "VendorsIntakeQuestionDesc",
"description": "Please select the category that best describes your vendor"
},
"validationRuleId": "f17a3b03-62da-4448-b3bb-e56d4a2291c2",
"abacBasicAssignmentInfo": {
"assignments": [
{
"assignmentId": "550e8400-e29b-41d4-a716-446655440000",
"assignmentName": "Assignment1",
"policyStatus": "ACTIVE"
}
]
},
"responseSubType": "Standard",
"associatedAttributes": [
{
"Attribute options": [
{
"id": "91e37a36-ca61-499b-b3c3-7d556aef5cde",
"value": "Option 1",
"valueKey": "VendorsOption1",
"hint": "Select this option if...",
"hintKey": "VendorsOption1Hint",
"status": "enabled",
"seeded": true,
"sequence": 1,
"colorCode": "#FF5733"
}
]
}
]
}
]Changes
No recorded changes to this operation across all 1 revision of this API.