{
  "opencollection": "1.0.0",
  "info": {
    "name": "HubSpot Analytics Events Access Tokens Association Label Management API",
    "version": "3.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Association Label Management",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Hubspot List Association Labels",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubapi.com/crm/v4/associations/:fromObjectType/:toObjectType/labels",
            "params": [
              {
                "name": "fromObjectType",
                "value": "contacts",
                "type": "path",
                "description": "Source object type"
              },
              {
                "name": "toObjectType",
                "value": "companies",
                "type": "path",
                "description": "Target object type"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves all association labels defined for a pair of object types.\nLabels provide human-readable descriptions for different types of associations.\n"
        },
        {
          "info": {
            "name": "Hubspot Create an Association Label",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubapi.com/crm/v4/associations/:fromObjectType/:toObjectType/labels",
            "params": [
              {
                "name": "fromObjectType",
                "value": "contacts",
                "type": "path",
                "description": "Source object type"
              },
              {
                "name": "toObjectType",
                "value": "companies",
                "type": "path",
                "description": "Target object type"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Creates a new custom association label for categorizing relationships.\nCustom labels help distinguish between different types of associations.\n"
        },
        {
          "info": {
            "name": "Hubspot Update an Association Label",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.hubapi.com/crm/v4/associations/:fromObjectType/:toObjectType/labels/:associationTypeId",
            "params": [
              {
                "name": "fromObjectType",
                "value": "contacts",
                "type": "path",
                "description": "Source object type"
              },
              {
                "name": "toObjectType",
                "value": "companies",
                "type": "path",
                "description": "Target object type"
              },
              {
                "name": "associationTypeId",
                "value": "101",
                "type": "path",
                "description": "Association type ID to update"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Updates an existing association label.\nModify the display text or inverse label for a custom association type.\n"
        },
        {
          "info": {
            "name": "Hubspot Delete an Association Label",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.hubapi.com/crm/v4/associations/:fromObjectType/:toObjectType/labels/:associationTypeId",
            "params": [
              {
                "name": "fromObjectType",
                "value": "contacts",
                "type": "path",
                "description": "Source object type"
              },
              {
                "name": "toObjectType",
                "value": "companies",
                "type": "path",
                "description": "Target object type"
              },
              {
                "name": "associationTypeId",
                "value": "101",
                "type": "path",
                "description": "Association type ID to delete"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "authorization_code",
              "authorizationUrl": "https://app.hubspot.com/oauth/authorize",
              "accessTokenUrl": "https://api.hubapi.com/oauth/v1/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Deletes a custom association label.\nThis removes the label definition but does not affect existing associations.\n"
        }
      ]
    }
  ],
  "bundled": true
}