Custom Object Classes
The Custom Object Class
object is used to represent a Custom Object Schema in the remote system.The CustomObjectClass object
Properties
name
StringOptional
description
StringOptional
labels
ObjectRequired
fields
RemoteFieldClassForCustomObjectClass[]Required
association_types
ArrayOptional
id
StringRequired
remote_id
StringOptional
The third-party API ID of the matching object.
modified_at
StringRequired
The CustomObjectClass object
JSON
{"name": "order","description": "Order object","labels": {"singular": "Order","plural": "Orders"},"fields": [{"display_name": "Order ID","remote_key_name": "order_id","description": "The unique ID for the order.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Order Quantity","remote_key_name": "order_quantity","description": "The number of items ordered.","is_required": true,"is_nested_list": false,"field_type": "number","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Customer Type","remote_key_name": "customer_type","description": "The type of customer.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": ["New","Returning"],"item_schema": null}],"association_types": [{}],"id": "ff1ff4cb-a66b-47dc-8e2a-50388049e602","remote_id": "9579977","modified_at": "2021-10-16T00:00:00Z"}
This endpoint is currently supported for Salesforce, Hubspot, and Zendesk Sell. More integrations coming soon!
GET
/custom-object-classes
Returns a list of CustomObjectClass
objects.
Header Parameters
Authorization
StringRequired
Token-based authentication with required prefix "Bearer"
X-Account-Token
StringRequired
Token identifying the end user.
Query & Path Parameters
created_after
StringOptional
If provided, will only return objects created after this datetime.
created_before
StringOptional
If provided, will only return objects created before this datetime.
cursor
StringOptional
The pagination cursor value.
expand
StringOptional
Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
include_deleted_data
BooleanOptional
Whether to include data that was marked as deleted by third party webhooks.
include_remote_data
BooleanOptional
Whether to include the original data Merge fetched from the third-party to produce these models.
modified_after
StringOptional
If provided, only objects synced by Merge after this date time will be returned.
modified_before
StringOptional
If provided, only objects synced by Merge before this date time will be returned.
page_size
IntegerOptional
Number of results to return per page.
remote_id
StringOptional
The API provider's ID for the given object.
Response
JSON
{"next": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw","previous": "cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ","results": [{"name": "order","description": "Order object","labels": {"singular": "Order","plural": "Orders"},"fields": [{"display_name": "Order ID","remote_key_name": "order_id","description": "The unique ID for the order.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Order Quantity","remote_key_name": "order_quantity","description": "The number of items ordered.","is_required": true,"is_nested_list": false,"field_type": "number","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Customer Type","remote_key_name": "customer_type","description": "The type of customer.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": ["New","Returning"],"item_schema": null}],"association_types": [{}],"id": "ff1ff4cb-a66b-47dc-8e2a-50388049e602","remote_id": "9579977","modified_at": "2021-10-16T00:00:00Z"}]}
This endpoint is currently supported for Salesforce, Hubspot, and Zendesk Sell. More integrations coming soon!
GET
/custom-object-classes/{id}
Returns a CustomObjectClass
object with the given id
.
Header Parameters
Authorization
StringRequired
Token-based authentication with required prefix "Bearer"
X-Account-Token
StringRequired
Token identifying the end user.
Query & Path Parameters
expand
StringOptional
Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
id
StringRequired
include_remote_data
BooleanOptional
Whether to include the original data Merge fetched from the third-party to produce these models.
Response
JSON
{"name": "order","description": "Order object","labels": {"singular": "Order","plural": "Orders"},"fields": [{"display_name": "Order ID","remote_key_name": "order_id","description": "The unique ID for the order.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Order Quantity","remote_key_name": "order_quantity","description": "The number of items ordered.","is_required": true,"is_nested_list": false,"field_type": "number","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Customer Type","remote_key_name": "customer_type","description": "The type of customer.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": ["New","Returning"],"item_schema": null}],"association_types": [{}],"id": "ff1ff4cb-a66b-47dc-8e2a-50388049e602","remote_id": "9579977","modified_at": "2021-10-16T00:00:00Z"}
This endpoint is currently supported for Salesforce, Hubspot, and Zendesk Sell. More integrations coming soon!
PUT
/custom-object-classes/generator/{generator_id}
Updates a CustomObjectClass
object with the given id
.
Header Parameters
Authorization
StringRequired
Token-based authentication with required prefix "Bearer"
X-Account-Token
StringRequired
Token identifying the end user.
Query & Path Parameters
generator_id
StringRequired
is_debug_mode
BooleanOptional
Whether to include debug fields (such as log file links) in the response.
run_async
BooleanOptional
Whether or not third-party updates should be run asynchronously.
Response
JSON
{"name": "order","description": "Order object","labels": {"singular": "Order","plural": "Orders"},"fields": [{"display_name": "Order ID","remote_key_name": "order_id","description": "The unique ID for the order.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Order Quantity","remote_key_name": "order_quantity","description": "The number of items ordered.","is_required": true,"is_nested_list": false,"field_type": "number","field_format": null,"field_choices": [],"item_schema": null},{"display_name": "Customer Type","remote_key_name": "customer_type","description": "The type of customer.","is_required": true,"is_nested_list": false,"field_type": "string","field_format": null,"field_choices": ["New","Returning"],"item_schema": null}],"association_types": [{}],"id": "ff1ff4cb-a66b-47dc-8e2a-50388049e602","remote_id": "9579977","modified_at": "2021-10-16T00:00:00Z"}
This endpoint is currently supported for Salesforce, Hubspot, and Zendesk Sell. More integrations coming soon!