All URIs are relative to https://api.hubapi.com
| Method | HTTP request | Description |
|---|---|---|
| GetCrmV3AssociationsFromObjectTypeToObjectTypeTypesGetAll | GET /crm/v3/associations/{fromObjectType}/{toObjectType}/types | List association types |
CollectionResponsePublicAssociationDefiniton GetCrmV3AssociationsFromObjectTypeToObjectTypeTypesGetAll (string fromObjectType, string toObjectType)
List association types
List all the valid association types available between two object types
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3AssociationsFromObjectTypeToObjectTypeTypesGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new TypesApi(config);
var fromObjectType = "fromObjectType_example"; // string |
var toObjectType = "toObjectType_example"; // string |
try
{
// List association types
CollectionResponsePublicAssociationDefiniton result = apiInstance.GetCrmV3AssociationsFromObjectTypeToObjectTypeTypesGetAll(fromObjectType, toObjectType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling TypesApi.GetCrmV3AssociationsFromObjectTypeToObjectTypeTypesGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| fromObjectType | string | ||
| toObjectType | string |
CollectionResponsePublicAssociationDefiniton
No authorization required
- Content-Type: Not defined
- Accept: application/json, /
| Status code | Description | Response headers |
|---|---|---|
| 200 | successful operation | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]