---
schema_version: "1"
id: 1ce5210e613f31837df92e0134bd238973798bf7882f2896f8a16016023076fb
title: GET /contacts/v1/customobjectfield/{id}/relationships
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-apis/retrieveCustomObjectFieldRelationships.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc_rest_contacts/retrieveCustomObjectFieldRelationships.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b54410efbc25c9ef8421860ba5de4a878b505f97b3b668e1ce8773c503c8bf33
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# GET /contacts/v1/customobjectfield/{id}/relationships

## Overview

Retrieves relationship details for a customobjectfield that is registered in the contacts model.

## URL Parameters

| Name | Type |          | Description                           |
| ---- | ---- | -------- | ------------------------------------- |
| id   | guid | Required | ID of the custom object as GUID value |

## Responses

| Status  | Name                                                                                  | Type   | Description                                                                                        |
| ------- | ------------------------------------------------------------------------------------- | ------ | -------------------------------------------------------------------------------------------------- |
| **200** | &nbsp;                                                                                | &nbsp; | **Contact model relationship detail for a custom object field**                                    |
| &nbsp;  | customobjectFieldId                                                                   | guid   | Requested CustomObjectFieldID                                                                      |
| &nbsp;  | requestServiceMessageID                                                               | guid   | Service message ID value of the request                                                            |
| &nbsp;  | resultMessages                                                                        | array  | Array of returned messages generated while processing the request                                  |
| &nbsp;  | serviceMessageID                                                                      | guid   | Service message ID value of the response                                                           |
| &nbsp;  | customObjectFieldRelationships                                                        | array  | Array of relationship detail for the requested CustomObjectField                                   |
| &nbsp;  | customObjectFieldRelationships.attributeInfo                                          | object | Contact attribute and parent attribute set info of the requested CustomObjectField                 |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.parentAttributeSet                       | object | AttributeSet info of the requested CustomObjectField                                               |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.parentAttributeSet.definitionID          | guid   | Definition ID value of the attribute set that the requested CustomObjectField belongs to           |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.parentAttributeSet.definitionName        | guid   | Definition Name value of the attribute set that the requested CustomObjectField belongs to         |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.parentAttributeSet.definitionKey         | guid   | Customer key value of the attribute set that the requested CustomObjectField belongs to            |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.AttributeDefinitionEntity                | object | Attribute Info of the requested CustomObjectField                                                  |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.AttributeDefinitionEntity.definitionID   | guid   | Definition ID value of the attribute of the requested CustomObjectField                            |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.AttributeDefinitionEntity.definitionName | guid   | Definition Name value of the attribute of the requested CustomObjectField                          |
| &nbsp;  | customObjectFieldRelationships.attributeInfo.AttributeDefinitionEntity.definitionKey  | guid   | Customer key value defined of the attribute of the requested CustomObjectField                     |
| &nbsp;  | customObjectFieldRelationships.attributegroups                                        | array  | Array of AttributeGroups the requested CustomObjectField is associated with                        |
| &nbsp;  | customObjectFieldRelationships.attributegroups.definitionID                           | guid   | Definition ID value of the attribute group that the requested CustomObjectField belongs to         |
| &nbsp;  | customObjectFieldRelationships.attributegroups.definitionName                         | guid   | Definition Name value of the attribute group that the requested CustomObjectField belongs to       |
| &nbsp;  | customObjectFieldRelationships.attributegroups.definitionKey                          | guid   | Customer Key value defined for the attribute group that the requested CustomObjectField belongs to |
| &nbsp;  | &nbsp;                                                                                | &nbsp; | &nbsp;                                                                                             |
| **400** | &nbsp;                                                                                | &nbsp; | **CustomObjectFieldID is a required field**                                                        |
| &nbsp;  | message                                                                               | string | The request must contain a valid CustomObjectFieldID                                               |
