{
  "opencollection": "1.0.0",
  "info": {
    "name": "HubSpot Analytics Events Access Tokens Associations API",
    "version": "3.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Associations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Hubspot List Subscription Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/subscriptions/:subscriptionId/associations/:toObjectType",
            "params": [
              {
                "name": "subscriptionId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the subscription."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object."
              }
            ]
          },
          "docs": "Returns all associations of a subscription record to objects of a specified type, such as contacts, companies, or deals."
        },
        {
          "info": {
            "name": "Hubspot List Company Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/companies/:companyId/associations/:toObjectType",
            "params": [
              {
                "name": "companyId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the company."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object (e.g., contacts, deals, tickets)."
              }
            ]
          },
          "docs": "Returns all associations of a company record to objects of a specified type, such as contacts, deals, or tickets."
        },
        {
          "info": {
            "name": "Hubspot Create a Company Association",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v3/objects/companies/:companyId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "companyId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the company."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the object to associate with."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the object to associate with."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to create."
              }
            ]
          },
          "docs": "Creates an association between a company and another CRM object record. The association type specifies the relationship between the objects."
        },
        {
          "info": {
            "name": "Hubspot Delete a Company Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v3/objects/companies/:companyId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "companyId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the company."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the associated object."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the associated object."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to delete."
              }
            ]
          },
          "docs": "Removes an association between a company and another CRM object record. This does not delete the company or the associated object, only the relationship between them."
        },
        {
          "info": {
            "name": "Hubspot List Contact Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/contacts/:contactId/associations/:toObjectType",
            "params": [
              {
                "name": "contactId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the contact."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object (e.g., companies, deals, tickets)."
              }
            ]
          },
          "docs": "Returns all associations of a contact record to objects of a specified type, such as companies, deals, or tickets."
        },
        {
          "info": {
            "name": "Hubspot Create a Contact Association",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v3/objects/contacts/:contactId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "contactId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the contact."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the object to associate with."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the object to associate with."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to create."
              }
            ]
          },
          "docs": "Creates an association between a contact and another CRM object record. The association type specifies the relationship between the objects."
        },
        {
          "info": {
            "name": "Hubspot Delete a Contact Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v3/objects/contacts/:contactId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "contactId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the contact."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the associated object."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the associated object."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to delete."
              }
            ]
          },
          "docs": "Removes an association between a contact and another CRM object record. This does not delete the contact or the associated object, only the relationship between them."
        },
        {
          "info": {
            "name": "Hubspot List Deal Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/deals/:dealId/associations/:toObjectType",
            "params": [
              {
                "name": "dealId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the deal."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object (e.g., contacts, companies)."
              }
            ]
          },
          "docs": "Returns all associations of a deal record to objects of a specified type, such as contacts, companies, or tickets."
        },
        {
          "info": {
            "name": "Hubspot Create a Deal Association",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v3/objects/deals/:dealId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "dealId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the deal."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the object to associate with."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the object to associate with."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to create."
              }
            ]
          },
          "docs": "Creates an association between a deal and another CRM object record. The association type specifies the relationship between the objects."
        },
        {
          "info": {
            "name": "Hubspot Delete a Deal Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v3/objects/deals/:dealId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "dealId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the deal."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the associated object."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the associated object."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to delete."
              }
            ]
          },
          "docs": "Removes an association between a deal and another CRM object record. This does not delete the deal or the associated object, only the relationship between them."
        },
        {
          "info": {
            "name": "Hubspot List Ticket Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/tickets/:ticketId/associations/:toObjectType",
            "params": [
              {
                "name": "ticketId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the ticket."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object (e.g., contacts, companies, deals)."
              }
            ]
          },
          "docs": "Returns all associations of a ticket record to objects of a specified type, such as contacts, companies, or deals."
        },
        {
          "info": {
            "name": "Hubspot Create a Ticket Association",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v3/objects/tickets/:ticketId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "ticketId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the ticket."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the object to associate with."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the object to associate with."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to create."
              }
            ]
          },
          "docs": "Creates an association between a ticket and another CRM object record. The association type specifies the relationship between the objects."
        },
        {
          "info": {
            "name": "Hubspot Delete a Ticket Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v3/objects/tickets/:ticketId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "ticketId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the ticket."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of the associated object."
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the associated object."
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path",
                "description": "The type of association to delete."
              }
            ]
          },
          "docs": "Removes an association between a ticket and another CRM object record. This does not delete the ticket or the associated object, only the relationship between them."
        },
        {
          "info": {
            "name": "Hubspot List Email Engagement Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/emails/:emailId/associations/:toObjectType",
            "params": [
              {
                "name": "emailId",
                "value": "jsmith@example.com",
                "type": "path",
                "description": "The ID of the email engagement."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object."
              }
            ]
          },
          "docs": "Returns all associations of an email engagement record to objects of a specified type, such as contacts, companies, or deals."
        },
        {
          "info": {
            "name": "Hubspot Create an Email Engagement Association",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v3/objects/emails/:emailId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "emailId",
                "value": "jsmith@example.com",
                "type": "path"
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path"
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path"
              }
            ]
          },
          "docs": "Creates an association between an email engagement record and another CRM object."
        },
        {
          "info": {
            "name": "Hubspot Delete an Email Engagement Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v3/objects/emails/:emailId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "emailId",
                "value": "jsmith@example.com",
                "type": "path"
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path"
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path"
              }
            ]
          },
          "docs": "Removes an association between an email engagement record and another CRM object."
        },
        {
          "info": {
            "name": "Hubspot List Meeting Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/meetings/:meetingId/associations/:toObjectType",
            "params": [
              {
                "name": "meetingId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the meeting."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object."
              }
            ]
          },
          "docs": "Returns all associations of a meeting record to objects of a specified type, such as contacts, companies, or deals."
        },
        {
          "info": {
            "name": "Hubspot Create a Meeting Association",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v3/objects/meetings/:meetingId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "meetingId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path"
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path"
              }
            ]
          },
          "docs": "Creates an association between a meeting record and another CRM object."
        },
        {
          "info": {
            "name": "Hubspot Delete a Meeting Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v3/objects/meetings/:meetingId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "meetingId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path"
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path"
              }
            ]
          },
          "docs": "Removes an association between a meeting record and another CRM object."
        },
        {
          "info": {
            "name": "Hubspot List Task Associations",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v3/objects/tasks/:taskId/associations/:toObjectType",
            "params": [
              {
                "name": "taskId",
                "value": "500123",
                "type": "path",
                "description": "The ID of the task."
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path",
                "description": "The type of associated object."
              }
            ]
          },
          "docs": "Returns all associations of a task record to objects of a specified type, such as contacts, companies, or deals."
        },
        {
          "info": {
            "name": "Hubspot Create a Task Association",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v3/objects/tasks/:taskId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "taskId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path"
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path"
              }
            ]
          },
          "docs": "Creates an association between a task record and another CRM object."
        },
        {
          "info": {
            "name": "Hubspot Delete a Task Association",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v3/objects/tasks/:taskId/associations/:toObjectType/:toObjectId/:associationType",
            "params": [
              {
                "name": "taskId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "toObjectType",
                "value": "standard",
                "type": "path"
              },
              {
                "name": "toObjectId",
                "value": "500123",
                "type": "path"
              },
              {
                "name": "associationType",
                "value": "standard",
                "type": "path"
              }
            ]
          },
          "docs": "Removes an association between a task record and another CRM object."
        }
      ]
    }
  ],
  "bundled": true
}