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

id

str | int | None

no

Value ID (Guid, or int for ContactTypes)

key

Optional[str]

no

Master data key

name

Optional[str]

no

Display name

value

Optional[str]

no

Value (Guid)


← Back to api.lookup