Record Operations

circle-check

Overview

Entity records are instances of custom objects, and support standard CRUD operations via the API. These can be an instance of a contact object, or a custom object (with workflow data or without).

It's a good idea to be familiar with these concepts before diving in to entity record operations. See:


Get Entity Record

When getting an entity record, it can be retrieved either by using the entity ID, or identifying the record by name or email.

Get by ID

Using the endpoint /records/{object_identifier}/{entity_id}, a single entity can be fetched by its ID:

curl -X GET "https://app.go.kizen.com/api/records/{object_identifier}/{entity_id}" \
 -H 'accept: application/json' 
circle-info

Note: Read more details and try it yourself in Swaggerarrow-up-right.

Get by Entity Name or Email

Using the endpoint /api/records/{object_identifier}/lookup, a single entity can be fetched using the entity name, or the email address for contacts:

Required query parameters:

Parameter Name
Type
Description

identifier

String

The url-encoded entity name, or email address

Optional query parameters:

Parameter Name
Type
Description

all_fields

Boolean

Returns all fields

field_ids

String

Comma-separated list of field ids to include in the response. If this parameter is present but empty, only default fields will be returned

field_names

String

Comma-separated list of field names to include in the response. If this parameter is present but empty, only default fields will be returned

circle-info

Note: Read more details and try it yourself in Swaggerarrow-up-right.


Update Entity Record

An entity record can be updated by object identifier and entity ID.

Partial Update

To partially update an entity record, make a PATCH to /records/{object_identifier}/{entity_id}:

By default, only the updated fields will be returned in the response. In order to return all fields in the response to the PATCH, include the query parameter return_all_fields=true":

Parameter Name
Type
Description

return_all_fields

Boolean

If true, returns all fields even if they were not updated.

circle-info

Note: Read more details and try it yourself in Swaggerarrow-up-right.

Archive Entity Record

Entity records are archived rather than deleted. This soft delete behavior allows for entity records to be restored at a later time. When an archived record is restored, its history is preserved.

When a record is archived, if it is related to other records, in the inverse relationship field will be cleared on any related records.

To archive a record, make a DELETE to /records/{object_identifier}/{entity_id}:

circle-info

Note: Read more details and try it yourself in Swaggerarrow-up-right.


What's Next

In the next section, Record Search, you’ll learn how to search for entity records using the API, apply text-based and criteria-based filters, and understand best practices for building search queries safely.

Last updated

Was this helpful?