All URIs are relative to https://api.hubapi.com
Method | HTTP request | Description |
---|---|---|
DeleteCrmV3ObjectsCompaniesCompanyIdArchive | DELETE /crm/v3/objects/companies/{companyId} | Archive |
DeleteCrmV3ObjectsContactsContactIdArchive | DELETE /crm/v3/objects/contacts/{contactId} | Archive |
DeleteCrmV3ObjectsDealsDealIdArchive | DELETE /crm/v3/objects/deals/{dealId} | Archive |
DeleteCrmV3ObjectsLineItemsLineItemIdArchive | DELETE /crm/v3/objects/line_items/{lineItemId} | Archive |
DeleteCrmV3ObjectsObjectTypeObjectIdArchive | DELETE /crm/v3/objects/{objectType}/{objectId} | Archive |
DeleteCrmV3ObjectsProductsProductIdArchive | DELETE /crm/v3/objects/products/{productId} | Archive |
DeleteCrmV3ObjectsTicketsTicketIdArchive | DELETE /crm/v3/objects/tickets/{ticketId} | Archive |
DeleteMarketingV3MarketingEventsEventsExternalEventId | DELETE /marketing/v3/marketing-events/events/{externalEventId} | Delete a marketing event |
GetCrmV3ObjectsCompaniesCompanyIdGetById | GET /crm/v3/objects/companies/{companyId} | Read |
GetCrmV3ObjectsCompaniesGetPage | GET /crm/v3/objects/companies | List |
GetCrmV3ObjectsContactsContactIdGetById | GET /crm/v3/objects/contacts/{contactId} | Read |
GetCrmV3ObjectsContactsGetPage | GET /crm/v3/objects/contacts | List |
GetCrmV3ObjectsDealsDealIdGetById | GET /crm/v3/objects/deals/{dealId} | Read |
GetCrmV3ObjectsDealsGetPage | GET /crm/v3/objects/deals | List |
GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdGetById | GET /crm/v3/objects/feedback_submissions/{feedbackSubmissionId} | Read |
GetCrmV3ObjectsFeedbackSubmissionsGetPage | GET /crm/v3/objects/feedback_submissions | List |
GetCrmV3ObjectsLineItemsGetPage | GET /crm/v3/objects/line_items | List |
GetCrmV3ObjectsLineItemsLineItemIdGetById | GET /crm/v3/objects/line_items/{lineItemId} | Read |
GetCrmV3ObjectsObjectTypeGetPage | GET /crm/v3/objects/{objectType} | List |
GetCrmV3ObjectsObjectTypeObjectIdGetById | GET /crm/v3/objects/{objectType}/{objectId} | Read |
GetCrmV3ObjectsProductsGetPage | GET /crm/v3/objects/products | List |
GetCrmV3ObjectsProductsProductIdGetById | GET /crm/v3/objects/products/{productId} | Read |
GetCrmV3ObjectsQuotesGetPage | GET /crm/v3/objects/quotes | List |
GetCrmV3ObjectsQuotesQuoteIdGetById | GET /crm/v3/objects/quotes/{quoteId} | Read |
GetCrmV3ObjectsTicketsGetPage | GET /crm/v3/objects/tickets | List |
GetCrmV3ObjectsTicketsTicketIdGetById | GET /crm/v3/objects/tickets/{ticketId} | Read |
GetMarketingV3MarketingEventsEventsExternalEventId | GET /marketing/v3/marketing-events/events/{externalEventId} | Get a marketing event |
PatchCrmV3ObjectsCompaniesCompanyIdUpdate | PATCH /crm/v3/objects/companies/{companyId} | Update |
PatchCrmV3ObjectsContactsContactIdUpdate | PATCH /crm/v3/objects/contacts/{contactId} | Update |
PatchCrmV3ObjectsDealsDealIdUpdate | PATCH /crm/v3/objects/deals/{dealId} | Update |
PatchCrmV3ObjectsLineItemsLineItemIdUpdate | PATCH /crm/v3/objects/line_items/{lineItemId} | Update |
PatchCrmV3ObjectsObjectTypeObjectIdUpdate | PATCH /crm/v3/objects/{objectType}/{objectId} | Update |
PatchCrmV3ObjectsProductsProductIdUpdate | PATCH /crm/v3/objects/products/{productId} | Update |
PatchCrmV3ObjectsTicketsTicketIdUpdate | PATCH /crm/v3/objects/tickets/{ticketId} | Update |
PatchMarketingV3MarketingEventsEventsExternalEventId | PATCH /marketing/v3/marketing-events/events/{externalEventId} | Update a marketing event |
PostCrmV3ObjectsCompaniesCreate | POST /crm/v3/objects/companies | Create |
PostCrmV3ObjectsContactsCreate | POST /crm/v3/objects/contacts | Create |
PostCrmV3ObjectsDealsCreate | POST /crm/v3/objects/deals | Create |
PostCrmV3ObjectsLineItemsCreate | POST /crm/v3/objects/line_items | Create |
PostCrmV3ObjectsObjectTypeCreate | POST /crm/v3/objects/{objectType} | Create |
PostCrmV3ObjectsProductsCreate | POST /crm/v3/objects/products | Create |
PostCrmV3ObjectsTicketsCreate | POST /crm/v3/objects/tickets | Create |
PostMarketingV3MarketingEventsEvents | POST /marketing/v3/marketing-events/events | Create a marketing event |
PostMarketingV3MarketingEventsEventsExternalEventIdCancel | POST /marketing/v3/marketing-events/events/{externalEventId}/cancel | Mark a marketing event as cancelled |
PutMarketingV3MarketingEventsEventsExternalEventId | PUT /marketing/v3/marketing-events/events/{externalEventId} | Create or update a marketing event |
void DeleteCrmV3ObjectsCompaniesCompanyIdArchive (string companyId)
Archive
Move an Object identified by {companyId}
to the recycling bin.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsCompaniesCompanyIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var companyId = "companyId_example"; // string |
try
{
// Archive
apiInstance.DeleteCrmV3ObjectsCompaniesCompanyIdArchive(companyId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteCrmV3ObjectsCompaniesCompanyIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | 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 DeleteCrmV3ObjectsContactsContactIdArchive (string contactId)
Archive
Move an Object identified by {contactId}
to the recycling bin.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsContactsContactIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var contactId = "contactId_example"; // string |
try
{
// Archive
apiInstance.DeleteCrmV3ObjectsContactsContactIdArchive(contactId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteCrmV3ObjectsContactsContactIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
contactId | 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 DeleteCrmV3ObjectsDealsDealIdArchive (string dealId)
Archive
Move an Object identified by {dealId}
to the recycling bin.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsDealsDealIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var dealId = "dealId_example"; // string |
try
{
// Archive
apiInstance.DeleteCrmV3ObjectsDealsDealIdArchive(dealId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteCrmV3ObjectsDealsDealIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
dealId | 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 DeleteCrmV3ObjectsLineItemsLineItemIdArchive (string lineItemId)
Archive
Move an Object identified by {lineItemId}
to the recycling bin.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsLineItemsLineItemIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var lineItemId = "lineItemId_example"; // string |
try
{
// Archive
apiInstance.DeleteCrmV3ObjectsLineItemsLineItemIdArchive(lineItemId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteCrmV3ObjectsLineItemsLineItemIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
lineItemId | 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 DeleteCrmV3ObjectsObjectTypeObjectIdArchive (string objectType, string objectId)
Archive
Move an Object identified by {objectId}
to the recycling bin.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsObjectTypeObjectIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var objectType = "objectType_example"; // string |
var objectId = "objectId_example"; // string |
try
{
// Archive
apiInstance.DeleteCrmV3ObjectsObjectTypeObjectIdArchive(objectType, objectId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteCrmV3ObjectsObjectTypeObjectIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
objectType | string | ||
objectId | 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 DeleteCrmV3ObjectsProductsProductIdArchive (string productId)
Archive
Move an Object identified by {productId}
to the recycling bin.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsProductsProductIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var productId = "productId_example"; // string |
try
{
// Archive
apiInstance.DeleteCrmV3ObjectsProductsProductIdArchive(productId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteCrmV3ObjectsProductsProductIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
productId | 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 DeleteCrmV3ObjectsTicketsTicketIdArchive (string ticketId)
Archive
Move an Object identified by {ticketId}
to the recycling bin.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteCrmV3ObjectsTicketsTicketIdArchiveExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var ticketId = "ticketId_example"; // string |
try
{
// Archive
apiInstance.DeleteCrmV3ObjectsTicketsTicketIdArchive(ticketId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteCrmV3ObjectsTicketsTicketIdArchive: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ticketId | 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 DeleteMarketingV3MarketingEventsEventsExternalEventId (string externalEventId, string externalAccountId)
Delete a marketing event
Deletes an existing Marketing Event with the specified id, if one exists.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class DeleteMarketingV3MarketingEventsEventsExternalEventIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var externalEventId = "externalEventId_example"; // string | The id of the marketing event to delete
var externalAccountId = "externalAccountId_example"; // string | The account id associated with the marketing event
try
{
// Delete a marketing event
apiInstance.DeleteMarketingV3MarketingEventsEventsExternalEventId(externalEventId, externalAccountId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.DeleteMarketingV3MarketingEventsEventsExternalEventId: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
externalEventId | string | The id of the marketing event to delete | |
externalAccountId | string | The account id associated with the marketing event |
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]
CompaniesSimplePublicObjectWithAssociations GetCrmV3ObjectsCompaniesCompanyIdGetById (string companyId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {companyId}
. {companyId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsCompaniesCompanyIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var companyId = "companyId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
CompaniesSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsCompaniesCompanyIdGetById(companyId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsCompaniesCompanyIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
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]
CompaniesCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsCompaniesGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of companies. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsCompaniesGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
CompaniesCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsCompaniesGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsCompaniesGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
CompaniesCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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 GetCrmV3ObjectsContactsContactIdGetById (string contactId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
Read
Read an Object identified by {contactId}
. {contactId}
refers to the internal object ID. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsContactsContactIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var contactId = "contactId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// Read
ContactsSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsContactsContactIdGetById(contactId, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsContactsContactIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
contactId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
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]
ContactsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsContactsGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of contacts. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsContactsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
ContactsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsContactsGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsContactsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
ContactsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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 GetCrmV3ObjectsDealsDealIdGetById (string dealId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {dealId}
. {dealId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsDealsDealIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var dealId = "dealId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
DealsSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsDealsDealIdGetById(dealId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsDealsDealIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
dealId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
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]
DealsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsDealsGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of deals. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsDealsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
DealsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsDealsGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsDealsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
DealsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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]
FeedbackSubmissionsSimplePublicObjectWithAssociations GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdGetById (string feedbackSubmissionId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {feedbackSubmissionId}
. {feedbackSubmissionId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var feedbackSubmissionId = "feedbackSubmissionId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
FeedbackSubmissionsSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdGetById(feedbackSubmissionId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsFeedbackSubmissionsFeedbackSubmissionIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
feedbackSubmissionId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
FeedbackSubmissionsSimplePublicObjectWithAssociations
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]
FeedbackSubmissionsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsFeedbackSubmissionsGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of feedback submissions. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsFeedbackSubmissionsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
FeedbackSubmissionsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsFeedbackSubmissionsGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsFeedbackSubmissionsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
FeedbackSubmissionsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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]
LineItemsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsLineItemsGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of line items. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsLineItemsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
LineItemsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsLineItemsGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsLineItemsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
LineItemsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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 GetCrmV3ObjectsLineItemsLineItemIdGetById (string lineItemId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {lineItemId}
. {lineItemId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsLineItemsLineItemIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var lineItemId = "lineItemId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
LineItemsSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsLineItemsLineItemIdGetById(lineItemId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsLineItemsLineItemIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
lineItemId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
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]
ObjectsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsObjectTypeGetPage (string objectType, int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of objects. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsObjectTypeGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var objectType = "objectType_example"; // string |
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
ObjectsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsObjectTypeGetPage(objectType, limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsObjectTypeGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
objectType | string | ||
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
ObjectsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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 GetCrmV3ObjectsObjectTypeObjectIdGetById (string objectType, string objectId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {objectId}
. {objectId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsObjectTypeObjectIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var objectType = "objectType_example"; // string |
var objectId = "objectId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
ObjectsSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsObjectTypeObjectIdGetById(objectType, objectId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsObjectTypeObjectIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
objectType | string | ||
objectId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
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]
CollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsProductsGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of products. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsProductsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
CollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsProductsGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsProductsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
CollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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 GetCrmV3ObjectsProductsProductIdGetById (string productId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {productId}
. {productId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsProductsProductIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var productId = "productId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
SimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsProductsProductIdGetById(productId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsProductsProductIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
productId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
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]
QuotesCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsQuotesGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of quotes. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsQuotesGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
QuotesCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsQuotesGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsQuotesGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
QuotesCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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]
QuotesSimplePublicObjectWithAssociations GetCrmV3ObjectsQuotesQuoteIdGetById (string quoteId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {quoteId}
. {quoteId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsQuotesQuoteIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var quoteId = "quoteId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
QuotesSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsQuotesQuoteIdGetById(quoteId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsQuotesQuoteIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
quoteId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
QuotesSimplePublicObjectWithAssociations
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]
TicketsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging GetCrmV3ObjectsTicketsGetPage (int? limit = null, string after = null, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null)
List
Read a page of tickets. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsTicketsGetPageExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var limit = 10; // int? | The maximum number of results to display per page. (optional) (default to 10)
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 properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
try
{
// List
TicketsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging result = apiInstance.GetCrmV3ObjectsTicketsGetPage(limit, after, properties, propertiesWithHistory, associations, archived);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsTicketsGetPage: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int? | The maximum number of results to display per page. | [optional] [default to 10] |
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] |
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. Usage of this parameter will reduce the maximum number of objects that can be read by a single request. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
TicketsCollectionResponseSimplePublicObjectWithAssociationsForwardPaging
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 GetCrmV3ObjectsTicketsTicketIdGetById (string ticketId, List properties = null, List propertiesWithHistory = null, List associations = null, bool? archived = null, string idProperty = null)
Read
Read an Object identified by {ticketId}
. {ticketId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Control what is returned via the properties
query param.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetCrmV3ObjectsTicketsTicketIdGetByIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var ticketId = "ticketId_example"; // string |
var properties = new List<string>(); // List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var propertiesWithHistory = new List<string>(); // List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. (optional)
var associations = new List<string>(); // List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. (optional)
var archived = false; // bool? | Whether to return only results that have been archived. (optional) (default to false)
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Read
TicketsSimplePublicObjectWithAssociations result = apiInstance.GetCrmV3ObjectsTicketsTicketIdGetById(ticketId, properties, propertiesWithHistory, associations, archived, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetCrmV3ObjectsTicketsTicketIdGetById: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ticketId | string | ||
properties | List<string> | A comma separated list of the properties to be returned in the response. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
propertiesWithHistory | List<string> | A comma separated list of the properties to be returned along with their history of previous values. If any of the specified properties are not present on the requested object(s), they will be ignored. | [optional] |
associations | List<string> | A comma separated list of object types to retrieve associated IDs for. If any of the specified associations do not exist, they will be ignored. | [optional] |
archived | bool? | Whether to return only results that have been archived. | [optional] [default to false] |
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
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]
MarketingEventPublicReadResponse GetMarketingV3MarketingEventsEventsExternalEventId (string externalEventId, string externalAccountId)
Get a marketing event
Returns the details of the Marketing Event with the specified id, if one exists.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class GetMarketingV3MarketingEventsEventsExternalEventIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var externalEventId = "externalEventId_example"; // string | The id of the marketing event to return
var externalAccountId = "externalAccountId_example"; // string | The account id associated with the marketing event
try
{
// Get a marketing event
MarketingEventPublicReadResponse result = apiInstance.GetMarketingV3MarketingEventsEventsExternalEventId(externalEventId, externalAccountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.GetMarketingV3MarketingEventsEventsExternalEventId: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
externalEventId | string | The id of the marketing event to return | |
externalAccountId | string | The account id associated with the marketing event |
MarketingEventPublicReadResponse
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]
CompaniesSimplePublicObject PatchCrmV3ObjectsCompaniesCompanyIdUpdate (string companyId, CompaniesSimplePublicObjectInput companiesSimplePublicObjectInput, string idProperty = null)
Update
Perform a partial update of an Object identified by {companyId}
. {companyId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCrmV3ObjectsCompaniesCompanyIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var companyId = "companyId_example"; // string |
var companiesSimplePublicObjectInput = new CompaniesSimplePublicObjectInput(); // CompaniesSimplePublicObjectInput |
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Update
CompaniesSimplePublicObject result = apiInstance.PatchCrmV3ObjectsCompaniesCompanyIdUpdate(companyId, companiesSimplePublicObjectInput, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchCrmV3ObjectsCompaniesCompanyIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companyId | string | ||
companiesSimplePublicObjectInput | CompaniesSimplePublicObjectInput | ||
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
No authorization required
- Content-Type: application/json
- 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]
ContactsSimplePublicObject PatchCrmV3ObjectsContactsContactIdUpdate (string contactId, ContactsSimplePublicObjectInput contactsSimplePublicObjectInput)
Update
Perform a partial update of an Object identified by {contactId}
. {contactId}
refers to the internal object ID. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCrmV3ObjectsContactsContactIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var contactId = "contactId_example"; // string |
var contactsSimplePublicObjectInput = new ContactsSimplePublicObjectInput(); // ContactsSimplePublicObjectInput |
try
{
// Update
ContactsSimplePublicObject result = apiInstance.PatchCrmV3ObjectsContactsContactIdUpdate(contactId, contactsSimplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchCrmV3ObjectsContactsContactIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
contactId | string | ||
contactsSimplePublicObjectInput | ContactsSimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- 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]
DealsSimplePublicObject PatchCrmV3ObjectsDealsDealIdUpdate (string dealId, DealsSimplePublicObjectInput dealsSimplePublicObjectInput, string idProperty = null)
Update
Perform a partial update of an Object identified by {dealId}
. {dealId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCrmV3ObjectsDealsDealIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var dealId = "dealId_example"; // string |
var dealsSimplePublicObjectInput = new DealsSimplePublicObjectInput(); // DealsSimplePublicObjectInput |
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Update
DealsSimplePublicObject result = apiInstance.PatchCrmV3ObjectsDealsDealIdUpdate(dealId, dealsSimplePublicObjectInput, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchCrmV3ObjectsDealsDealIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
dealId | string | ||
dealsSimplePublicObjectInput | DealsSimplePublicObjectInput | ||
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
No authorization required
- Content-Type: application/json
- 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]
LineItemsSimplePublicObject PatchCrmV3ObjectsLineItemsLineItemIdUpdate (string lineItemId, LineItemsSimplePublicObjectInput lineItemsSimplePublicObjectInput, string idProperty = null)
Update
Perform a partial update of an Object identified by {lineItemId}
. {lineItemId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCrmV3ObjectsLineItemsLineItemIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var lineItemId = "lineItemId_example"; // string |
var lineItemsSimplePublicObjectInput = new LineItemsSimplePublicObjectInput(); // LineItemsSimplePublicObjectInput |
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Update
LineItemsSimplePublicObject result = apiInstance.PatchCrmV3ObjectsLineItemsLineItemIdUpdate(lineItemId, lineItemsSimplePublicObjectInput, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchCrmV3ObjectsLineItemsLineItemIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
lineItemId | string | ||
lineItemsSimplePublicObjectInput | LineItemsSimplePublicObjectInput | ||
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
No authorization required
- Content-Type: application/json
- 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]
ObjectsSimplePublicObject PatchCrmV3ObjectsObjectTypeObjectIdUpdate (string objectType, string objectId, ObjectsSimplePublicObjectInput objectsSimplePublicObjectInput, string idProperty = null)
Update
Perform a partial update of an Object identified by {objectId}
. {objectId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCrmV3ObjectsObjectTypeObjectIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var objectType = "objectType_example"; // string |
var objectId = "objectId_example"; // string |
var objectsSimplePublicObjectInput = new ObjectsSimplePublicObjectInput(); // ObjectsSimplePublicObjectInput |
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Update
ObjectsSimplePublicObject result = apiInstance.PatchCrmV3ObjectsObjectTypeObjectIdUpdate(objectType, objectId, objectsSimplePublicObjectInput, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchCrmV3ObjectsObjectTypeObjectIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
objectType | string | ||
objectId | string | ||
objectsSimplePublicObjectInput | ObjectsSimplePublicObjectInput | ||
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
No authorization required
- Content-Type: application/json
- 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]
SimplePublicObject PatchCrmV3ObjectsProductsProductIdUpdate (string productId, SimplePublicObjectInput simplePublicObjectInput, string idProperty = null)
Update
Perform a partial update of an Object identified by {productId}
. {productId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCrmV3ObjectsProductsProductIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var productId = "productId_example"; // string |
var simplePublicObjectInput = new SimplePublicObjectInput(); // SimplePublicObjectInput |
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Update
SimplePublicObject result = apiInstance.PatchCrmV3ObjectsProductsProductIdUpdate(productId, simplePublicObjectInput, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchCrmV3ObjectsProductsProductIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
productId | string | ||
simplePublicObjectInput | SimplePublicObjectInput | ||
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
No authorization required
- Content-Type: application/json
- 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]
TicketsSimplePublicObject PatchCrmV3ObjectsTicketsTicketIdUpdate (string ticketId, TicketsSimplePublicObjectInput ticketsSimplePublicObjectInput, string idProperty = null)
Update
Perform a partial update of an Object identified by {ticketId}
. {ticketId}
refers to the internal object ID by default, or optionally any unique property value as specified by the idProperty
query param. Provided property values will be overwritten. Read-only and non-existent properties will be ignored. Properties values can be cleared by passing an empty string.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchCrmV3ObjectsTicketsTicketIdUpdateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var ticketId = "ticketId_example"; // string |
var ticketsSimplePublicObjectInput = new TicketsSimplePublicObjectInput(); // TicketsSimplePublicObjectInput |
var idProperty = "idProperty_example"; // string | The name of a property whose values are unique for this object type (optional)
try
{
// Update
TicketsSimplePublicObject result = apiInstance.PatchCrmV3ObjectsTicketsTicketIdUpdate(ticketId, ticketsSimplePublicObjectInput, idProperty);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchCrmV3ObjectsTicketsTicketIdUpdate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ticketId | string | ||
ticketsSimplePublicObjectInput | TicketsSimplePublicObjectInput | ||
idProperty | string | The name of a property whose values are unique for this object type | [optional] |
No authorization required
- Content-Type: application/json
- 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]
MarketingEventPublicDefaultResponse PatchMarketingV3MarketingEventsEventsExternalEventId (string externalEventId, string externalAccountId, MarketingEventUpdateRequestParams marketingEventUpdateRequestParams)
Update a marketing event
Updates an existing Marketing Event with the specified id, if one exists.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PatchMarketingV3MarketingEventsEventsExternalEventIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var externalEventId = "externalEventId_example"; // string | The id of the marketing event to update
var externalAccountId = "externalAccountId_example"; // string | The account id associated with the marketing event
var marketingEventUpdateRequestParams = new MarketingEventUpdateRequestParams(); // MarketingEventUpdateRequestParams | The details of the marketing event to update
try
{
// Update a marketing event
MarketingEventPublicDefaultResponse result = apiInstance.PatchMarketingV3MarketingEventsEventsExternalEventId(externalEventId, externalAccountId, marketingEventUpdateRequestParams);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PatchMarketingV3MarketingEventsEventsExternalEventId: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
externalEventId | string | The id of the marketing event to update | |
externalAccountId | string | The account id associated with the marketing event | |
marketingEventUpdateRequestParams | MarketingEventUpdateRequestParams | The details of the marketing event to update |
MarketingEventPublicDefaultResponse
No authorization required
- Content-Type: application/json
- 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]
CompaniesSimplePublicObject PostCrmV3ObjectsCompaniesCreate (CompaniesSimplePublicObjectInput companiesSimplePublicObjectInput)
Create
Create a company with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard companies is provided.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ObjectsCompaniesCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var companiesSimplePublicObjectInput = new CompaniesSimplePublicObjectInput(); // CompaniesSimplePublicObjectInput |
try
{
// Create
CompaniesSimplePublicObject result = apiInstance.PostCrmV3ObjectsCompaniesCreate(companiesSimplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostCrmV3ObjectsCompaniesCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
companiesSimplePublicObjectInput | CompaniesSimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
201 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ContactsSimplePublicObject PostCrmV3ObjectsContactsCreate (ContactsSimplePublicObjectInput contactsSimplePublicObjectInput)
Create
Create a contact with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard contacts is provided.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ObjectsContactsCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var contactsSimplePublicObjectInput = new ContactsSimplePublicObjectInput(); // ContactsSimplePublicObjectInput |
try
{
// Create
ContactsSimplePublicObject result = apiInstance.PostCrmV3ObjectsContactsCreate(contactsSimplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostCrmV3ObjectsContactsCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
contactsSimplePublicObjectInput | ContactsSimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
201 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DealsSimplePublicObject PostCrmV3ObjectsDealsCreate (DealsSimplePublicObjectInput dealsSimplePublicObjectInput)
Create
Create a deal with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard deals is provided.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ObjectsDealsCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var dealsSimplePublicObjectInput = new DealsSimplePublicObjectInput(); // DealsSimplePublicObjectInput |
try
{
// Create
DealsSimplePublicObject result = apiInstance.PostCrmV3ObjectsDealsCreate(dealsSimplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostCrmV3ObjectsDealsCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
dealsSimplePublicObjectInput | DealsSimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
201 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LineItemsSimplePublicObject PostCrmV3ObjectsLineItemsCreate (LineItemsSimplePublicObjectInput lineItemsSimplePublicObjectInput)
Create
Create a line item with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard line items is provided.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ObjectsLineItemsCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var lineItemsSimplePublicObjectInput = new LineItemsSimplePublicObjectInput(); // LineItemsSimplePublicObjectInput |
try
{
// Create
LineItemsSimplePublicObject result = apiInstance.PostCrmV3ObjectsLineItemsCreate(lineItemsSimplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostCrmV3ObjectsLineItemsCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
lineItemsSimplePublicObjectInput | LineItemsSimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
201 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ObjectsSimplePublicObject PostCrmV3ObjectsObjectTypeCreate (string objectType, ObjectsSimplePublicObjectInput objectsSimplePublicObjectInput)
Create
Create a CRM object with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard objects is provided.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ObjectsObjectTypeCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var objectType = "objectType_example"; // string |
var objectsSimplePublicObjectInput = new ObjectsSimplePublicObjectInput(); // ObjectsSimplePublicObjectInput |
try
{
// Create
ObjectsSimplePublicObject result = apiInstance.PostCrmV3ObjectsObjectTypeCreate(objectType, objectsSimplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostCrmV3ObjectsObjectTypeCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
objectType | string | ||
objectsSimplePublicObjectInput | ObjectsSimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
201 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SimplePublicObject PostCrmV3ObjectsProductsCreate (SimplePublicObjectInput simplePublicObjectInput)
Create
Create a product with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard products is provided.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ObjectsProductsCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var simplePublicObjectInput = new SimplePublicObjectInput(); // SimplePublicObjectInput |
try
{
// Create
SimplePublicObject result = apiInstance.PostCrmV3ObjectsProductsCreate(simplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostCrmV3ObjectsProductsCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
simplePublicObjectInput | SimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
201 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TicketsSimplePublicObject PostCrmV3ObjectsTicketsCreate (TicketsSimplePublicObjectInput ticketsSimplePublicObjectInput)
Create
Create a ticket with the given properties and return a copy of the object, including the ID. Documentation and examples for creating standard tickets is provided.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostCrmV3ObjectsTicketsCreateExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var ticketsSimplePublicObjectInput = new TicketsSimplePublicObjectInput(); // TicketsSimplePublicObjectInput |
try
{
// Create
TicketsSimplePublicObject result = apiInstance.PostCrmV3ObjectsTicketsCreate(ticketsSimplePublicObjectInput);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostCrmV3ObjectsTicketsCreate: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
ticketsSimplePublicObjectInput | TicketsSimplePublicObjectInput |
No authorization required
- Content-Type: application/json
- Accept: application/json, /
Status code | Description | Response headers |
---|---|---|
201 | successful operation | - |
0 | An error occurred. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MarketingEventDefaultResponse PostMarketingV3MarketingEventsEvents (MarketingEventCreateRequestParams marketingEventCreateRequestParams)
Create a marketing event
Creates a new marketing event in HubSpot
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostMarketingV3MarketingEventsEventsExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var marketingEventCreateRequestParams = new MarketingEventCreateRequestParams(); // MarketingEventCreateRequestParams | The details of the marketing event to create
try
{
// Create a marketing event
MarketingEventDefaultResponse result = apiInstance.PostMarketingV3MarketingEventsEvents(marketingEventCreateRequestParams);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostMarketingV3MarketingEventsEvents: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
marketingEventCreateRequestParams | MarketingEventCreateRequestParams | The details of the marketing event to create |
No authorization required
- Content-Type: application/json
- 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]
MarketingEventDefaultResponse PostMarketingV3MarketingEventsEventsExternalEventIdCancel (string externalEventId, string externalAccountId)
Mark a marketing event as cancelled
Mark a marketing event as cancelled.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PostMarketingV3MarketingEventsEventsExternalEventIdCancelExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var externalEventId = "externalEventId_example"; // string | The id of the marketing event to mark as cancelled
var externalAccountId = "externalAccountId_example"; // string | The account id associated with the marketing event
try
{
// Mark a marketing event as cancelled
MarketingEventDefaultResponse result = apiInstance.PostMarketingV3MarketingEventsEventsExternalEventIdCancel(externalEventId, externalAccountId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PostMarketingV3MarketingEventsEventsExternalEventIdCancel: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
externalEventId | string | The id of the marketing event to mark as cancelled | |
externalAccountId | string | The account id associated with the marketing event |
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]
MarketingEventPublicDefaultResponse PutMarketingV3MarketingEventsEventsExternalEventId (string externalEventId, MarketingEventCreateRequestParams marketingEventCreateRequestParams)
Create or update a marketing event
Upsets a Marketing Event. If there is an existing Marketing event with the specified id, it will be updated; otherwise a new event will be created.
using System.Collections.Generic;
using System.Diagnostics;
using HubSpot.NET.Api;
using HubSpot.NET.Client;
using HubSpot.NET.Model;
namespace Example
{
public class PutMarketingV3MarketingEventsEventsExternalEventIdExample
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.hubapi.com";
var apiInstance = new BasicApi(config);
var externalEventId = "externalEventId_example"; // string | The id of the marketing event to upsert
var marketingEventCreateRequestParams = new MarketingEventCreateRequestParams(); // MarketingEventCreateRequestParams | The details of the marketing event to upsert
try
{
// Create or update a marketing event
MarketingEventPublicDefaultResponse result = apiInstance.PutMarketingV3MarketingEventsEventsExternalEventId(externalEventId, marketingEventCreateRequestParams);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling BasicApi.PutMarketingV3MarketingEventsEventsExternalEventId: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
externalEventId | string | The id of the marketing event to upsert | |
marketingEventCreateRequestParams | MarketingEventCreateRequestParams | The details of the marketing event to upsert |
MarketingEventPublicDefaultResponse
No authorization required
- Content-Type: application/json
- 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]