HubSpot · JSON Structure

Hubspot Authors Standard Error Structure

Standard error in batch operations

Type: object Properties: 7 Required: 3
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

StandardError is a JSON Structure definition published by HubSpot, describing 7 properties, of which 3 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

status id category message errors context links

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "description": "Standard error in batch operations",
  "name": "StandardError",
  "properties": {
    "status": {
      "type": "string",
      "description": "Error status code"
    },
    "id": {
      "type": "string",
      "description": "ID of the failed item"
    },
    "category": {
      "type": "string",
      "description": "Error category"
    },
    "message": {
      "type": "string",
      "description": "Human-readable error message"
    },
    "errors": {
      "type": "array",
      "description": "List of detailed errors",
      "items": {
        "type": "object",
        "description": "Detailed information about a specific error",
        "properties": {
          "message": {
            "type": "string",
            "description": "Human-readable error message"
          },
          "code": {
            "type": "string",
            "description": "Machine-readable error code"
          },
          "subCategory": {
            "type": "string",
            "description": "Specific error subcategory"
          },
          "in": {
            "type": "string",
            "description": "Location where the error occurred"
          },
          "context": {
            "type": "object",
            "description": "Additional context about the error"
          }
        },
        "required": [
          "message"
        ]
      }
    },
    "context": {
      "type": "object",
      "description": "Additional error context"
    },
    "links": {
      "type": "object",
      "description": "Related links for error resolution"
    }
  },
  "required": [
    "status",
    "category",
    "message"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}