Get a custom object record
object.retrieve(strid, ObjectRetrieveParams**kwargs) -> ObjectRetrieveResponse
GET/v1/objects/{entitySlug}/values/{id}
Retrieves a single record by ID for the specified custom object type.
Get a custom object record
from lightfield import Lightfield
client = Lightfield(
api_key="My API Key",
)
object_retrieve_response = client.object.retrieve(
id="id",
entity_slug="entitySlug",
)
print(object_retrieve_response.id){
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink",
"relationships": {
"foo": {
"cardinality": "cardinality",
"objectType": "objectType",
"values": [
"string"
]
}
},
"updatedAt": "updatedAt",
"externalId": "externalId"
}