Skip to content

Latest commit

 

History

History
1778 lines (1406 loc) · 73.7 KB

File metadata and controls

1778 lines (1406 loc) · 73.7 KB

HubSpot.NET.Api.AssociationsApi

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

DeleteCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive

void DeleteCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string companyId, string toObjectType, string toObjectId, string associationType)

Remove an association between two companies

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
companyId string
toObjectType string
toObjectId string
associationType string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

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]

DeleteCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive

void DeleteCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string contactId, string toObjectType, string toObjectId, string associationType)

Remove an association between two contacts

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
contactId string
toObjectType string
toObjectId string
associationType string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

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]

DeleteCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive

void DeleteCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string dealId, string toObjectType, string toObjectId, string associationType)

Remove an association between two deals

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
dealId string
toObjectType string
toObjectId string
associationType string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

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]

DeleteCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive

void DeleteCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string lineItemId, string toObjectType, string toObjectId, string associationType)

Remove an association between two line items

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
lineItemId string
toObjectType string
toObjectId string
associationType string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

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]

DeleteCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive

void DeleteCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string objectType, string objectId, string toObjectType, string toObjectId, string associationType)

Remove an association between two objects

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
objectType string
objectId string
toObjectType string
toObjectId string
associationType string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

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]

DeleteCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive

void DeleteCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string productId, string toObjectType, string toObjectId, string associationType)

Remove an association between two products

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
productId string
toObjectType string
toObjectId string
associationType string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

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]

DeleteCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive

void DeleteCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeArchive (string ticketId, string toObjectType, string toObjectId, string associationType)

Remove an association between two tickets

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
ticketId string
toObjectType string
toObjectId string
associationType string

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

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]

GetCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeGetAll

CompaniesCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeGetAll (string companyId, string toObjectType, string after = null, int? limit = null)

List associations of a company by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

CompaniesCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsContactsContactIdAssociationsToObjectTypeGetAll

ContactsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsContactsContactIdAssociationsToObjectTypeGetAll (string contactId, string toObjectType, string after = null, int? limit = null)

List associations of a contact by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

ContactsCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsDealsDealIdAssociationsToObjectTypeGetAll

DealsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsDealsDealIdAssociationsToObjectTypeGetAll (string dealId, string toObjectType, string after = null, int? limit = null)

List associations of a deal by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

DealsCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdAssociationsToObjectTypeGetAll

FeedbackSubmissionsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdAssociationsToObjectTypeGetAll (string feedbackSubmissionId, string toObjectType, string after = null, int? limit = null)

List associations of a feedback submission by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

FeedbackSubmissionsCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeGetAll

LineItemsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeGetAll (string lineItemId, string toObjectType, string after = null, int? limit = null)

List associations of a line item by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

LineItemsCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeGetAll

ObjectsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeGetAll (string objectType, string objectId, string toObjectType, string after = null, int? limit = null)

List associations of an object by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

ObjectsCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsProductsProductIdAssociationsToObjectTypeGetAll

CollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsProductsProductIdAssociationsToObjectTypeGetAll (string productId, string toObjectType, string after = null, int? limit = null)

List associations of a product by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

CollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsQuotesQuoteIdAssociationsToObjectTypeGetAll

QuotesCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsQuotesQuoteIdAssociationsToObjectTypeGetAll (string quoteId, string toObjectType, string after = null, int? limit = null)

List associations of a quote by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

QuotesCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

GetCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeGetAll

TicketsCollectionResponseAssociatedIdForwardPaging GetCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeGetAll (string ticketId, string toObjectType, string after = null, int? limit = null)

List associations of a ticket by type

Example

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);
            }
        }
    }
}

Parameters

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]

Return type

TicketsCollectionResponseAssociatedIdForwardPaging

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

PutCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate

CompaniesSimplePublicObjectWithAssociations PutCrmV3ObjectsCompaniesCompanyIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string companyId, string toObjectType, string toObjectId, string associationType)

Associate a company with another object

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
companyId string
toObjectType string
toObjectId string
associationType string

Return type

CompaniesSimplePublicObjectWithAssociations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

PutCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate

ContactsSimplePublicObjectWithAssociations PutCrmV3ObjectsContactsContactIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string contactId, string toObjectType, string toObjectId, string associationType)

Associate a contact with another object

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
contactId string
toObjectType string
toObjectId string
associationType string

Return type

ContactsSimplePublicObjectWithAssociations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

PutCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate

DealsSimplePublicObjectWithAssociations PutCrmV3ObjectsDealsDealIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string dealId, string toObjectType, string toObjectId, string associationType)

Associate a deal with another object

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
dealId string
toObjectType string
toObjectId string
associationType string

Return type

DealsSimplePublicObjectWithAssociations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

PutCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate

LineItemsSimplePublicObjectWithAssociations PutCrmV3ObjectsLineItemsLineItemIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string lineItemId, string toObjectType, string toObjectId, string associationType)

Associate a line item with another object

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
lineItemId string
toObjectType string
toObjectId string
associationType string

Return type

LineItemsSimplePublicObjectWithAssociations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

PutCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate

ObjectsSimplePublicObjectWithAssociations PutCrmV3ObjectsObjectTypeObjectIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string objectType, string objectId, string toObjectType, string toObjectId, string associationType)

Associate an object with another object

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
objectType string
objectId string
toObjectType string
toObjectId string
associationType string

Return type

ObjectsSimplePublicObjectWithAssociations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

PutCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate

SimplePublicObjectWithAssociations PutCrmV3ObjectsProductsProductIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string productId, string toObjectType, string toObjectId, string associationType)

Associate a product with another object

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
productId string
toObjectType string
toObjectId string
associationType string

Return type

SimplePublicObjectWithAssociations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]

PutCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate

TicketsSimplePublicObjectWithAssociations PutCrmV3ObjectsTicketsTicketIdAssociationsToObjectTypeToObjectIdAssociationTypeCreate (string ticketId, string toObjectType, string toObjectId, string associationType)

Associate a ticket with another object

Example

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);
            }
        }
    }
}

Parameters

Name Type Description Notes
ticketId string
toObjectType string
toObjectId string
associationType string

Return type

TicketsSimplePublicObjectWithAssociations

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, /

HTTP response details

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]