All URIs are relative to https://api.hubapi.com
| Method | HTTP request | Description |
|---|---|---|
| DeleteCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive | DELETE /crm/v3/objects/companies/{companyId}/associations/{toObjectType}/{toObjectId}/{associationType} | Remove an association between two companies |
| DeleteCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive | DELETE /crm/v3/objects/contacts/{contactId}/associations/{toObjectType}/{toObjectId}/{associationType} | Remove an association between two contacts |
| DeleteCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive | DELETE /crm/v3/objects/deals/{dealId}/associations/{toObjectType}/{toObjectId}/{associationType} | Remove an association between two deals |
| DeleteCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive | DELETE /crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}/{toObjectId}/{associationType} | Remove an association between two line items |
| DeleteCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive | DELETE /crm/v3/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}/{associationType} | Remove an association between two objects |
| DeleteCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive | DELETE /crm/v3/objects/products/{productId}/associations/{toObjectType}/{toObjectId}/{associationType} | Remove an association between two products |
| DeleteCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive | DELETE /crm/v3/objects/tickets/{ticketId}/associations/{toObjectType}/{toObjectId}/{associationType} | Remove an association between two tickets |
| GetCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/companies/{companyId}/associations/{toObjectType} | List associations of a company by type |
| GetCrmV3ObjectsContactsContactIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/contacts/{contactId}/associations/{toObjectType} | List associations of a contact by type |
| GetCrmV3ObjectsDealsDealIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/deals/{dealId}/associations/{toObjectType} | List associations of a deal by type |
| GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/feedback_submissions/{feedbackSubmissionId}/associations/{toObjectType} | List associations of a feedback submission by type |
| GetCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType} | List associations of a line item by type |
| GetCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/{objectType}/{objectId}/associations/{toObjectType} | List associations of an object by type |
| GetCrmV3ObjectsProductsProductIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/products/{productId}/associations/{toObjectType} | List associations of a product by type |
| GetCrmV3ObjectsQuotesQuoteIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/quotes/{quoteId}/associations/{toObjectType} | List associations of a quote by type |
| GetCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeGetAll | GET /crm/v3/objects/tickets/{ticketId}/associations/{toObjectType} | List associations of a ticket by type |
| PutCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate | PUT /crm/v3/objects/companies/{companyId}/associations/{toObjectType}/{toObjectId}/{associationType} | Associate a company with another object |
| PutCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate | PUT /crm/v3/objects/contacts/{contactId}/associations/{toObjectType}/{toObjectId}/{associationType} | Associate a contact with another object |
| PutCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate | PUT /crm/v3/objects/deals/{dealId}/associations/{toObjectType}/{toObjectId}/{associationType} | Associate a deal with another object |
| PutCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate | PUT /crm/v3/objects/line_items/{lineItemId}/associations/{toObjectType}/{toObjectId}/{associationType} | Associate a line item with another object |
| PutCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate | PUT /crm/v3/objects/{objectType}/{objectId}/associations/{toObjectType}/{toObjectId}/{associationType} | Associate an object with another object |
| PutCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate | PUT /crm/v3/objects/products/{productId}/associations/{toObjectType}/{toObjectId}/{associationType} | Associate a product with another object |
| PutCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate | PUT /crm/v3/objects/tickets/{ticketId}/associations/{toObjectType}/{toObjectId}/{associationType} | Associate a ticket with another object |
void DeleteCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string companyId, string toObjectType, string toObjectId, string associationType)
Remove an association between two companies
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var companyId = "companyId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Remove an association between two companies
apiInstance.DeleteCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive(companyId, toObjectType, toObjectId, associationType);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.DeleteCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| companyId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string contactId, string toObjectType, string toObjectId, string associationType)
Remove an association between two contacts
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var contactId = "contactId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Remove an association between two contacts
apiInstance.DeleteCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive(contactId, toObjectType, toObjectId, associationType);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.DeleteCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contactId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string dealId, string toObjectType, string toObjectId, string associationType)
Remove an association between two deals
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var dealId = "dealId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Remove an association between two deals
apiInstance.DeleteCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive(dealId, toObjectType, toObjectId, associationType);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.DeleteCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| dealId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string lineItemId, string toObjectType, string toObjectId, string associationType)
Remove an association between two line items
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var lineItemId = "lineItemId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Remove an association between two line items
apiInstance.DeleteCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive(lineItemId, toObjectType, toObjectId, associationType);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.DeleteCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| lineItemId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string objectType, string objectId, string toObjectType, string toObjectId, string associationType)
Remove an association between two objects
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var objectType = "objectType_example"; // string |
var objectId = "objectId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Remove an association between two objects
apiInstance.DeleteCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive(objectType, objectId, toObjectType, toObjectId, associationType);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.DeleteCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| objectType | string | ||
| objectId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string productId, string toObjectType, string toObjectId, string associationType)
Remove an association between two products
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var productId = "productId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Remove an association between two products
apiInstance.DeleteCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive(productId, toObjectType, toObjectId, associationType);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.DeleteCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| productId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
void DeleteCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string ticketId, string toObjectType, string toObjectId, string associationType)
Remove an association between two tickets
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var ticketId = "ticketId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Remove an association between two tickets
apiInstance.DeleteCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive(ticketId, toObjectType, toObjectId, associationType);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.DeleteCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ticketId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: /
| Status code | Description | Response headers |
|---|---|---|
| 204 | No content | - |
| 0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CompaniesCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeGetAll (string companyId, string toObjectType, string after = null, int? limit = null)
List associations of a company by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var companyId = "companyId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a company by type
CompaniesCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeGetAll(companyId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| companyId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
CompaniesCollectionResponseAssociatedIdForwardPaging
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]
ContactsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsContactsContactIdAssociationsToObjectTypeGetAll (string contactId, string toObjectType, string after = null, int? limit = null)
List associations of a contact by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsContactsContactIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var contactId = "contactId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a contact by type
ContactsCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsContactsContactIdAssociationsToObjectTypeGetAll(contactId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsContactsContactIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contactId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
ContactsCollectionResponseAssociatedIdForwardPaging
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]
DealsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsDealsDealIdAssociationsToObjectTypeGetAll (string dealId, string toObjectType, string after = null, int? limit = null)
List associations of a deal by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsDealsDealIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var dealId = "dealId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a deal by type
DealsCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsDealsDealIdAssociationsToObjectTypeGetAll(dealId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsDealsDealIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| dealId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
DealsCollectionResponseAssociatedIdForwardPaging
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]
FeedbackSubmissionsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdAssociationsToObjectTypeGetAll (string feedbackSubmissionId, string toObjectType, string after = null, int? limit = null)
List associations of a feedback submission by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var feedbackSubmissionId = "feedbackSubmissionId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a feedback submission by type
FeedbackSubmissionsCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdAssociationsToObjectTypeGetAll(feedbackSubmissionId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| feedbackSubmissionId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
FeedbackSubmissionsCollectionResponseAssociatedIdForwardPaging
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]
LineItemsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeGetAll (string lineItemId, string toObjectType, string after = null, int? limit = null)
List associations of a line item by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var lineItemId = "lineItemId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a line item by type
LineItemsCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeGetAll(lineItemId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| lineItemId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
LineItemsCollectionResponseAssociatedIdForwardPaging
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]
ObjectsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeGetAll (string objectType, string objectId, string toObjectType, string after = null, int? limit = null)
List associations of an object by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var objectType = "objectType_example"; // string |
var objectId = "objectId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of an object by type
ObjectsCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeGetAll(objectType, objectId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| objectType | string | ||
| objectId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
ObjectsCollectionResponseAssociatedIdForwardPaging
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]
CollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsProductsProductIdAssociationsToObjectTypeGetAll (string productId, string toObjectType, string after = null, int? limit = null)
List associations of a product by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsProductsProductIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var productId = "productId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a product by type
CollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsProductsProductIdAssociationsToObjectTypeGetAll(productId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsProductsProductIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| productId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
CollectionResponseAssociatedIdForwardPaging
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]
QuotesCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsQuotesQuoteIdAssociationsToObjectTypeGetAll (string quoteId, string toObjectType, string after = null, int? limit = null)
List associations of a quote by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsQuotesQuoteIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var quoteId = "quoteId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a quote by type
QuotesCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsQuotesQuoteIdAssociationsToObjectTypeGetAll(quoteId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsQuotesQuoteIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| quoteId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
QuotesCollectionResponseAssociatedIdForwardPaging
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]
TicketsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeGetAll (string ticketId, string toObjectType, string after = null, int? limit = null)
List associations of a ticket by type
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeGetAllExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var ticketId = "ticketId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var after = "after_example"; // string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. (optional)
var limit = 500; // int? | The maximum number of results to display per page. (optional) (default to 500)
try
{
// List associations of a ticket by type
TicketsCollectionResponseAssociatedIdForwardPaging result = apiInstance.GetCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeGetAll(ticketId, toObjectType, after, limit);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.GetCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeGetAll: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ticketId | string | ||
| toObjectType | string | ||
| after | string | The paging cursor token of the last successfully read resource will be returned as the `paging.next.after` JSON property of a paged response containing more results. | [optional] |
| limit | int? | The maximum number of results to display per page. | [optional] [default to 500] |
TicketsCollectionResponseAssociatedIdForwardPaging
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]
CompaniesSimplePublicObjectWithAssociations PutCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string companyId, string toObjectType, string toObjectId, string associationType)
Associate a company with another object
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var companyId = "companyId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Associate a company with another object
CompaniesSimplePublicObjectWithAssociations result = apiInstance.PutCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate(companyId, toObjectType, toObjectId, associationType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.PutCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| companyId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
CompaniesSimplePublicObjectWithAssociations
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]
ContactsSimplePublicObjectWithAssociations PutCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string contactId, string toObjectType, string toObjectId, string associationType)
Associate a contact with another object
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var contactId = "contactId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Associate a contact with another object
ContactsSimplePublicObjectWithAssociations result = apiInstance.PutCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate(contactId, toObjectType, toObjectId, associationType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.PutCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| contactId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
ContactsSimplePublicObjectWithAssociations
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]
DealsSimplePublicObjectWithAssociations PutCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string dealId, string toObjectType, string toObjectId, string associationType)
Associate a deal with another object
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var dealId = "dealId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Associate a deal with another object
DealsSimplePublicObjectWithAssociations result = apiInstance.PutCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate(dealId, toObjectType, toObjectId, associationType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.PutCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| dealId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
DealsSimplePublicObjectWithAssociations
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]
LineItemsSimplePublicObjectWithAssociations PutCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string lineItemId, string toObjectType, string toObjectId, string associationType)
Associate a line item with another object
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var lineItemId = "lineItemId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Associate a line item with another object
LineItemsSimplePublicObjectWithAssociations result = apiInstance.PutCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate(lineItemId, toObjectType, toObjectId, associationType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.PutCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| lineItemId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
LineItemsSimplePublicObjectWithAssociations
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]
ObjectsSimplePublicObjectWithAssociations PutCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string objectType, string objectId, string toObjectType, string toObjectId, string associationType)
Associate an object with another object
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var objectType = "objectType_example"; // string |
var objectId = "objectId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Associate an object with another object
ObjectsSimplePublicObjectWithAssociations result = apiInstance.PutCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate(objectType, objectId, toObjectType, toObjectId, associationType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.PutCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| objectType | string | ||
| objectId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
ObjectsSimplePublicObjectWithAssociations
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]
SimplePublicObjectWithAssociations PutCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string productId, string toObjectType, string toObjectId, string associationType)
Associate a product with another object
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var productId = "productId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Associate a product with another object
SimplePublicObjectWithAssociations result = apiInstance.PutCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate(productId, toObjectType, toObjectId, associationType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.PutCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| productId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
SimplePublicObjectWithAssociations
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]
TicketsSimplePublicObjectWithAssociations PutCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string ticketId, string toObjectType, string toObjectId, string associationType)
Associate a ticket with another object
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new AssociationsApi(config);
var ticketId = "ticketId_example"; // string |
var toObjectType = "toObjectType_example"; // string |
var toObjectId = "toObjectId_example"; // string |
var associationType = "associationType_example"; // string |
try
{
// Associate a ticket with another object
TicketsSimplePublicObjectWithAssociations result = apiInstance.PutCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate(ticketId, toObjectType, toObjectId, associationType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling AssociationsApi.PutCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| ticketId | string | ||
| toObjectType | string | ||
| toObjectId | string | ||
| associationType | string |
TicketsSimplePublicObjectWithAssociations
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]