api.lookup.get_by_key_and_id
GET /lookup/{masterConstantKey}/{valueId}— ACPortal
Python
api.lookup.get_by_key_and_id(key: str | MasterConstantKey, value_id: str) -> LookupValue
CLI
ab lookup get_by_key_and_id <key> <value_id>
GET /lookup/{masterConstantKey}/{valueId}
Args:
key: A master-constant GROUP key — see
:class:~ab.api.models.enums.MasterConstantKey.
value_id: The LookupValue.id (MasterConstantValueID) to fetch.
Response
Returns LookupValue.
Field |
Type |
Required |
Description |
|---|---|---|---|
|
|
no |
Value ID (Guid, or int for ContactTypes) |
|
|
no |
Master data key |
|
|
no |
Display name |
|
|
no |
Value (Guid) |