---
url: "https://developers.vzconnect.com/apis/attribute-api/versions/5171af26-732a-43bc-84a1-1d89d361a339"
---

OpenAPI specification document.

```json
{"openapi":"3.0.4","info":{"title":"Attribute Api","description":"### BETA VERSION\nThis API is currently in Beta. It is subject to changes, and backward compatibility is not guaranteed. Please use with caution in production environments.\n\n### Overview\nAttribute.Api manages the attributes — customizable labels composed of a name and a set of string values — that can be assigned to product entities (e.g. assets, drivers, vehicles) at account level. Attributes allow users to categorize and group entities in a flexible way, enabling search and filtering capabilities based on them. The service exposes APIs for creating and managing attributes, assigning them to entities, and searching entities through attribute-based filters.\n\n### Example\nFor example, a user can define an attribute named `state` with values `California`, `Florida`, and `Nevada`, then assign individual vehicles to `California`. From that point on, it is possible to search or filter all vehicles assigned to that state using the attribute as a filter criteria.","contact":{"name":"Verizon Connect","url":"https://reveal-help.verizonconnect.com/hc/en-us","email":"revealintegration@verizonconnect.com"},"version":"1.0","x-vz-audience":"domain-private","x-vzc-portal":{"category":"Fleet Organization","summary":"Create custom attributes and values to group and manage assets, drivers, and vehicles in Reveal.","business":{"description":"lets organizations create custom labels called attributes, as well as values for each attribute, to group and manage assets, drivers, and vehicles in Reveal. By assigning these attributes to entities, businesses can organize records around their own needs and search or filter entities using those categories. For example, you could create a State attribute (with values like California, Florida, and Nevada) to locate vehicles by individual state, or a broader Region attribute (West Coast, Midwest, Northeast) to track and group your fleet by operational territory. Note: The Attribute API is currently in beta. Its behavior may change, and backward compatibility is not guaranteed.","purpose":"The Attribute API helps your organization adapt Reveal to your real-world business structure.\n\nYou can assign attributes to supported entities, including assets, drivers, and vehicles, to categorize and group them. You can then search for or filter entities based on their assigned attributes. This gives your business a flexible way to organize and find records using categories that matter to your operations."},"use-cases":[{"title":"Organize Fleet Records","description":"Categorize vehicles, drivers, or assets with values that reflect how your organization groups or manages them."},{"title":"Filter by Business Categories","description":"Find entities that match an attribute value, such as vehicles assigned to a particular state."},{"title":"Support Flexible Classification","description":"Define attribute names and values at the account level to suit your organization's categorization needs."},{"title":"Coordinate Entity Searches","description":"Use attribute-based filters to locate relevant assets, drivers, or vehicles across the supported entity types."}],"icon-svg-base64":"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3NSIgaGVpZ2h0PSI3NSIgdmlld0JveD0iMCAwIDc1IDc1IiBmaWxsPSJub25lIj4NCjx0aXRsZT5JY29uPC90aXRsZT4NCjxwYXRoIGQ9Ik0wIDBoNzV2MWgtNzV6TTAgMWg3NXYxaC03NXpNMCAyaDc1djFoLTc1ek0wIDNoNzV2MWgtNzV6TTAgNGg3NXYxaC03NXpNMCA1aDc1djFoLTc1ek0wIDZoMTF2MWgtMTF6TTE4IDZoOXYxaC05ek02NyA2aDh2MWgtOHpNMCA3aDEwdjFoLTEwek0xOSA3aDh2MWgtOHpNNjcgN2g4djFoLTh6TTAgOGg5djFoLTl6TTIwIDhoN3YxaC03ek02NyA4aDh2MWgtOHpNMCA5aDl2MWgtOXpNMjAgOWg3djFoLTd6TTY3IDloOHYxaC04ek0wIDEwaDl2MWgtOXpNMjAgMTBoN3YxaC03ek02NyAxMGg4djFoLTh6TTAgMTFoOXYxaC05ek0yMCAxMWg3djFoLTd6TTY3IDExaDh2MWgtOHpNMCAxMmg5djFoLTl6TTIwIDEyaDd2MWgtN3pNNjcgMTJoOHYxaC04ek0wIDEzaDl2MWgtOXpNMjAgMTNoN3YxaC03ek02NyAxM2g4djFoLTh6TTAgMTRoOXYxaC05ek0yMCAxNGg3djFoLTd6TTY3IDE0aDh2MWgtOHpNMCAxNWgxMHYxaC0xMHpNMTkgMTVoOHYxaC04ek02NyAxNWg4djFoLTh6TTAgMTZoMTF2MWgtMTF6TTE4IDE2aDl2MWgtOXpNNjcgMTZoOHYxaC04ek0wIDE3aDc1djFoLTc1ek0wIDE4aDc1djFoLTc1ek0wIDE5aDc1djFoLTc1ek0wIDIwaDc1djFoLTc1ek0wIDIxaDc1djFoLTc1ek0wIDIyaDc1djFoLTc1ek0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TAgN2gxdjFoLTF6TTE4IDdoMXYxaC0xek0xMCAyNGgxdjFoLTF6TTE4IDI0aDF2MWgtMXpNMTAgNDJoMXYxaC0xek0xOCA0MmgxdjFoLTF6TTEwIDU5aDF2MWgtMXpNMTggNTloMXYxaC0xeiIgZmlsbD0iIzVGNUY1RiIvPg0KPHBhdGggZD0iTTEwIDE1aDF2MWgtMXpNMTggMTVoMXYxaC0xek0xMCAzMmgxdjFoLTF6TTE4IDMyaDF2MWgtMXpNMTAgNTBoMXYxaC0xek0xOCA1MGgxdjFoLTF6TTEwIDY3aDF2MWgtMXpNMTggNjdoMXYxaC0xeiIgZmlsbD0iIzYwNjA2MCIvPg0KPHBhdGggZD0iTTEyIDZoMXYxaC0xek0xMiAyM2gxdjFoLTF6TTEyIDQxaDF2MWgtMXpNMTIgNThoMXYxaC0xeiIgZmlsbD0iIzhGOEY4RiIvPg0KPHBhdGggZD0iTTEyIDE2aDF2MWgtMXpNMTIgMzNoMXYxaC0xek0xMiA1MWgxdjFoLTF6TTEyIDY4aDF2MWgtMXoiIGZpbGw9IiNBMEEwQTAiLz4NCjwvc3ZnPg0K","status":{"type":"beta","message":"This API is currently in Beta. It is subject to changes, and backward compatibility is not guaranteed. Please use with caution in production environments."}}},"paths":{"/attribute/v1/assignments/search":{"post":{"tags":["Attribute API"],"summary":"Search attribute assignments","description":"Searches attribute assignments across multiple attributes and entities.","operationId":"searchAssignments","requestBody":{"description":"Search criteria including attribute filters, entity filters, and pagination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAssignmentsInputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/SearchAssignmentsInputDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/SearchAssignmentsInputDto"}}}},"responses":{"200":{"description":"Assignments retrieved successfully.","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/SearchAssignmentsOutputDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/SearchAssignmentsOutputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/SearchAssignmentsOutputDto"}}}},"400":{"description":"Invalid request. Validation errors in the request body.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes/add-items":{"post":{"tags":["Attribute API"],"summary":"Create attributes","description":"Creates multiple attributes in a single atomic operation.","operationId":"addAttributesInBulk","requestBody":{"description":"Collection of attributes to create (1-1000 items).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAttributesInBulkInputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/AddAttributesInBulkInputDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/AddAttributesInBulkInputDto"}}}},"responses":{"200":{"description":"Attributes created successfully. Returns the created attributes.","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/AddAttributesInBulkOutputDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/AddAttributesInBulkOutputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/AddAttributesInBulkOutputDto"}}}},"400":{"description":"Invalid request. Validation errors in the request body.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"409":{"description":"Conflict. One or more attribute names or external IDs already exist in the account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"422":{"description":"Unprocessable Content","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes/{attributeId}/string-values/add-items":{"post":{"tags":["Attribute API"],"summary":"Add string values to an attribute","description":"Adds string values to an existing attribute.","operationId":"addAttributeStringValues","parameters":[{"name":"attributeId","in":"path","description":"The attribute identifier — either a UUID v7 or an external identifier.","required":true,"schema":{"maxLength":96,"minLength":3,"pattern":"^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$","type":"string"}}],"requestBody":{"description":"Collection of string values to add (1-100 items).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddAttributeStringValuesInputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/AddAttributeStringValuesInputDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/AddAttributeStringValuesInputDto"}}}},"responses":{"200":{"description":"Attribute values added successfully.","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/AddAttributeStringValuesOutputDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/AddAttributeStringValuesOutputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/AddAttributeStringValuesOutputDto"}}}},"400":{"description":"Invalid request parameters.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"404":{"description":"Attribute not found for the given identifier within the account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"409":{"description":"Conflict. One or more attribute values already exist (case-insensitive).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"422":{"description":"Unprocessable Content","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes/{attributeId}":{"delete":{"tags":["Attribute API"],"summary":"Delete an attribute","description":"Deletes an existing attribute by its internal UUID or customer-defined external identifier.","operationId":"deleteAttribute","parameters":[{"name":"attributeId","in":"path","description":"The attribute identifier — either a UUID v7 or an external identifier.","required":true,"schema":{"maxLength":96,"minLength":3,"pattern":"^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$","type":"string"}}],"responses":{"204":{"description":"Attribute deleted successfully."},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"404":{"description":"Attribute not found for the given identifier within the account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"422":{"description":"Attribute cannot be deleted because it has associated entities.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}},"get":{"tags":["Attribute API"],"summary":"Get an attribute","description":"Retrieves a single attribute by its internal UUID or customer-defined external identifier.","operationId":"getAttribute","parameters":[{"name":"attributeId","in":"path","description":"The attribute identifier — either a UUID v7 or an external identifier.","required":true,"schema":{"maxLength":96,"minLength":3,"pattern":"^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$","type":"string"}}],"responses":{"200":{"description":"Attribute retrieved successfully.","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/GetAttributeOutputDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/GetAttributeOutputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/GetAttributeOutputDto"}}}},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"404":{"description":"Attribute not found for the given identifier within the account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes":{"get":{"tags":["Attribute API"],"summary":"List attributes","description":"Retrieves a paginated list of attributes for the authenticated account.","operationId":"getAttributesList","parameters":[{"name":"q","in":"query","description":"Optional case-insensitive partial match filter on attribute names and string values.\r\nAn attribute is returned when its name or at least one of its string values matches.","schema":{"maxLength":100,"minLength":0,"pattern":"^.{0,}$","type":"string","example":"Fleet"},"example":"Fleet"},{"name":"limit","in":"query","description":"Maximum number of distinct attributes to return. Defaults to 100.","schema":{"maximum":1000,"minimum":1,"type":"integer","format":"int32","example":25},"example":25},{"name":"offset","in":"query","description":"Zero-based pagination offset. Defaults to 0.","schema":{"maximum":2147483647,"minimum":0,"type":"integer","format":"int32","example":0},"example":0},{"name":"total_required","in":"query","description":"When true, the response includes the total count of matching attributes.","schema":{"type":"boolean","example":true},"example":true}],"responses":{"200":{"description":"Attributes retrieved successfully.","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/GetAttributesListOutputDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/GetAttributesListOutputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/GetAttributesListOutputDto"}}}},"400":{"description":"Invalid query parameters.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes/{attributeId}/assignments/add-items":{"post":{"tags":["Attribute API"],"summary":"Assign entities to an attribute","description":"Assigns entities to an attribute by linking entity-type/entity-id pairs to attribute values.","operationId":"assignEntitiesToAttribute","parameters":[{"name":"attributeId","in":"path","description":"The attribute identifier — either a UUID v7 or an external identifier.","required":true,"schema":{"maxLength":96,"minLength":3,"pattern":"^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$","type":"string"}}],"requestBody":{"description":"Collection of entity assignments (1-10,000 items).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignEntitiesToAttributeInputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/AssignEntitiesToAttributeInputDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/AssignEntitiesToAttributeInputDto"}}}},"responses":{"200":{"description":"Assignments created successfully.","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/AssignEntitiesToAttributeOutputDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/AssignEntitiesToAttributeOutputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/AssignEntitiesToAttributeOutputDto"}}}},"400":{"description":"Invalid request body or unresolved string values.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"404":{"description":"Attribute not found for the given identifier.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"409":{"description":"Duplicate assignment conflict.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"422":{"description":"Invalid attribute value reference (foreign key violation).","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes/{attributeId}/string-values/remove-items":{"post":{"tags":["Attribute API"],"summary":"Remove string values from an attribute","description":"Removes string values from an existing attribute.","operationId":"removeAttributeStringValues","parameters":[{"name":"attributeId","in":"path","description":"The attribute identifier — either a UUID v7 or an external identifier.","required":true,"schema":{"maxLength":96,"minLength":3,"pattern":"^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$","type":"string"}}],"requestBody":{"description":"Collection of attribute value IDs to remove (1-100 items).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveAttributeStringValuesInputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/RemoveAttributeStringValuesInputDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/RemoveAttributeStringValuesInputDto"}}}},"responses":{"204":{"description":"Attribute string values removed successfully."},"400":{"description":"Bad Request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"404":{"description":"Attribute or attribute values not found for the given identifier within the account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"422":{"description":"Cannot remove attribute values because one or more have associated entity assignments.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes/{attributeId}/assignments":{"get":{"tags":["Attribute API"],"summary":"List an attribute's assignments","description":"Retrieves a paginated list of entity assignments for a given attribute.","operationId":"getAttributeAssignments","parameters":[{"name":"attributeId","in":"path","description":"The attribute identifier — either a UUID v7 or an external identifier.","required":true,"schema":{"maxLength":96,"minLength":3,"pattern":"^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$","type":"string"}},{"name":"q","in":"query","description":"Optional case-insensitive partial match filter on attribute string values.","schema":{"maxLength":100,"minLength":0,"pattern":"^.{0,}$","type":"string","example":"North"},"example":"North"},{"name":"entity_types","in":"query","description":"Optional filter by entity types (e.g., Vehicle, Driver, PoweredAsset, NonPoweredAsset).","schema":{"maxItems":4,"type":"array","items":{"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string"},"example":["vehicle","driver"]},"example":["vehicle","driver"]},{"name":"limit","in":"query","description":"Maximum number of assignments to return. Defaults to 100.","schema":{"maximum":100,"minimum":1,"type":"integer","format":"int32","example":25},"example":25},{"name":"offset","in":"query","description":"Zero-based pagination offset. Defaults to 0.","schema":{"maximum":2147483647,"minimum":0,"type":"integer","format":"int32","example":0},"example":0},{"name":"total_required","in":"query","description":"When true, the response includes the total count of matching assignments.","schema":{"type":"boolean","example":true},"example":true}],"responses":{"200":{"description":"Assignments retrieved successfully.","content":{"text/plain":{"schema":{"$ref":"#/components/schemas/GetAttributeAssignmentsOutputDto"}},"application/json":{"schema":{"$ref":"#/components/schemas/GetAttributeAssignmentsOutputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/GetAttributeAssignmentsOutputDto"}}}},"400":{"description":"Invalid query parameters or entity type values.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"404":{"description":"Attribute not found for the given identifier within the account.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}},"/attribute/v1/attributes/{attributeId}/assignments/remove-items":{"post":{"tags":["Attribute API"],"summary":"Remove entity assignments from an attribute","description":"Removes entity assignments from an attribute.","operationId":"removeAssignments","parameters":[{"name":"attributeId","in":"path","description":"The attribute identifier — either a UUID v7 or an external identifier.","required":true,"schema":{"maxLength":96,"minLength":3,"pattern":"^(^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$|^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$)$","type":"string"}}],"requestBody":{"description":"Collection of assignment IDs to remove (1-10,000 items).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveAssignmentsInputDto"}},"text/json":{"schema":{"$ref":"#/components/schemas/RemoveAssignmentsInputDto"}},"application/*+json":{"schema":{"$ref":"#/components/schemas/RemoveAssignmentsInputDto"}}}},"responses":{"204":{"description":"Assignments removed successfully."},"400":{"description":"Invalid request body or invalid assignment ID format.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"401":{"description":"Unauthorized","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"403":{"description":"Forbidden","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"404":{"description":"Attribute not found or no matching assignments found.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"415":{"description":"Unsupported Media Type","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"422":{"description":"Cannot complete operation due to related data constraints.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"429":{"description":"Too Many Requests","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}},"default":{"description":"Error","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/VerizonProblemDetails"}}}}}}}},"components":{"schemas":{"AddAttributeStringValuesInputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":100,"minItems":1,"type":"array","items":{"maxLength":30,"minLength":0,"pattern":"^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \\-_:]{1,30}$","type":"string"},"description":"Collection of string values to add. Minimum 1, maximum 100 items, each max 30 chars.\r\nMust match pattern: at least one alphanumeric, only [a-zA-Z0-9 -_:].","example":["Northeast","Southwest","Central"]}},"additionalProperties":false,"description":"Input DTO for adding string values to an existing attribute."},"AddAttributeStringValuesOutputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":100,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/AttributeStringValueOutputDto"},"description":"Collection of created attribute values with their generated UUIDs."}},"additionalProperties":false,"description":"Output DTO for the add attribute string values endpoint."},"AddAttributesInBulkInputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":1000,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/CreateAttributeDto"},"description":"Collection of attributes to create. Minimum 1, maximum 1000 items per request."}},"additionalProperties":false,"description":"Input DTO for bulk attribute creation endpoint."},"AddAttributesInBulkOutputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":1000,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/AttributeOutputDto"},"description":"Collection of successfully created attributes."}},"additionalProperties":false,"description":"Output DTO for bulk attribute creation endpoint."},"AssignEntitiesToAttributeInputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":1000,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/EntityAssignmentItemDto"},"description":"Collection of entity assignments. Minimum 1, maximum 10,000 items per request."}},"additionalProperties":false,"description":"Input DTO for the assign entities to attribute endpoint."},"AssignEntitiesToAttributeOutputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":1000,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/AssignmentOutputItemDto"},"description":"Collection of created assignments."}},"additionalProperties":false,"description":"Output DTO for the assign entities to attribute endpoint."},"AssignmentOutputItemDto":{"required":["assignmentId","entityId","entityType","stringValue"],"type":"object","properties":{"assignmentId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"Unique identifier for the assignment (UUID v7).","format":"uuid","example":"019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f"},"entityType":{"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string","description":"The type of entity assigned.","example":"Vehicle"},"entityId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"The identifier of the entity assigned.","format":"uuid","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"stringValue":{"maxLength":30,"minLength":1,"pattern":"^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \\-_:]{1,30}$","type":"string","description":"The human-readable attribute value string.","example":"North"}},"additionalProperties":false,"description":"DTO representing a single created assignment in the response."},"AttributeOutputDto":{"required":["attributeId","createdAt","name","updatedAt","values"],"type":"object","properties":{"attributeId":{"maxLength":36,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"Unique identifier for the attribute (UUID v7).","example":"019462a1-b7c3-7def-8a12-4e5f6a7b8c9d"},"name":{"maxLength":30,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"The name of the attribute.","example":"Fleet Region"},"description":{"maxLength":1000,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"Description of the attribute (nullable).","nullable":true,"example":"Geographical region assigned to fleet vehicles"},"values":{"maxItems":100,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/AttributeValueOutputDto"},"description":"Allowed string values for this attribute."},"createdAt":{"maxLength":28,"minLength":20,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,7})?Z$","type":"string","description":"Timestamp when the attribute was created (UTC).","format":"date-time","example":"2026-03-15T10:30:00Z"},"updatedAt":{"maxLength":28,"minLength":20,"pattern":"^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:\\.[0-9]{1,7})?Z$","type":"string","description":"Timestamp when the attribute was last modified (UTC).","format":"date-time","example":"2026-04-02T14:45:00Z"},"externalIds":{"maxItems":1,"minItems":0,"type":"array","items":{"maxLength":96,"minLength":3,"pattern":"^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$","type":"string"},"description":"External identifiers for this attribute","nullable":true,"example":["string"]}},"additionalProperties":false,"description":"Output DTO representing a created attribute."},"AttributeStringValueOutputDto":{"required":["id","value"],"type":"object","properties":{"id":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"Unique identifier for the attribute value (UUID v7).","format":"uuid","example":"019462a1-c8d4-7abc-9b23-5f6a7b8c9d0e"},"value":{"maxLength":30,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"The string value.","example":"Northeast"}},"additionalProperties":false,"description":"Output DTO representing a single created attribute value."},"AttributeValueOutputDto":{"required":["attributeValueId","value"],"type":"object","properties":{"attributeValueId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"Unique identifier for the attribute value (UUID v7).","format":"uuid","example":"019462a1-c8d4-7abc-9b23-5f6a7b8c9d0e"},"value":{"maxLength":30,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"The string value.","example":"North"}},"additionalProperties":false,"description":"Output DTO representing a single attribute value."},"CreateAttributeDto":{"required":["name","stringValues"],"type":"object","properties":{"name":{"maxLength":30,"minLength":1,"pattern":"^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \\-_:]{1,30}$","type":"string","description":"The name of the attribute. Must be unique within the account (case-insensitive uniqueness, stored as-is).","example":"Fleet Region"},"description":{"maxLength":1000,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"Optional description of the attribute.","nullable":true,"example":"Geographical region assigned to fleet vehicles"},"externalIds":{"maxItems":1,"minItems":0,"type":"array","items":{"maxLength":96,"minLength":0,"pattern":"^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$","type":"string"},"description":"Optional external identifiers. Maximum 1 per attribute, format 'namespace:identifier', max 100 chars.","nullable":true,"example":["erp-system:region-001"]},"stringValues":{"maxItems":100,"minItems":1,"type":"array","items":{"maxLength":30,"minLength":0,"pattern":"^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \\-_:]{1,30}$","type":"string"},"description":"Required list of allowed string values for this attribute. Minimum 1, maximum 100 values, each max 30 chars.","example":["North","South","East","West"]}},"additionalProperties":false,"description":"DTO representing a single attribute to be created."},"EntityAssignmentItemDto":{"required":["entityId","entityType","stringValue"],"type":"object","properties":{"entityType":{"minLength":1,"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string","description":"The type of entity being assigned. Accepted values: vehicle, driver, powered_asset, non_powered_asset.","example":"vehicle"},"entityId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"The identifier of the entity being assigned.","format":"uuid","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"stringValue":{"maxLength":30,"minLength":1,"pattern":"^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \\-_:]{1,30}$","type":"string","description":"The human-readable attribute value string to assign. Resolved to an internal attribute_value_id.","example":"North"}},"additionalProperties":false,"description":"DTO representing a single entity assignment item."},"GetAttributeAssignmentItemDto":{"required":["assignmentId","entityId","entityType","stringValue"],"type":"object","properties":{"assignmentId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"Unique identifier for the assignment (UUID v7).","format":"uuid","example":"019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f"},"entityType":{"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string","description":"The type of entity assigned.","example":"Vehicle"},"entityId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"The identifier of the assigned entity.","format":"uuid","example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"},"stringValue":{"maxLength":30,"minLength":1,"pattern":"^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \\-_:]{1,30}$","type":"string","description":"The attribute value string associated with this assignment.","example":"North"}},"additionalProperties":false,"description":"Represents a single assignment item in the get attribute assignments response."},"GetAttributeAssignmentsOutputDto":{"required":["items"],"type":"object","properties":{"totalPages":{"type":"integer","description":"The number of pages available based on the total count and query limit.","format":"int32","nullable":true,"example":4},"totalCount":{"type":"integer","description":"Total count of matching items. Populated only when TotalRequired is true.","format":"int32","nullable":true,"example":87},"items":{"maxItems":100,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/GetAttributeAssignmentItemDto"},"description":"The paginated list of attribute assignments."}},"additionalProperties":false,"description":"Output DTO for the get attribute assignments endpoint."},"GetAttributeOutputDto":{"required":["attributeId","name","stringValues"],"type":"object","properties":{"attributeId":{"maxLength":36,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"Unique identifier for the attribute (UUID v7).","example":"019462a1-b7c3-7def-8a12-4e5f6a7b8c9d"},"name":{"maxLength":30,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"The name of the attribute.","example":"Fleet Region"},"description":{"maxLength":1000,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"Description of the attribute (nullable).","nullable":true,"example":"Geographical region assigned to fleet vehicles"},"stringValues":{"maxItems":100,"minItems":0,"type":"array","items":{"maxLength":0,"minLength":0,"pattern":"^.{0,}$","type":"string"},"description":"Allowed string values for this attribute.","example":["North","South","East","West"]},"externalIds":{"maxItems":1,"minItems":0,"type":"array","items":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]{1,120}$","type":"string"},"description":"External identifiers associated with this attribute.","nullable":true,"example":["erp-system:region-001"]}},"additionalProperties":false,"description":"Output DTO for the GET single attribute endpoint."},"GetAttributesListItemDto":{"required":["attributeId","externalIds","name","stringValues"],"type":"object","properties":{"attributeId":{"maxLength":36,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"Unique identifier for the attribute (UUID v7).","example":"019462a1-b7c3-7def-8a12-4e5f6a7b8c9d"},"name":{"maxLength":30,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"The name of the attribute.","example":"Fleet Region"},"description":{"maxLength":1000,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"Description of the attribute (nullable).","nullable":true,"example":"Geographical region assigned to fleet vehicles"},"stringValues":{"maxItems":100,"minItems":0,"type":"array","items":{"maxLength":0,"minLength":0,"pattern":"^.{0,}$","type":"string"},"description":"Allowed string values for this attribute.","example":["North","South","East","West"]},"externalIds":{"maxItems":1,"minItems":0,"type":"array","items":{"maxLength":120,"minLength":0,"pattern":"^[^\\n]{1,120}$","type":"string"},"description":"External identifiers associated with this attribute.","example":["erp-system:region-001"]}},"additionalProperties":false,"description":"Represents a single attribute item in the get attributes list response."},"GetAttributesListOutputDto":{"required":["items"],"type":"object","properties":{"totalPages":{"type":"integer","description":"The number of pages available based on the total count and query limit.","format":"int32","nullable":true,"example":4},"totalCount":{"type":"integer","description":"Total count of matching items. Populated only when TotalRequired is true.","format":"int32","nullable":true,"example":87},"items":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/GetAttributesListItemDto"},"description":"The paginated list of attributes."}},"additionalProperties":false,"description":"Output DTO for the get attributes list endpoint."},"MapLegacyIdToUuidMappingOutputDto":{"required":["legacyId"],"type":"object","properties":{"legacyId":{"type":"integer","description":"Legacy integer identifier.","format":"int32"},"uuid":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"Resolved UUID.","format":"uuid","nullable":true,"example":"cc7937a8-f2d3-412f-b89d-26cdd15fc47d"},"externalId":{"type":"array","items":{"type":"string"},"description":"External IDs (phase 2). Null for now.","nullable":true}},"additionalProperties":false,"description":"Represents one legacy ID mapping."},"MapToUuidInputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":100,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/MapToUuidItemDto"},"description":"Grouped mapping requests by entity type."}},"additionalProperties":false,"description":"Input DTO for mapping legacy integer IDs to UUIDs."},"MapToUuidItemDto":{"required":["entityType","legacyIds"],"type":"object","properties":{"entityType":{"minLength":1,"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string","description":"Entity type to resolve.\r\nAllowed values: vehicle, poweredAsset, nonPoweredAsset, driver."},"legacyIds":{"maxItems":1000,"minItems":1,"type":"array","items":{"type":"integer","format":"int32"},"description":"Legacy IDs to map."}},"additionalProperties":false,"description":"Request group for one entity type."},"MapToUuidItemOutputDto":{"required":["entityType","mappings"],"type":"object","properties":{"entityType":{"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string","description":"Entity type in uppercase format."},"mappings":{"type":"array","items":{"$ref":"#/components/schemas/MapLegacyIdToUuidMappingOutputDto"},"description":"Mapping items for the requested legacy IDs."}},"additionalProperties":false,"description":"Mapping result group for one entity type."},"MapToUuidOutputDto":{"required":["items"],"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/MapToUuidItemOutputDto"},"description":"Mapping results grouped by entity type."}},"additionalProperties":false,"description":"Output DTO for legacy ID to UUID mapping."},"ProblemError":{"type":"object","properties":{"detail":{"maxLength":65519,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"A human-readable explanation of this error.","nullable":true,"example":"string"},"pointer":{"maxLength":2048,"minLength":1,"pattern":"^.{0,}$","type":"string","description":"A pointer to locate the problem within the request's content using a JSON Pointer. Verizon extension to RFC 9457.","nullable":true,"example":"string"},"debugId":{"maxLength":2048,"minLength":3,"pattern":"^.{0,}$","type":"string","description":"A unique error identifier string generated on the service-side and logged for correlation purposes. Verizon extension to RFC 9457.","nullable":true,"example":"string"}},"additionalProperties":false},"RemoveAssignmentsInputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":1000,"minItems":1,"type":"array","items":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","format":"uuid","example":"28d7b4ad-5708-4224-a132-47addeae588a"},"description":"Collection of assignment IDs to remove. Each item is a GUID string.\r\nMinimum 1, maximum 10,000 items per request.","example":["019462a1-b7c3-7def-8a12-4e5f6a7b8c9d","019462a1-b7c3-7def-8a12-5f6a7b8c9d0e"]}},"additionalProperties":false,"description":"Input DTO for removing entity assignments from an attribute."},"RemoveAttributeStringValuesInputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":100,"minItems":1,"type":"array","items":{"maxLength":30,"minLength":0,"pattern":"^(?=.*[a-zA-Z0-9])[a-zA-Z0-9 \\-_:]{1,30}$","type":"string"},"description":"Collection of attribute string values to remove. Minimum 1, maximum 100 non-default GUIDs.","example":["green","white"]}},"additionalProperties":false,"description":"Input DTO for removing string values from an existing attribute."},"ResolveMappingOutputDto":{"type":"object","properties":{"legacyId":{"type":"integer","format":"int32","nullable":true},"uuid":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","format":"uuid","nullable":true,"example":"7f986ab5-5bd5-4502-8597-1a16856e975d"}},"additionalProperties":false},"ResolveMappingsInputDto":{"required":["items"],"type":"object","properties":{"items":{"maxItems":100,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/ResolveMappingsItemDto"}}},"additionalProperties":false},"ResolveMappingsItemDto":{"required":["accountId","entityType"],"type":"object","properties":{"entityType":{"minLength":1,"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string"},"accountId":{"type":"integer","format":"int32"},"legacyIds":{"maxItems":1000,"minItems":0,"type":"array","items":{"type":"integer","format":"int32"},"nullable":true},"entityUuids":{"maxItems":1000,"minItems":0,"type":"array","items":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","format":"uuid","example":"bdaa8830-85e6-412a-989c-9d37fb11147b"},"nullable":true}},"additionalProperties":false},"ResolveMappingsItemOutputDto":{"required":["accountId","entityType","mappings"],"type":"object","properties":{"entityType":{"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string"},"accountId":{"type":"integer","format":"int32"},"mappings":{"type":"array","items":{"$ref":"#/components/schemas/ResolveMappingOutputDto"}}},"additionalProperties":false},"ResolveMappingsOutputDto":{"required":["items"],"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ResolveMappingsItemOutputDto"}}},"additionalProperties":false},"SearchAssignmentItemDto":{"required":["accountId","assignmentId","attributeId","attributeName","entityId","entityType","stringValue"],"type":"object","properties":{"accountId":{"type":"integer","description":"The account identifier that owns this assignment.","format":"int32","example":12345},"assignmentId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"Unique identifier for the assignment (UUID v7).","format":"uuid","example":"019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f"},"entityType":{"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string","description":"The type of entity assigned.","example":"Vehicle"},"entityId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"The identifier of the assigned entity.","format":"uuid","example":"019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f"},"stringValue":{"minLength":1,"type":"string","description":"The attribute value string associated with this assignment.","example":"North"},"attributeId":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"The attribute identifier this assignment belongs to.","format":"uuid","example":"019462a1-d9e5-7bcd-ac34-6a7b8c9d0e1f"},"attributeName":{"minLength":1,"type":"string","description":"The name of the attribute this assignment belongs to.","example":"Region"}},"additionalProperties":false,"description":"Represents a single assignment item in the search assignments response."},"SearchAssignmentsAttributeFilterItemDto":{"required":["stringValues"],"type":"object","properties":{"attributeId":{"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","description":"The attribute UUID to filter on. Populated if ExternalId is omitted","nullable":true},"externalId":{"pattern":"^(?=.{3,96}$)[a-zA-Z0-9_-]+:[a-zA-Z0-9_-]+$","type":"string","description":"Optional external identifier. Populated if id is omitted","nullable":true},"stringValues":{"maxItems":100,"minItems":1,"type":"array","items":{"maxLength":0,"minLength":0,"pattern":"^.{0,}$","type":"string"},"description":"The string values to match for this attribute filter.","example":["string"]}},"additionalProperties":false,"description":"A single attribute filter entry pairing an attribute ID with optional string values."},"SearchAssignmentsAttributesFilterDto":{"required":["attributes"],"type":"object","properties":{"attributes":{"maxItems":1000,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/SearchAssignmentsAttributeFilterItemDto"},"description":"Array of attribute filter entries pairing attribute IDs with string values."}},"additionalProperties":false,"description":"Filters by attributes criteria. Conditions are evaluated using OR logic"},"SearchAssignmentsEntityFilterDto":{"required":["entityIds","type"],"type":"object","properties":{"type":{"minLength":1,"enum":["Vehicle","Driver","PoweredAsset","NonPoweredAsset"],"type":"string","description":"The entity type to filter on."},"entityIds":{"maxItems":1000,"minItems":1,"type":"array","items":{"maxLength":36,"pattern":"^[a-fA-F0-9]{8}-([a-fA-F0-9]{4}-){3}[a-fA-F0-9]{12}$","type":"string","format":"uuid","example":"daeb4b32-2d41-44b0-8a5b-285b946c2fde"},"description":"The entity IDs to filter on for this entity type."}},"additionalProperties":false,"description":"A single entity filter entry pairing an entity type with optional entity IDs."},"SearchAssignmentsInputDto":{"required":["pagination"],"type":"object","properties":{"attributesFilter":{"$ref":"#/components/schemas/SearchAssignmentsAttributesFilterDto"},"entities":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/SearchAssignmentsEntityFilterDto"},"description":"Entity filter criteria. Controls which entity types and IDs to match.","nullable":true},"pagination":{"$ref":"#/components/schemas/SearchAssignmentsPaginationDto"}},"additionalProperties":false,"description":"Input DTO for the search assignments endpoint."},"SearchAssignmentsOutputDto":{"required":["items"],"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/SearchAssignmentItemDto"},"description":"The paginated list of items."},"totalPages":{"type":"integer","description":"The number of pages available based on the total count and query limit.","format":"int32","nullable":true,"example":4},"totalCount":{"type":"integer","description":"Total count of matching items. Populated only when TotalRequired is true.","format":"int32","nullable":true,"example":87}},"additionalProperties":false,"description":"Output DTO for the search assignments endpoint."},"SearchAssignmentsPaginationDto":{"type":"object","properties":{"limit":{"maximum":1000,"minimum":1,"type":"integer","description":"Maximum number of results to return.","format":"int32","nullable":true},"offset":{"maximum":2147483647,"minimum":0,"type":"integer","description":"Zero-based pagination offset.","format":"int32","nullable":true},"totalRequired":{"type":"boolean","description":"When true, the response includes the total count of matching assignments.","nullable":true}},"additionalProperties":false,"description":"Pagination parameters for the search assignments endpoint."},"VerizonProblemDetails":{"type":"object","properties":{"type":{"maxLength":65519,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"A URI reference that identifies the problem type.","format":"uri-reference","nullable":true,"example":"string"},"title":{"maxLength":65519,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"A short, human-readable summary of the problem type.","nullable":true,"example":"string"},"status":{"maximum":599,"minimum":300,"type":"integer","description":"The HTTP status code generated by the origin server for this occurrence of the problem.","format":"int32","nullable":true},"detail":{"maxLength":65519,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"A human-readable explanation specific to this occurrence of the problem.","nullable":true,"example":"string"},"instance":{"maxLength":65519,"minLength":0,"pattern":"^.{0,}$","type":"string","description":"A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.","nullable":true,"example":"string"},"debugId":{"maxLength":2048,"minLength":3,"pattern":"^.{0,}$","type":"string","description":"A unique error identifier string generated on the service-side and logged for correlation purposes. Verizon extension to RFC 9457.","nullable":true,"example":"string"},"errors":{"maxItems":1000,"minItems":0,"type":"array","items":{"$ref":"#/components/schemas/ProblemError"},"description":"List of errors. Verizon extension to RFC 9457.","nullable":true}},"additionalProperties":false,"description":"A machine-readable format for specifying errors in HTTP API responses based on RFC 9457. Responses include the Verizon extension field 'debugId' — a unique error identifier generated server-side and logged for correlation (maps to x-request-id / Correlation-Id header)."}},"securitySchemes":{"STS":{"type":"http","description":"Please enter '{token}'","scheme":"bearer","bearerFormat":"JWT"}}},"security":[{"STS":[]}],"tags":[{"name":"Attribute API","description":"Operations for creating and managing attributes and their values, assigning them to entities, and searching assignments."}],"x-kong-plugin-pre-function":{"enabled":true,"config":{"access":["local uri = kong.request.get_path()\nlocal new_uri = uri:gsub('^/attribute/v1', '/attribute/api/v1')\nkong.service.request.set_path(new_uri)","local CLAIM = \"reveal_account_id\"\nlocal SEP   = \"_\"\nngx.req.clear_header(\"apikey\")\nlocal auth = kong.request.get_header(\"authorization\")\nif not auth then return end\nlocal app_id = auth:match(\"[Aa]tmosphere_app_id%s*=%s*([^,%s]+)\")\nif not app_id then return end\napp_id = app_id:match('^\"(.*)\"$') or app_id:match(\"^'(.*)'$\") or app_id\nlocal token = auth:match(\"[Bb]earer%s+([^%s,]+)\")\nlocal payload = token and token:match(\"^[^.]+%.([^.]+)%.\")\nif not payload then return end\npayload = payload:gsub(\"-\", \"+\"):gsub(\"_\", \"/\")\npayload = payload .. string.rep(\"=\", (4 - #payload % 4) % 4)\nlocal json = ngx.decode_base64(payload)\nif not json then return end\nlocal account_id = json:match('\"' .. CLAIM .. '\"%s*:%s*\"?([^\",}%s]+)')\nif not account_id then return end\nngx.req.set_header(\"apikey\", app_id .. SEP .. account_id)"]}},"servers":[{"url":"https://api.us.vzconnect.com"}]}
```
